Skip to content

trakx/yousign-api-client

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

32 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

yousign-api-client

C# implementation of Trakx' YouSign Api client

Links

Creating your local .env file

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=********

Create you test account at yousign.com

  1. Navigate to "https://yousign.com/";
  2. Click on "Start free trial" button;
  3. Fill up all the fields and click on "Start your free trial now";
  4. Log into the Web App Staging;
  5. Click on "Admin" Menu and select "API Keys";
  6. Click on "Create An Api Key";
  7. You need to use this key in your .env file - variable "YouSignApiConfiguration__ApiKey".
  8. Click on "Admin" Menu and select "Signature UI";
  9. Click on "Add a Signature UI";
  10. In Content group, disable all checks;
  11. In Redirects group, enable all checks and set the following redirect url "https://trakx.opendax.app/kyc-completed";
  12. Click on "Save" button, and access the details of this signature ui;
  13. Click on "Copy the ID". You need to use the guid, after "/signature_uis/", in your .env file - variable "YouSignApiConfiguration__SignatureUi".

How to sign a document?

  1. Execute the method "IFilesClient.FilesAsync(..)";
  2. Execute the method "IProceduresClient.ProceduresAsync(..)";
  3. The reponse of the second method will contain a member id;
  4. 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(..)"

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors 4

  •  
  •  
  •  
  •  

Languages