代码之家  ›  专栏  ›  技术社区  ›  picklemantle

docusign api中是否有为已完成的信封生成链接的功能?

  •  0
  • picklemantle  · 技术社区  · 2 年前

    我们正在生成两个收件人视图,一个用于admin和client,它们具有用于admin的唯一clientUserId,前缀为 admin- 现在,当所有各方都在信封上签名时,就可以生成一个新的链接视图,它是客户端和管理员签名的组合,我正在寻找类似于签名者视图链接的东西。。也可以嵌入。。?

    我试着通过 getDocument 但这只返回一个文件,而不返回可查看的链接。

    0 回复  |  直到 2 年前
        1
  •  0
  •   Inbar Gazit    2 年前

    是的,您可以用与嵌入签名相同的方式来实现这一点,为特定收件人调用相同的API。

    https://github.com/docusign/code-examples-node/blob/master/embeddedSigning.js

    这是获取URL的代码:

    function makeRecipientViewRequest(args) {
      // Data for this method
      // args.dsReturnUrl
      // args.signerEmail
      // args.signerName
      // args.signerClientId
      // args.dsPingUrl
    
      let viewRequest = new docusign.RecipientViewRequest();
    
      // Set the url where you want the recipient to go once they are done signing
      // should typically be a callback route somewhere in your app.
      // The query parameter is included as an example of how
      // to save/recover state information during the redirect to
      // the DocuSign signing. It's usually better to use
      // the session mechanism of your web framework. Query parameters
      // can be changed/spoofed very easily.
      viewRequest.returnUrl = args.dsReturnUrl + "?state=123";
    
      // How has your app authenticated the user? In addition to your app's
      // authentication, you can include authenticate steps from DocuSign.
      // Eg, SMS authentication
      viewRequest.authenticationMethod = "none";
    
      // Recipient information must match embedded recipient info
      // we used to create the envelope.
      viewRequest.email = args.signerEmail;
      viewRequest.userName = args.signerName;
      viewRequest.clientUserId = args.signerClientId;
    
      // DocuSign recommends that you redirect to DocuSign for the
      // embedded signing. There are multiple ways to save state.
      // To maintain your application's session, use the pingUrl
      // parameter. It causes the DocuSign signing web page
      // (not the DocuSign server) to send pings via AJAX to your
      // app,
      viewRequest.pingFrequency = 600; // seconds
      // NOTE: The pings will only be sent if the pingUrl is an https address
      viewRequest.pingUrl = args.dsPingUrl; // optional setting
    
      return viewRequest;
    }
    
    推荐文章