api icon indicating copy to clipboard operation
api copied to clipboard

Need Help: Create a task and get u'{"error":"bad_request"}'

Open Khosroanjam opened this issue 8 years ago • 2 comments

hi guys, i want post a request for create a task it's my code access_token="MY TOKEN"

client_ID= "My CID"

h= {'X-Access-Token': access_token, 'Content-Type': 'application/json', 'X-Client-ID': client_ID}

da = {'title': 'TEST APP', 'list_id': -330478059}

r=requests.post("https://a.wunderlist.com/api/v1/tasks", headers=h, data=json.dumps(da))

but i get "bad request"

why ? please help me ! thank you

Khosroanjam avatar Dec 23 '17 12:12 Khosroanjam

is your list_id wrong?

fucusy avatar Jan 08 '18 15:01 fucusy

no it work after i reset my system ! ## why ?# i don't know !

thank you

Khosroanjam avatar Jan 09 '18 06:01 Khosroanjam