Class: Echosign::Refresh

Inherits:
Hash
  • Object
show all
Includes:
Validatable
Defined in:
lib/echosign/refresh.rb

Instance Method Summary collapse

Methods included from Validatable

#require_exactly_one, #require_keys, #validate_field

Constructor Details

#initialize(client_id, client_secret, refresh_token) ⇒ Refresh

Builds a Credentials object

Parameters:

  • client_id (String)

    Application key

  • client_secret (String)

    Application secret

  • refresh_token (String)

    OAuth Refresh Token


11
12
13
14
15
16
17
18
19
20
21
# File 'lib/echosign/refresh.rb', line 11

def initialize(client_id, client_secret, refresh_token)

  merge!(
  {
    :client_id => client_id,
    :client_secret => client_secret,
    :refresh_token => refresh_token,
    :grant_type => "refresh_token"
  }
  )
end