我正在嘗試使用節點客戶端爲跑道api創建一個提醒任務。代碼工作完美,如果我不設置一個提醒,但如果我嘗試設置提醒,它給了我這個錯誤:跑道創建任務API不能使用提醒
message:
{ error_parameters: {},
error_detail: null,
error_propagate: false,
request:
{ url: 'http://api.podio.com/task',
query_string: '',
method: 'POST' },
error_description: 'An unexpected error occured during execution',
error: 'unexpected' },
status: 500,
url: 'https://api.podio.com:443/task',
name: 'PodioServerError' }
此代碼:
var body = {
"text": "test Task",
"due_on": "2016-12-19 10:00:00",
"responsible":assignTo, // my user id
}
podio.request("POST", "/task/", body)
但這種代碼與提醒不:
var body = {
"text": "test Task",
"due_on": "2016-12-19 10:00:00",
"responsible":assignTo, // my user id
"reminder": {
"remind_delta": 30
}
}
podio.request("POST", "/task/", body)
我是否缺少格式的東西?
這裏是鏈接到文檔頁面:https://developers.podio.com/doc/tasks/create-task-22419
謝謝!
謝謝。它看起來像我使用用戶身份驗證時不會收到錯誤。我正在使用應用程序認證。此外,它看起來像任務提醒只有在用戶自己設置它們時才起作用。那是對的嗎? –
Yeap,提醒是爲創作者設置的,不負責任。這可能有點不合邏輯,但創建者和負責人可以有2個不同的獨立提醒。因此,如果您以應用身份進行身份驗證,則無法創建提醒。 –