2016-06-13 24 views
3

當我試圖使用Workplace中的用戶帳戶從https://developers.workfront.com/api-docs/#API_key中詳述的方法推導出APIkey時,我只收到一個空白響應。雖然此域中的大多數用戶使用SAML進行身份驗證,但相關用戶已被設置爲API帳戶,並且SAML被禁用。workfront:試圖創建API密鑰時的空白響應

使用的網址是:

/attask/api-internal/user?action=getApiKey&[email protected]&password=xxxxxxxx&method=put (xxx and yyy masking actual text) 

...我收到以下結果。我得到了兩個刺和沙箱

{ 
    data: { 
    result: "" 
    } 
} 

相同的結果如果我使用了無效的用戶名/密碼對我收到以下結果:

{ 
    error: { 
     class: "com.attask.common.AuthenticationException", 
     message: "That username/password combination wasn't quite right. 
       Make sure your caps lock isn't on and try again." 
    } 
} 

如果使用用戶名/口令的方法要權威性(https://developers.workfront.com/api-docs/#Authentication )這工作,我收到完整的會議信息。

回答

2

如果你得到一個空白的響應,那麼你沒有一個API密鑰得到。您可以在用戶界面上產生打開設置>系統>客戶信息或通過API

/attask/api/v5.0/user?action=generateApiKey&[email protected]&password=xxxxxxxx&method=put 
+1

..how來到這不是在WorkFront API文檔,這只是說以後你清除任何地方提到關鍵只是再次請求它,但這隻會給一個空的結果。當我在Google上進行搜索時,僅在Event Subscription API的隱藏頁面中提到了此操作。 – TurtleTread