This app is an example of using the docusign package.
This type of application interacts with DocuSign on its own. There is no user interface and no user is present during normal operation.
The application uses the OAuth JWT grant flow to impersonate a user in the account.
This launcher example includes two examples:
Send an HTML, DOCX, and PDF file in an envelope to be signed. List the envelopes in the account that are less than 30 days old.
To use the Elixir DocuSign API, you should have a private / public keypair and integration key generated. You can set it up from the Go to Admin page in your profile.
- Clone this repository;
- Add your docusign private key to the project root as
docusign_key.pem
(or specify a path as aDOCUSIGN_PRIVATE_KEY
env variable); - Set your Integration ID as
DOCUSIGN_CLIENT_ID
env variable; - Set your API Username as
DOCUSIGN_USER_ID
env variable; - Set your API Account ID as
DOCUSIGN_ACCOUNT_ID
env variable; - Run:
mix deps.get
mix compile
mix docusign.example
You may also choose to set all of the configuration directly in the config.exs
file.
Alternatively, you can run sample functions in the IEx session. To do so, just run iex -S mix
and call those functions:
DocusignElixirSampleApp.get_envelopes()
DocusignElixirSampleApp.send_envelop()