ebay-oauth-python-client icon indicating copy to clipboard operation
ebay-oauth-python-client copied to clipboard

oauth2api.get_application_token does not accept my scopes

Open Katze719 opened this issue 2 years ago • 2 comments
trafficstars

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'

Katze719 avatar Feb 05 '23 11:02 Katze719

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

lbybee94 avatar Jun 19 '23 14:06 lbybee94

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

Katze719 avatar Jun 19 '23 18:06 Katze719