Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

OAuth2 scope for Google Custom Search API

I have created a CSE and need to programatically update the promotions. This is done in a backend system and user interaction in the authentication process is therefore not an option.

Updating the promotions can be done with their Custom Search API via HTTP. This process needs an authentication token.

Their documentation says that Custom Search only supports "ClientLogin" authentication. This has been deprecated by Google and it also involves CAPTCHAs so this is not an option. They also state that all authentication should be done through OAuth2 now.

I have already implemented OAuth2 without user interaction with Google Analytics API.

My problem is: I cannot find the scope value for Custom Search API to use with OAuth2. Any ideas?

like image 749
Coder80 Avatar asked Jan 30 '13 08:01

Coder80


Video Answer


1 Answers

I believe you can use the API Key function (which is not an OAuth 2 key) to access CSE apis.

here's the documentation. https://developers.google.com/custom-search/v1/using_rest?hl=en

Is there some reason the API key doesn't work and you need OAuth2?

like image 189
David Primmer Avatar answered Oct 07 '22 00:10

David Primmer