2016-10-19 31 views
-1

我想從DocuSign服務器檢索文檔。我發送帳戶ID和文檔ID作爲參數。使用以下方法從docusign服務器獲取doclist。DocuSign文檔檢索

EnvelopeDocumentsResult docsList = envelopesApi.ListDocuments(accountID, envelopeid); 

我收到此錯誤:

指定的集成關鍵是沒有找到或已禁用。未指定集成商密鑰 。

ListDocuments方法只接受兩個參數,但它顯示集成器密鑰丟失。

請幫助我如何解決這個問題?

+0

如果您顯示更多代碼,尤其是您在進行API請求之前所做的操作將會有所幫助。你是第一次登錄登錄終端並檢索你的'baseUrl'並在隨後的請求中使用它? – Ergin

+0

不,我正在檢索帳戶ID並將其發送給上述方法。我正在調用該方法。 –

回答

0

它看起來像你可能正在使用C#客戶端(https://github.com/docusign/docusign-csharp-client)?

如果是的話,請注意他們的示例代碼authHeader的形成,如

// configure 'X-DocuSign-Authentication' header 
string authHeader = "{\"Username\":\"" + username + "\", \"Password\":\"" + password + "\", \"IntegratorKey\":\"" + integratorKey + "\"}"; 
Configuration.Default.AddDefaultHeader("X-DocuSign-Authentication", authHeader); 

,並進一步按照他們的示例代碼下如何登錄之前instaciating和使用envelopesApi(如埃爾金提到的),例如:

AuthenticationApi authApi = new AuthenticationApi(); 
LoginInformation loginInfo = authApi.Login();