Skip to content

churcho/docusign_elixir

 
 

Repository files navigation

DocuSign API Client

Unofficial DocuSign Elixir Library used to interact with the eSign REST API. Send, sign, and approve documents using this client.

Installation

The package can be installed by adding docusign to your list of dependencies in mix.exs:

def deps do
  [
    {:docusign, "~> 0.3.4"}
  ]
end

The docs can be found at https://hexdocs.pm/docusign.

Timeout configuration

By default, the HTTP requests will timeout after 30_000 ms. You can configure the timeout:

config :docusign, timeout: 60_000

Regenerating stubs

Grab the latest swagger codegen jar and:

java -jar swagger-codegen-cli.jar generate \
  -i https://raw.githubusercontent.com/docusign/eSign-OpenAPI-Specification/master/esignature.rest.swagger-v2.1.json \
  -l elixir -o /tmp/elixir_api_client
rm -rf lib/docusign/*
cp -rf /tmp/elixir_api_client/lib/docu_sign_restapi/* lib/docusign
mix format

Note: consider swtiching to OpenAPI Generator.

JWT Authorization Example

See the Elixir sample for an example Elixir SDK implementation that uses the JWT bearer grant to authenticate.

About

Unofficial DocuSign Elixir Library used to interact with the eSign REST API

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Elixir 100.0%