简体   繁体   English

DocuSign API - 定义必须从哪个组(如果用户链接到多个组)发送信封

[英]DocuSign API - define from which group (in case an user is linked to multiple groups) the envelope must be sent

We use API connection to send envelopes.我们使用 API 连接发送信封。 I found how to apply brand in the envelope but not group.我找到了如何在信封中应用品牌而不是组。 Can I set the group (and associated parameters) in the envelope, as some of my users are identified in several groups?我可以在信封中设置组(和相关参数)吗,因为我的一些用户在几个组中被识别?

Thank you谢谢

We send and receive envelopes using only one account now, but we need to configure more accounts to deal with different settings我们现在只使用一个账户收发信封,但是我们需要配置更多的账户来处理不同的设置

First, not sure if when you say "group" you mean account, or you mean group, because both things exist in DocuSign, and are different.首先,不确定当您说“组”时是指帐户,还是指组,因为两者都存在于 DocuSign 中,并且是不同的。

Second, since this is Stackoverflow, I'll assume you are writing code and building an integration and not just using the web app.其次,由于这是 Stackoverflow,我假设您正在编写代码并构建集成,而不仅仅是使用 web 应用程序。

So, I'll address both options:因此,我将解决这两个选项:

Group:团体:

This article shows you how to do this in 6 langs, here is how the C# code looks like: 本文向您展示了如何用 6 种语言执行此操作,这里是 C# 代码的样子:

// signingGroupId should hold the string with the Signing Group ID
Signer signer1 = new Signer 
{
    Name = "test1", // Signing group name
    SigningGroupId = signingGroupId,
    RecipientId = "1",
};

Note that you have to have a group and find the ID for this group.请注意,您必须有一个组并找到该组的 ID。

Account:帐户:

If you are using the API, the account is based on the authentication or on the access token you obtained.如果您使用的是 API,则该帐户基于身份验证或您获得的访问令牌。 You will have to use a different account to authenticate and also make API calls.您将必须使用不同的帐户进行身份验证并拨打 API 电话。 AccountId is a unique GUID that determines the account you use and is passed on the URL for each API, however, it's not enough just to change this URL, you have to have an access token obtained for this account by using either JWT or AccountId是一个唯一的 GUID,它确定您使用的帐户并在 URL 上传递给每个 API,但是,仅更改此 URL 是不够的,您必须通过使用JWT

Auth Code Grant授权码授予

. .

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM