如何检索生产环境端点 [英] How to retrieve production environment endpoint

查看:22
本文介绍了如何检索生产环境端点的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

上周,我已经验证了集成商密钥,并确认在上周五生效".阅读此文档,我现在需要确定我链接到的生产站点.问题是当我按照说明进行操作时,看不到我链接到哪个网站:

I've certified my integrator key last week and it was confirmed to go "live" last friday. Reading this documentation, I now need to determine which production site I am linked to. The problem is that when I follow the instructions, I can't see which site I am linked to :

*The {SERVER} value is determined by where your DocuSign Production account resides.
The easiest way to determine this is to login to your Production DocuSign account and
examine the prefix of the URL. For example, if the URL is:
https://na2.docusign.net/Member/Home.aspx, then replace {SERVER} with "na2" to find
your Production endpoints.

任何帮助将不胜感激

是否可以从信封中检索生产URL?

is there a way to retrieve the Production URL from an envelope ?

envelopeApi.GetEnvelope() ?

推荐答案

使用

Use the Login_Information API to retrieve your BaseUrl.

以下是使用 C#SDK

string _username = "<Add your User Name>";
string _password = "<Add your Password>";
string _integratorKey = "<Add your Integrator Key>";
string DOCUSIGN_URI = "https://www.docusign.net/restapi";
string _authHeader;

public string Init()
{
     _authHeader = "{\"Username\":\"" + username + "\", \"Password\":\"" + password + "\", \"IntegratorKey\":\"" + integratorKey + "\"}";
    // initialize client for desired environment (for production change to www)
    ApiClient apiClient = new ApiClient(DOCUSIGN_URI);
    Configuration.Default.ApiClient = apiClient;

    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 
    AuthenticationApi authApi = new AuthenticationApi();
    LoginInformation loginInfo = authApi.Login();

    // parse the first account ID that is returned (user might belong to multiple accounts)
    accountId = loginInfo.LoginAccounts[0].AccountId;

    string baseUrl = loginInfo.LoginAccounts[0].BaseUrl;
    // Update ApiClient with the new base url from login call
    apiClient = new ApiClient(baseUrl);

    return accountId;
}

这篇关于如何检索生产环境端点的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆