Hi all,
I am trying to make a call to the full-archive endpoint. I am using a sandbox environment at the moment, which I named development. However , when I try to hit the endpoint i am getting the error
{'error': {'message': 'There were errors processing your request: Invalid json, could not parse.', 'sent': '2022-04-29T19:49:29+00:00', 'transactionId': '....'}}
Below is the implementation I have
import requests
headers = {
'Content-Type':'application/json',
'Authorization': 'Bearer '+BEARER_TOKEN
}
url = 'https://api.twitter.com/1.1/tweets/search/fullarchive/development.json'
data = {
"query" : "Good morning! Ducks dont play where lions play from:wizkidayo"
}
r = requests.post(url=url,headers=headers,data=data)
js = r.text
print(js)
Also, this is the tutorial I was following.
Thanks.