google-api
Can I really not ship open source with Client ID? [closed]
On November 5th 2014 Google made some changes to the APIs terms of Service. Like you I had an issue with the following line. Asking developers to make reasonable efforts to keep their private keys private and not embed them in open source projects. I have several open source projects on GitHub they are basically … Read more
Google API: getting Credentials from refresh token with oauth2client.client
I use: oauth2client.client.GoogleCredentials cred = oauth2client.client.GoogleCredentials(access_token,client_id,client_secret, refresh_token,expires_at,”https://accounts.google.com/o/oauth2/token”,some_user_agent) http = cred.authorize(httplib2.Http()) cred.refresh(http) self.gmail_service = discovery.build(‘gmail’, ‘v1’, credentials=cred)
Google API error, but still works
This is a CORS issue Cross Origin Resource Sharing. You will need to add CORS on your server so that it sets correct headers. What is CORS and how to solve Read up on: Wrong Origin using HTTPRequests
How to use Google API credentials json on Heroku?
I spent an entire day to find the solution because it’s tricky. No matter your language, the solution will be the same. 1 – Declare your env variables from in Heroku dashboard like : The GOOGLE_CREDENTIALS variable is the content of service account credential JSON file as is. The GOOGLE_APPLICATION_CREDENTIALS env variable in the string … Read more
ImportError: cannot import name SignedJwtAssertionCredentials
I had this problem today and had to roll back from oauth2client version 2.0 to version 1.5.2 with: pip install oauth2client==1.5.2
Getting a cx ID for custom search, Google API – Python
As of 2020 Go to https://cse.google.com/all Select your search engine or Create one and go into that You can find the CX id titled as “Search engine ID” Public URL also has the cx id in the Query param as ?cx=** 2012 Answer outdated. here you can find the cx id http://www.google.com/cse/manage/all. look for My … Read more
Oauth for Google API example using Python / Django
I have OAuth working in a python App Engine app: http://github.com/sje397/Chess The app is running at: http://your-move.appspot.com