当我们通过 PHP API 创建信封时,我们如何更改此信息?

How can we change this information, when we create an envelope through PHP API?

enter image description here

在创建信封定义时,我们尝试了:

$user_info = new \DocuSign\eSign\Model\UserInfo([
      'account_id' => 'b9711345....2',
      'email' => 'user@domin.com.br',
      'user_id' => 'ae5...87',
      'user_name' => 'Foo Bar',
    ]);

   $envelope_definition->setSender($user_info);

但是没有效果

此信息与发件人帐户有关。 当您在进行 PHP API 调用以获取访问令牌之前向 API 进行身份验证时,您必须使用某些用户的凭据。发送信封时将使用该用户的信息。

user_info 是一个 read-only 端点,您无法使用 API.

更新它

您可以通过此端点更改用户名 - Users: Update

你看到的另一件事是公司名称,你需要这个端点来改变它 - Accounts: UpdateAccount