当我们使用这个 API https://app.asana.com/api/1.0/tags时,标签的 id 和名称是单独暴露的......我们得到这个没有颜色属性的响应
{"data":[{"id":745415432,"name":"niceTag"},{"id":74273131186,"name":"halfBoil"}, {"id":745540236,"name":"DummyTag"}]}
要获取标签的颜色属性,我们需要单独向https://app.asana.com/api/1.0/projects/project-id发出 GET 请求。
{"data":{"id":123456789,"created_at":"2013-08-15T01:17:32.791Z","modified_at":"2013-08-27T19:14:00.570Z","name":"newPro","notes":"","archived":false,"workspace":{"id":6687953,"name":"t"},"color":"light-yellow","followers":[{"id":987654321,"name":"xxxxx"}]}}
我可能不必要地使用服务器资源来获取单个标签的颜色属性。有没有其他方法可以获取颜色?