Customer Centric
-
Posts
3 -
Joined
-
Last visited
Content Type
Profiles
Forums
Events
Articles
Downloads
Gallery
Posts posted by Customer Centric
-
-
Hi Mark, sure!
It's python though:
def contact():
token_info = session.get('TOKEN_INFO')
r = requests.get(url_query_business, headers= {'Authorization': token_info})
data = r.json()
return render_template('Contact.html', data=data)url_query_business = 'https://api.accounting.sage.com/v3.1/businesses/lead'
## The header only includes the token.
Thanks for any light you can share with me.
Thanks,
Leo
-
Hi Mark,
I'm having similar error:
I'm getting the authorization code, trading with the token code. Then, doing a get request with the token received before and getting the error below:
[{'$severity': 'error', '$dataCode': 'BadRequest', '$message': 'Authorization header has incorrect format', '$source': ''}]
def contact():
token_info = session.get('TOKEN_INFO')
r = requests.get(url_query_business, headers= {'Authorization': token_info})
data = r.json()
return render_template('Contact.html', data=data)
Any idea? I'm a little stuck here. Thanks
Issue with oauth2.0 access token
in Support
Posted
Thanks Mark, was sending the token without the 'Bearer' before the Token. Thanks for your support.