Class: Twilio::REST::Oauth::V1::AuthorizeList
- Inherits:
-
ListResource
- Object
- ListResource
- Twilio::REST::Oauth::V1::AuthorizeList
- Defined in:
- lib/twilio-ruby/rest/oauth/v1/authorize.rb
Instance Method Summary collapse
-
#fetch(response_type: :unset, client_id: :unset, redirect_uri: :unset, scope: :unset, state: :unset) ⇒ AuthorizeInstance
Fetch the AuthorizeInstance.
-
#initialize(version) ⇒ AuthorizeList
constructor
Initialize the AuthorizeList.
-
#to_s ⇒ Object
Provide a user friendly representation.
Constructor Details
#initialize(version) ⇒ AuthorizeList
Initialize the AuthorizeList
26 27 28 29 30 31 32 |
# File 'lib/twilio-ruby/rest/oauth/v1/authorize.rb', line 26 def initialize(version) super(version) # Path Solution @solution = { } @uri = "/authorize" end |
Instance Method Details
#fetch(response_type: :unset, client_id: :unset, redirect_uri: :unset, scope: :unset, state: :unset) ⇒ AuthorizeInstance
Fetch the AuthorizeInstance
41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 |
# File 'lib/twilio-ruby/rest/oauth/v1/authorize.rb', line 41 def fetch( response_type: :unset, client_id: :unset, redirect_uri: :unset, scope: :unset, state: :unset ) params = Twilio::Values.of({ 'ResponseType' => response_type, 'ClientId' => client_id, 'RedirectUri' => redirect_uri, 'Scope' => scope, 'State' => state, }) payload = @version.fetch('GET', @uri, params: params) AuthorizeInstance.new( @version, payload, ) end |
#to_s ⇒ Object
Provide a user friendly representation
68 69 70 |
# File 'lib/twilio-ruby/rest/oauth/v1/authorize.rb', line 68 def to_s '#<Twilio.Oauth.V1.AuthorizeList>' end |