Icon

Google_​Search_​Console_​API

There has been no description set for this workflow's metadata.

This example workflow demonstrates how toauthenticate with Google via an OAuth 2 flow.The “OAuth Connector” node leads youthrough the browser-based authenticationprocess, and upon success outputs the tokenwhich is used in the subsequent steps to buildthe authenticated request.This example accesses the “Search Analytics”API endpoint, but can be easily adapter toother endpoints.See here:https://developers.google.com/webmaster-tools/search-console-api-original/v3/how-tos/authorizinghttps://developers.google.com/webmaster-tools/search-console-api-original/v3?apix=true#Search AnalyticsKNIME forum post:https://forum.knime.com/t/having-difficulties-setting-up-post-request-to-google-api-requiring-oauth2-0/30000Register an application here:https://console.developers.google.com/Changes:2021-02-04 Add example how to get newaccess token from refrehs token Simple solution: Use the acquired access token. This is not valid for very long, which means that you’ll need to re-authenticate in the OAuth Connector node Better: Use the “refresh token” and exchange it for an access token.This way, you can keep the OAuth Connector executed, and just need to re-run starting at the “Get Access Token” node. TODO:(1) Enter your personalAPI Key and Secret(2) Click “Authorize Access”and follow the browser flow(3) Execute the workflowNote:For the below branch,we need to expose the API key and secretas flow variables. Seetab “Variables”Node 2Create the request URLSpecify HTTP method “POST”BuildAuthorization header (based on theresponse fromOAuth Connector)Node 6Node 7Node 8Node 13Node 14BuildAuthorization header (based on theretrieved access_token)Create the request URLSpecify HTTP method “POST”Node 25Node 26Node 27Node 28Node 29Node 30Take the *refresh token*and exchange it fora fresh access token OAuth Connector[BETA] HTTP Retriever String Manipulation String Manipulation String Manipulation ContainerInput (JSON) Column Appender Column Filter Table View Parse JSON Response String Manipulation String Manipulation String Manipulation Column Appender ContainerInput (JSON) HTTP Retriever Parse JSON Response Table View Column Filter Get Access Token This example workflow demonstrates how toauthenticate with Google via an OAuth 2 flow.The “OAuth Connector” node leads youthrough the browser-based authenticationprocess, and upon success outputs the tokenwhich is used in the subsequent steps to buildthe authenticated request.This example accesses the “Search Analytics”API endpoint, but can be easily adapter toother endpoints.See here:https://developers.google.com/webmaster-tools/search-console-api-original/v3/how-tos/authorizinghttps://developers.google.com/webmaster-tools/search-console-api-original/v3?apix=true#Search AnalyticsKNIME forum post:https://forum.knime.com/t/having-difficulties-setting-up-post-request-to-google-api-requiring-oauth2-0/30000Register an application here:https://console.developers.google.com/Changes:2021-02-04 Add example how to get newaccess token from refrehs token Simple solution: Use the acquired access token. This is not valid for very long, which means that you’ll need to re-authenticate in the OAuth Connector node Better: Use the “refresh token” and exchange it for an access token.This way, you can keep the OAuth Connector executed, and just need to re-run starting at the “Get Access Token” node. TODO:(1) Enter your personalAPI Key and Secret(2) Click “Authorize Access”and follow the browser flow(3) Execute the workflowNote:For the below branch,we need to expose the API key and secretas flow variables. Seetab “Variables”Node 2Create the request URLSpecify HTTP method “POST”BuildAuthorization header (based on theresponse fromOAuth Connector)Node 6Node 7Node 8Node 13Node 14BuildAuthorization header (based on theretrieved access_token)Create the request URLSpecify HTTP method “POST”Node 25Node 26Node 27Node 28Node 29Node 30Take the *refresh token*and exchange it fora fresh access tokenOAuth Connector[BETA] HTTP Retriever String Manipulation String Manipulation String Manipulation ContainerInput (JSON) Column Appender Column Filter Table View Parse JSON Response String Manipulation String Manipulation String Manipulation Column Appender ContainerInput (JSON) HTTP Retriever Parse JSON Response Table View Column Filter Get Access Token

Nodes

Extensions

Links