Skip to content
This repository was archived by the owner on Jul 22, 2021. It is now read-only.
This repository was archived by the owner on Jul 22, 2021. It is now read-only.

I want to use API key for auth. #208

Open

Description

@tinjaw

Google supplies the following code with the Python SDK:

API Keys
When calling APIs that do not access private user data, you can use simple API keys. These keys are used to authenticate your application for accounting purposes. The Google Developers Console documentation also describes API keys.

Note: If you do need to access private user data, you must use OAuth 2.0. See Using OAuth 2.0 for Installed Applications, Using OAuth 2.0 for Server to Server Applications, and Using OAuth 2.0 for Web Server Applications for more information.

Using API Keys
To use API keys, pass them to the build() function when creating service objects. For example:

books_service = build('books', 'v1', developerKey='api_key')
All calls made using that service object will include your API key.

I want to integrate that with PyDrive so I don't need to use OAuth. I don't want the user to authorize using their Google Drive account, I want to authorize and upload the file to my Google Drive account for bug reporting.

Any help with this integration would be greatly appreciated.

Activity

  1. oren0e commented on Dec 30, 2020

    @oren0e

    I'm also interested in that way of usage, please help.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions