Skip to content
This repository has been archived by the owner on Feb 10, 2022. It is now read-only.

Using resource_get for currency_conversion, classified_locations and other modules #56

Open
gerimo opened this issue Dec 15, 2020 · 0 comments

Comments

@gerimo
Copy link

gerimo commented Dec 15, 2020

When resource_get for currency_conversion, classified_locations and other modules:

def get_local_currency_by_country_id( country_id ):

	query = "/classified_locations/countries/{}".format( country_id )

	try:

		response = api_instance.resource_get(query, CLIENT_SECRET)

		return json.dumps( response )

	except ApiException as e:

		pass

	return None

I get the following error message:

{"message":"{\"message\":\"Malformed access_token: MY-SECRET-TOKEN TEST\",\"error\":\"bad_request\",\"status\":400,\"cause\":[]}","error":"","status":400,"cause":[]}

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant