【发布时间】:2016-07-05 19:46:26
【问题描述】:
我正在使用以下示例尝试通过 Google Sheets 脚本创建 Asana 任务。
参考这个 SO 问题和接受的答案。 Creating Asana tasks from Google Apps Script
OP 声称它在 2015 年当时有效。现在,在尝试使用我自己的私钥等进行调试后,我收到以下错误。
Asana 的网站有关于 API 的不错的文档,但没有正确格式的 JSON 示例可供参考……据我所知。
我已将此脚本添加到我的 Google 工作表中,并在尝试使用我自己的 PERSONAL_ACCESS_TOKEN、WORKSPACE_ID 和 ASSIGNEE 调试 testTask() 时收到以下错误。
Request failed for app.asana.com/api/1.0/tasks returned code 400. Truncated server response: {"errors":[{"message":"Could not parse request data, invalid JSON","help":"For more information on API status codes and how to handle them, read th... (use muteHttpExceptions option to examine full response) (line 98, file "Code")
【问题讨论】:
标签: google-apps-script asana-api