the Credentials oauth2client.contrib.appengine.StorageByKeyName creates are None

35 views
Skip to first unread message

zi yang

unread,
Jan 14, 2019, 9:20:31 AM1/14/19
to Google App Engine
I want to export my google project's google drive files to my google user's drive, to make it visible.
So I want to create user's Credentials by using the method -- oauth2client.contrib.appengine.StorageByKeyName, which is gave by https://developers.google.com/api-client-library/python/guide/google_app_engine.
But the credentials it returns is None.

I want to use the user's google drive, but now all methods I have found are about creating a project on google cloud platform. It needs download the google drive's credential file, and the project's drive files aren't visible.

George (Cloud Platform Support)

unread,
Jan 14, 2019, 1:56:57 PM1/14/19
to Google App Engine
The method you mention is meant to retrieve a credential from Datastore: 

class oauth2client.contrib.appengine.StorageByKeyName(**kwargs) Bases: oauth2client.client.Storage Store and retrieve a credential to and from the App Engine Datastore.

Have you called the method this way? 

To access your Customer's Drive, you can use Google Drive APIs

This discussion group is oriented more towards general opinions, trends, and issues of general nature touching the app engine. For coding and programming architecture, as well as using Google Drive APIs, you may be better served in dedicated forums such as stackoverflow, where experienced programmers are within reach and ready to help. 


Reply all
Reply to author
Forward
0 new messages