I am trying to talk to my Marketo Instance using Jupyter (Anaconda) and Requests package. I'm OK with creating the auth token, but getting stuck on making the actual call to the endpoint.
host = "https://my_mtko_instance.com"
leadId = "13000000"
endpoint = "/rest/v1/lead/" + leadId + ".json"
auth_token = "?access_token=" + mkto_token
getLead = requests.get(host+endpoint+leadId+auth_token)
print(host+endpoint+auth_token)
getLead.json()
I get a `JSONDecodeError: Expecting value: line 1 column 1 (char 0)
Interestingly, I'm able to click the URL from print() and that takes me to a JSON looking response in my browser.