Class: Zype::Oauth
Overview
Read more at docs.zype.com/v1.0/reference#oauth-1 This class only supports create and status methods
To use this class, you must set ‘login_host`
Constant Summary
Constants inherited from BaseModel
Instance Attribute Summary
Attributes inherited from BaseModel
Instance Method Summary collapse
-
#status(access_token:) ⇒ Hash
Check the status of the current access token.
Methods inherited from BaseModel
#all, #auth=, #create, #delete, #find, #initialize, #update
Constructor Details
This class inherits a constructor from Zype::BaseModel
Instance Method Details
#status(access_token:) ⇒ Hash
Check the status of the current access token
17 18 19 |
# File 'lib/zype/models/oauth.rb', line 17 def status(access_token:) client.execute(method: :get, path: "/#{path}/info", params: { access_token: access_token }) end |