Skip to content

build() got an unexpected keyword argument 'credentials' #196

@MeLight

Description

@MeLight

Using the example from here to get Analytics data in to our App Engine app.

That's the code:

from libs.oauth2client.contrib.appengine import AppAssertionCredentials
from apiclient.discovery import build

credentials = AppAssertionCredentials('https://www.googleapis.com/auth/analytics.readonly')
service = build('analytics', 'v3', credentials=credentials)

Give me this error:

  File "/base/data/home/apps/s~our-amazin-app/1-10-analytics.391092914739875677/web/pages/main.py", line 25, in <module>
    service = build('analytics', 'v3', credentials=credentials)
  File "libs/oauth2client/util.py", line 137, in positional_wrapper
    return wrapped(*args, **kwargs)
TypeError: build() got an unexpected keyword argument 'credentials'

Very sad.

Metadata

Metadata

Labels

🚨This issue needs some love.triage meI really want to be triaged.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions