我按照AtTask API文档中的directions获取API密钥。我的用户是系统管理员,但请求始终返回错误。
请求:
GET /attask/api/v4.0/user?action=getApiKey&username=user@company.com&password=********&method=put
响应:
{
"error": {
"class": "java.lang.UnsupportedOperationException",
"message": "APIModel V4_0 does not support action getApiKey (USER)"
}
}
答案 0 :(得分:2)
以下内容应该有效
GET /attask/api-unsupported/user?action=getApiKey&username=user@company.com&password=********&method=put
答案 1 :(得分:0)
现在似乎api密钥仅在api的最新(不稳定)版本中受支持。尝试传递unsupported
或internal
而不是v4.0
。
这样你就可以获得api的最新功能。