Repository: qs-curl
These quick start examples provide straight-forward curl-based code examples for quickly trying the DocuSign eSignature API
The repo includes:
- qs-01-curl-embed-signing-ceremony.sh -- Embedding a signing ceremony in your web application.
- qs-02-curl-send-envelope.sh -- Sending a signing request via an email to the signer.
- qs-03-curl-list-envelopes.sh -- Listing the envelopes in the user's account, including their status.
These examples do not include authentication. Instead, use the DocuSign DevCenter's OAuth token generator to create an access token.
For more information, see the DocuSign DevCenter Code Examples section.
These examples use curl and the bash shell as provided in modern versions of MacOS.
Download or clone this repository to your machine then configure the examples.
Each quick start example is a standalone file. You will configure each of the example files by setting the variables at the top of each file:
-
Access token: Use the OAuth Token Generator. To use the token generator, you'll need a free DocuSign Developer's account.
Each access token lasts 8 hours, you will need to repeat this process when the token expires. You can use the same access token for multiple examples.
-
Account Id: After logging into the DocuSign Sandbox system, you can copy your Account Id from the dropdown menu by your name. See the figure:
-
Signer name and email: Remember to try the DocuSign signing ceremony using both a mobile phone and a regular email client.
Use the bash shell to run the examples:
bash qs-01-curl-embed-signing-ceremony.sh
bash qs-02-curl-send-envelope.sh
bash qs-03-curl-list-envelopes.sh
Submit support questions to StackOverflow. Use tag docusignapi
.
Contributions via Pull Requests are appreciated. All contributions must use the MIT License.
This repository uses the MIT license, see the LICENSE file.