Class: Signnow::Authentications::Base
- Inherits:
-
Object
- Object
- Signnow::Authentications::Base
- Defined in:
- lib/signnow/authentications/base.rb
Direct Known Subclasses
Class Method Summary collapse
-
.authenticate(attributes = {}) ⇒ Array
Retrieves an oauth token from the Signnow API.
Class Method Details
.authenticate(attributes = {}) ⇒ Array
Retrieves an oauth token from the Signnow API
9 10 11 12 13 14 15 16 17 18 19 20 |
# File 'lib/signnow/authentications/base.rb', line 9 def authenticate(attributes = {}) response = Signnow.request( :post, nil, self.api_authenticate_url, attributes_for_authentication(attributes), .merge( use_form_data: true ) ) self.new(response) end |