I’m trying to connect to Snapchat Marketing API but keep getting <Respone [401]> error, can I anyone spot the issues in my Python code?
import requests
token = "abc" #token generated from Conversions API Tokens in Snapchat Business Account
authorization = f'Bearer {token}'
headers = {"Authorization": authorization}
r = requests.get ('https://adsapi.snapchat.com/v1/me', headers=headers)
print(r)
It looks like your parameters are incorrect for "authorization". Check your parenthesis and quotation marks.