我想用裸露的骨头应用程序集成,但我一直在运用我们整合的关键,并确保我们的应用程序不仅看了演示API,但也为仪表板内的DEMO后,遇到了此问题。
DocuSign.eSign.Client.ApiException: 'Error calling Login: {
"errorCode": "PARTNER_AUTHENTICATION_FAILED",
"message": "The specified Integrator Key was not found or is disabled. An Integrator key was not specified."
我验证了所有的凭据完全一样显示所有已是正确的。 该apiclient是要传递给演示,如果我是正确的正确的值。 什么都还没有从那么其他样品改变了我需要反正扔在参数。 该应用程序是完全的例子是什么:
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using DocuSign.eSign.Api;
using DocuSign.eSign.Model;
using DocuSign.eSign.Client;
namespace WebApplication4
{
public partial class About : System.Web.UI.Page
{
protected void Page_Load(object sender, EventArgs e)
{
SendAPiCall();
}
public void SendAPiCall()
{
string username = "[*]";
string password = "[*]";
string integratorKey = "[*]";
ApiClient apiClient = new ApiClient("https://demo.docusign.net/restapi");
Configuration.Default.ApiClient = apiClient;
var config = new Configuration(apiClient);
var authApi = new AuthenticationApi(config);
string authHeader = "{\"Username\":\"" + username + "\", \"Password\":\"" + password + "\", \"IntegratorKey\":\"" + integratorKey + "\"}";
Configuration.Default.AddDefaultHeader("X-DocuSign-Authentication", authHeader);
// we will retrieve this from the login API call
string accountId = null;
/////////////////////////////////////////////////////////////////
// STEP 1: LOGIN API
/////////////////////////////////////////////////////////////////
// login call is available in the authentication api
LoginInformation loginInfo = authApi.Login();
// parse the first account ID that is returned (user might belong to multiple accounts)
accountId = loginInfo.LoginAccounts[0].AccountId;