Using Additional Google Apis In My Glassware (sharing To G+ Accounts)
I'm trying to share a card ( the html inside it ) from my Glassware using python and the Python Mirror API Quickstart code. creds = StorageByKeyName(Credentials, '#####', 'credenti
Solution 1:
To get G+ access, you can piggyback on the authorization process that Mirror API uses. Make the following modifications to the Mirror API Python Quickstart project:
First, enable the Google+ API in the Google API Console for your project.
Second, in oauth/hander.py, add your G+ scope to the SCOPES list:
SCOPES = ('https://www.googleapis.com/auth/glass.timeline ''https://www.googleapis.com/auth/glass.location ''https://www.googleapis.com/auth/userinfo.profile ''https://www.googleapis.com/auth/plus.login')
Third, revoke your old auth tokens and get fresh ones. Do this by signing out of and signing back into your Quickstart instance's web front end. When you sign in, the sign in page should be updated to list the new Google+ permission:
With these steps, the code you posted should work. Comment if it doesn't and I can help you continue debugging.
Post a Comment for "Using Additional Google Apis In My Glassware (sharing To G+ Accounts)"