Skip to content

Commit

Permalink
Merge pull request #64 from TinderBox/fix-get-token-parameter
Browse files Browse the repository at this point in the history
Fixes get_token integrator key parameter
  • Loading branch information
jondkinney committed Sep 13, 2016
2 parents df56230 + 675e9db commit 4881ab7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/docusign_rest/client.rb
Original file line number Diff line number Diff line change
Expand Up @@ -128,13 +128,13 @@ def initialize_net_http_ssl(uri)
# Examples:
#
# client = DocusignRest::Client.new
# response = client.get_token('someone@example.com', 'p@ssw0rd01')
# response = client.get_token(integrator_key, 'someone@example.com', 'p@ssw0rd01')
#
# Returns:
# access_token - Access token information
# scope - This should always be "api"
# token_type - This should always be "bearer"
def get_token(account_id, email, password)
def get_token(integrator_key, email, password)
content_type = { 'Content-Type' => 'application/x-www-form-urlencoded', 'Accept' => 'application/json' }
uri = build_uri('/oauth2/token')

Expand Down

0 comments on commit 4881ab7

Please sign in to comment.