Class: Outbrain::Api::Token
- Inherits:
-
Base
- Object
- Hash
- Base
- Outbrain::Api::Token
show all
- Defined in:
- lib/outbrain/api/token.rb
Constant Summary
collapse
- PATH =
"login"
Instance Attribute Summary
Attributes inherited from Base
#errors
Class Method Summary
collapse
Methods inherited from Base
#extract_query_options, #initialize, #persisted?, #valid?
Constructor Details
This class inherits a constructor from Outbrain::Base
Class Method Details
.fetch(user_name, user_password) ⇒ Object
6
7
8
9
|
# File 'lib/outbrain/api/token.rb', line 6
def self.fetch(user_name, user_password)
credentials = {user_name: user_name, user_password: user_password}
token = Request.get(PATH, credentials)
end
|