Jump to content

Customer Centric

Members
  • Posts

    3
  • Joined

  • Last visited

Everything posted by Customer Centric

  1. Thanks Mark, was sending the token without the 'Bearer' before the Token. Thanks for your support.
  2. 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
  3. 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
×
×
  • Create New...