Last active
December 30, 2020 15:38
-
-
Save adamgotterer/f5066c048621b0429495d1e69bb8e5c8 to your computer and use it in GitHub Desktop.
Authenticate with Docusign using Faraday
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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