C# implementation of Trakx' YouSign Api client
-
YouSign WebSite: https://yousign.com/
-
Web App Staging: https://staging-app.yousign.com
-
Web App Production: https://webapp.yousign.com
-
Api Base Staging: https://staging-api.yousign.com
-
Api Base Production: https://api.yousign.com
-
API Documentation: https://dev.yousign.com/
-
Sandbox Sign up: https://yousign.com/developer
In order to be able to run some integration tests, you should create a .env
file in the src
folder with the following variables:
YouSignApiConfiguration__ApiKey=********
- Navigate to "https://yousign.com/";
- Click on "Start free trial" button;
- Fill up all the fields and click on "Start your free trial now";
- Log into the Web App Staging;
- Click on "Admin" Menu and select "API Keys";
- Click on "Create An Api Key";
- You need to use this key in your .env file - variable "YouSignApiConfiguration__ApiKey".
- Click on "Admin" Menu and select "Signature UI";
- Click on "Add a Signature UI";
- In Content group, disable all checks;
- In Redirects group, enable all checks and set the following redirect url "https://trakx.opendax.app/kyc-completed";
- Click on "Save" button, and access the details of this signature ui;
- Click on "Copy the ID". You need to use the guid, after "/signature_uis/", in your .env file - variable "YouSignApiConfiguration__SignatureUi".
- Execute the method "IFilesClient.FilesAsync(..)";
- Execute the method "IProceduresClient.ProceduresAsync(..)";
- The reponse of the second method will contain a member id;
- Add the iframe below at your website and pass the member id as follows:
<iframe src="https://staging-app.yousign.com/procedure/sign?members=/members/676e24cc-a396-4854-b798-371768f433fa&signatureUi=/signature_uis/3327c735-05f2-41d5-9839-e3c7b6752a31"></iframe>
Note: To see one example of this. Run the unit test "ProceduresClientTests.ProceduresClientTest_should_create_a_new_memberid_to_be_signed(..)"