我想在 python 的 wunderlist api 中创建一个任务,这是我的代码:
import requests, json
access_token = "MY TOKEN"
client_id= "My Client ID"
h = {"X-Access-Token": access_token, "X-Client-ID": client_id, "Content-Type": "application/json"
da = {"list_ld": 330478059, "title": "TEST TASK"}
url= "https://a.wunderlist.com/api/v1/tasks"
r= requests.post(url, headers=h, data=da)
但我得到“bad_request”,为什么?