Docusignapi 如何检索生产环境终结点

Docusignapi 如何检索生产环境终结点,docusignapi,Docusignapi,我上周认证了我的积分器密钥,上周五确认该密钥已投入使用。 阅读本文,我现在需要确定链接到哪个生产站点。问题是,当我按照说明操作时,我看不到链接到哪个站点: *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 e

我上周认证了我的积分器密钥,上周五确认该密钥已投入使用。 阅读本文,我现在需要确定链接到哪个生产站点。问题是,当我按照说明操作时,我看不到链接到哪个站点:

*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

envelopeApi.GetEnvelope() ?
使用API检索BaseUrl

下面是使用

string_username=”“;
字符串_password=“”;
字符串_integratorKey=“”;
字符串DOCUSIGN_URI=”https://www.docusign.net/restapi";
字符串authHeader;
公共字符串Init()
{
_authHeader=“{\'Username\':\”“+Username+”,\“Password\”:\“+Password+”,\“IntegratorKey\”:\“+IntegratorKey+”\”;
//为所需环境初始化客户端(用于将生产更改为www)
ApiClient ApiClient=新的ApiClient(DOCUSIGN\u URI);
Configuration.Default.ApiClient=ApiClient;
Configuration.Default.AddDefaultHeader(“X-DocuSign-Authentication”,\u authHeader);
//我们将从登录API调用中检索它
字符串accountId=null;
/////////////////////////////////////////////////////////////////
//步骤1:登录API
/////////////////////////////////////////////////////////////////
//登录调用在身份验证api中可用
AuthenticationApi authApi=新的AuthenticationApi();
LoginInformation loginInfo=authApi.Login();
//分析返回的第一个帐户ID(用户可能属于多个帐户)
accountId=loginInfo.LoginAccounts[0]。accountId;
字符串baseUrl=loginInfo.LoginAccounts[0].baseUrl;
//从登录调用使用新的基本url更新ApiClient
apiClient=新的apiClient(baseUrl);
返回accountId;
}