v4.8.10-beta

Tue, 18 Oct, 2022

Feature

  • Support to set different types of expiry dates while creating the document has been added.

Breaking changes

  • The ExpiryDays property in the SendForSign and SendForSignFromTemplate classes is now deprecated. Please use ExpiryValue instead.

Send document

Previous

// removed code for brevity
SendForSign sendForSign = new SendForSign() { ExpiryDays = 30, };
curl -X 'POST' \ 'https://api.boldsign.com/v1/document/send' \
     -H 'accept: application/json' \
     -H 'X-API-KEY: API_Key' \
     -H 'Content-Type: multipart/form-data' \
     -F 'ExpiryDays=30' \'  # removed code for brevity

Now

// removed code for brevity
SendForSign sendForSign = new SendForSign() { ExpiryDateType = ExpiryDateType.Days, ExpiryValue = 60, };
curl -X 'POST' \ 'https://api.boldsign.com/v1/document/send' \
     -H 'accept: application/json' \
     -H 'X-API-KEY: API_Key' \
     -H 'Content-Type: multipart/form-data' \
     -F 'ExpiryDateType=Days' \' 
     -F 'ExpiryValue=60' \'  # removed code for brevity

Send using template

Previous

// removed code for brevity
SendForSignFromTemplate sendForSignFromTemplate = new SendForSignFromTemplate() { ExpiryDays = 30, };
curl -X 'POST' \ 'https://api.boldsign.com/v1/template/send?templateId=templateId' \
  -H 'accept: application/json' \
  -H 'X-API-KEY: API_Key' \
  -H 'Content-Type: application/json;odata.metadata=minimal;odata.streaming=true' \
  -d '{
  "expiryDays": "30" # removed code for brevity
}'

Now

// removed code for brevity
SendForSignFromTemplate sendForSignFromTemplate = new SendForSignFromTemplate() { 
 ExpiryDateType = ExpiryDateType.Days, ExpiryValue = 60, };
curl -X 'POST' \ 'https://api.boldsign.com/v1/template/send?templateId=templateId' \
     -H 'accept: application/json' \
     -H 'X-API-KEY: API_Key' \
     -H 'Content-Type: application/json;odata.metadata=minimal;odata.streaming=true' \
     -d '{
      "expiryDateType": "Days",
      "expiryValue": 60 # removed code for brevity
      }'