1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27
|
RESTClient1.BaseURL := 'https://api.na1.adobesign.com:443/api/rest/v6/agreements';
RESTRequest1.AddParameter('Content-Type', 'application/json', TRESTRequestParameterKind.pkHTTPHEADER, [poDoNotEncode]);
RESTRequest1.Method := TRESTRequestMethod.rmPOST;
RESTRequest1.AddBody(
'{'+
'"fileInfos": ['+
' {'+
' "transientDocumentId": "xxXXXXXxxxxxxxx etc....."'+
' }'+
'],'+
'"name": "Vente",'+
'"participantSetsInfo": ['+
' {'+
' "order": 1,'+
' "role": "SIGNER",'+
' "memberInfos": ['+
' {'+
' "email": "mail@mail.com"'+
' }'+
' ]'+
' }'+
'],'+
'"signatureType": "ESIGN",'+
'"state": "IN_PROCESS"'+
'}', TRESTContentType.ctAPPLICATION_JSON);
RESTRequest1.Execute; |