Skip to content

Instantly share code, notes, and snippets.

@adamgotterer
Last active December 30, 2020 15:38
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save adamgotterer/f5066c048621b0429495d1e69bb8e5c8 to your computer and use it in GitHub Desktop.
Save adamgotterer/f5066c048621b0429495d1e69bb8e5c8 to your computer and use it in GitHub Desktop.
Authenticate with Docusign using Faraday
conn = Faraday.new(:url => 'https://demo.docusign.net/restapi/v2.1',
headers: {
'X-DocuSign-Authentication' => {
Username: '',
Password: '',
IntegratorKey: ''
}.to_json,
'Accept' => 'application/json',
'Content-Type' => 'application/json'
}) do |builder|
builder.request :multipart
builder.adapter :net_http
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment