eBay / ebay-oauth-python-client

Python OAuth SDK: Get OAuth tokens for eBay public APIs
Other
73 stars 47 forks source link

oauth2api.get_application_token does not accept my scopes #12

Open Katze719 opened 1 year ago

Katze719 commented 1 year ago
credential = credentialutil.load('ebay-config.yaml')

env_type = "production"
scopes = ["https://api.ebay.com/oauth/api_scope", "https://api.ebay.com/oauth/api_scope/buy.item.feed"]

application_token = oauth2api.get_application_token(env_type, scopes)

when i try to execute this code, i get: application_token = oauth2api.get_application_token(env_type, scopes) TypeError: oauth2api.get_application_token() missing 1 required positional argument: 'scopes'

lbybee94 commented 1 year ago

Did you end up figuring this out? I am getting the same error.

Katze719 commented 1 year ago

so, you just need the converted module that is written for python3.

There is an pr for that: https://github.com/eBay/ebay-oauth-python-client/pull/6