我正在使用以下示例尝试通过 Google Sheets 脚本创建 Asana 任务。
参考这个 SO question 和接受的答案。 从 Google Apps 脚本创建 Asana 任务
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")