Support Questions
Find answers, ask questions, and share your expertise
Announcements
Alert: Welcome to the Unified Cloudera Community. Former HCC members be sure to read and learn how to activate your account here.

Google My Business information using Nifi

Google My Business information using Nifi

New Contributor

I am working on the data extract from google my business api. To achieve this there is oauth2 process involved.First we need to get a uri for authorization and the we will get the response , In the response header we will get an url with code and we need to use a post command with that code to get a access token. My question is if i use invokehttpprocessor how can i get the response header back so that i can extract code from it.

1 REPLY 1

Re: Google My Business information using Nifi

Expert Contributor

The response headers all come back as attributes in the FlowFile that goes to the downstream queue. See the following example for more details.

I've made a sample request to a test website on the internet:

78561-screen-shot-2018-06-28-at-220931.png

I can then view the 'response' queue:

78562-screen-shot-2018-06-28-at-221011.png

When I view the attributes in the FlowFile, I can get access to all of the HTTP headers that come back with the response:

78563-screen-shot-2018-06-28-at-221106.png

Don't have an account?
Coming from Hortonworks? Activate your account here