如何使用Xamarin.Forms在iOS和Android App中实现Docusign?

时间:2018-06-04 06:52:36

标签: xamarin.forms xamarin.ios xamarin.android docusignapi

我需要使用DocuSign实现用户在我的应用中进行签名。我已经使用Xamarin.Forms实现了应用程序。如何在Xamarin.Forms中实现Docusign?

1 个答案:

答案 0 :(得分:0)

You need to make user/signer an embedded signer. By adding clientUserId property in the signer node, like below:

"signers": [{
      "email": "signeremail@email.com",
      "name": "Signer Name",
      "recipientId": "1",
      "clientUserId": "12345",
      "routingOrder": "1"
    }

When you want signer to sign in your App, then you will call below endpoint

POST /v2/accounts/{accountId}/envelopes/{envelopeId}/views/recipient

with requestBody like below:

{
  "authenticationMethod": "Password",
  "clientUserId": "12345",
  "email": "signeremail@email.com",
  "returnUrl": "YourAppUrl",
  "userName": "Signer Name"
}

This API call will generate a URL which will have expiry of 300 seconds, redirect user to this URL and make user Sign using this URL.

More details for this API call are available at EnvelopeViews: createRecipient

Example in different coding languages are also available at DS Developer Center