Skip to content
This repository was archived by the owner on Jun 17, 2024. It is now read-only.
This repository was archived by the owner on Jun 17, 2024. It is now read-only.

SignedJwtAssertionCredentials Method is not there in client class of oauth2client python module #72

Open
@siddharthhudda

Description

@siddharthhudda

Hi,

`from oauth2client import client
credentials = client.SignedJwtAssertionCredentials(
SERVICE_ACCOUNT_EMAIL,
key,
scope='https://www.googleapis.com/auth/androidpublisher')

http = httplib2.Http()
http = credentials.authorize(http)

service = build('androidpublisher', 'v3', http=http)`

SignedJwtAssertionCredentials Method is not there in client class of oauth2client python module

basic_list_apks_service_account.py script fails becuase method/function not defined in client class.

Can you please update it with the fix?

Note: Alternative solution to this

SCOPES = ['https://www.googleapis.com/auth/androidpublisher']
SERVICE_ACCOUNT_FILE = '<service_account_file>.json'

credentials = service_account.Credentials.from_service_account_file(
SERVICE_ACCOUNT_FILE, scopes=SCOPES)
service = googleapiclient.discovery.build('androidpublisher', 'v3', credentials=credentials)

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