Class: Feathr::Api::ApiTokenAuth

Inherits:
FeathrEndpoint show all
Defined in:
lib/feathr/api/api_token_auth.rb

Instance Attribute Summary

Attributes inherited from FeathrEndpoint

#client, #prepended_path

Instance Method Summary collapse

Methods inherited from FeathrEndpoint

api_path, define_all, define_create, define_destroy, define_find, define_update, feathr_endpoints, feathr_object, #initialize

Constructor Details

This class inherits a constructor from Feathr::Api::FeathrEndpoint

Instance Method Details

#authenticate(email:, password:) ⇒ Object



7
8
9
10
# File 'lib/feathr/api/api_token_auth.rb', line 7

def authenticate(email:, password:)
  query = { email: email, password: password }
  client.request(method: :post, path: api_path, query: query)
end