class Zype::Oauth
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` @since 0.19.0
Public Instance Methods
status(access_token:)
click to toggle source
Check the status of the current access token
@param access_token [String] current access token @return [Hash] information about the token. When it expires, etc.
# 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
Private Instance Methods
client_class()
click to toggle source
# File lib/zype/models/oauth.rb, line 27 def client_class Zype::LoginClient end
path()
click to toggle source
# File lib/zype/models/oauth.rb, line 23 def path @path = 'oauth/token' end