[英]Docusign nodejs envelopes api returns exports {}
I'm running the following code in my nodejs server我在我的 nodejs 服务器中运行以下代码
// Create the recipient view, the Signing Ceremony
let viewRequest: RecipientViewRequest = {
returnUrl: "http://localhost:3000/fund/123?state=123",
authenticationMethod: "none",
email: "my_email",
userName: "Ryan",
clientUserId: "my client user id",
pingFrequency: "600",
pingUrl: "http://localhost:3000"
};
// Call the CreateRecipientView API
// Exceptions will be caught by the calling function
const dsApiClient = new ApiClient();
dsApiClient.setBasePath("https://account-d.docusign.com");
const api = new EnvelopesApi(dsApiClient);
const results = await api.createRecipientView(
"1234",
"5678",
{ recipientViewRequest: viewRequest }
);
and it keeps giving me the output of exports {}
no errors or anything.并且它一直给我
exports {}
的输出,没有错误或任何东西。 this is pretty painful to debug.调试起来非常痛苦。 has anyone else ran into a similar problem?
有没有其他人遇到过类似的问题? and how did you fix it?
你是怎么解决的?
When you use embedded signing you must set the clientUserId
.当您使用嵌入式签名时,您必须设置
clientUserId
。
But, the clientUserId
has to be set when the envelope is created, or when the recipient is added to an a draft envelope and must match the value you later pass in a request for a recipient View.但是,必须在创建信封或将收件人添加到草稿信封时设置
clientUserId
,并且必须与您稍后在请求收件人视图中传递的值相匹配。
You cannot make a request for recipient view for an envelope that was created via the web app, unless your code modified that envelope to set the clientUserId
for the recipient you want.您无法为通过 Web 应用程序创建的信封请求查看收件人,除非您的代码修改了该信封以设置所需收件人的
clientUserId
。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.