AtTask getApiKey操作返回不支持的操作错误

时间:2015-03-23 15:39:12

标签: api-key attask

我按照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)"
    }
}

2 个答案:

答案 0 :(得分:2)

以下内容应该有效

GET /attask/api-unsupported/user?action=getApiKey&username=user@company.com&password=********&method=put

答案 1 :(得分:0)

现在似乎api密钥仅在api的最新(不稳定)版本中受支持。尝试传递unsupportedinternal而不是v4.0。 这样你就可以获得api的最新功能。