- Install the Google App Engine SDK for Python.
- Create a
secrets/keys.pyfile that defines your project's API key as
- On Cloud Console, make sure the "Allowed IPs" field is empty (unless you have static IPs from App Engine). This lets you use the Drive API from your App Engine service account. This is the authentication method your app will use when it's deployed.
- Unfortunately, the authentication scheme described in #2 doesn't work for local testing, so you'll need a Cloud Console Service Account for local testing. Your command may look something like:
dev_appserver.py --log_level debug --appidentity_email_address \ <some-id>@developer.gserviceaccount.com --appidentity_private_key_path \ secrets/private_key_for_dev_appserver.pem --clear_datastore=yes ./