Class: Twilio::REST::Oauth
- Defined in:
- lib/twilio-ruby/rest/oauth.rb,
lib/twilio-ruby/rest/oauth/v1.rb,
lib/twilio-ruby/rest/oauth/v1/oauth.rb,
lib/twilio-ruby/rest/oauth/v1/token.rb,
lib/twilio-ruby/rest/oauth/v1/user_info.rb,
lib/twilio-ruby/rest/oauth/v1/device_code.rb,
lib/twilio-ruby/rest/oauth/v1/openid_discovery.rb
Defined Under Namespace
Classes: V1
Instance Attribute Summary
Attributes inherited from Domain
Instance Method Summary collapse
- #device_code ⇒ Twilio::REST::Oauth::V1::DeviceCodeInstance
-
#initialize(twilio) ⇒ Oauth
constructor
Initialize the Oauth Domain.
- #oauth ⇒ Twilio::REST::Oauth::V1::OauthInstance
- #openid_discovery ⇒ Twilio::REST::Oauth::V1::OpenidDiscoveryInstance
-
#to_s ⇒ Object
Provide a user friendly representation.
- #token ⇒ Twilio::REST::Oauth::V1::TokenInstance
- #user_info ⇒ Twilio::REST::Oauth::V1::UserInfoInstance
-
#v1 ⇒ Object
Version v1 of oauth.
Methods inherited from Domain
Constructor Details
#initialize(twilio) ⇒ Oauth
Initialize the Oauth Domain
14 15 16 17 18 19 20 21 22 23 |
# File 'lib/twilio-ruby/rest/oauth.rb', line 14 def initialize(twilio) super @base_url = 'https://oauth.twilio.com' @host = 'oauth.twilio.com' @port = 443 # Versions @v1 = nil end |
Instance Method Details
#device_code ⇒ Twilio::REST::Oauth::V1::DeviceCodeInstance
39 40 41 |
# File 'lib/twilio-ruby/rest/oauth.rb', line 39 def device_code self.v1.device_code() end |
#oauth ⇒ Twilio::REST::Oauth::V1::OauthInstance
33 34 35 |
# File 'lib/twilio-ruby/rest/oauth.rb', line 33 def oauth self.v1.oauth() end |
#openid_discovery ⇒ Twilio::REST::Oauth::V1::OpenidDiscoveryInstance
45 46 47 |
# File 'lib/twilio-ruby/rest/oauth.rb', line 45 def openid_discovery self.v1.openid_discovery() end |
#to_s ⇒ Object
Provide a user friendly representation
63 64 65 |
# File 'lib/twilio-ruby/rest/oauth.rb', line 63 def to_s '#<Twilio::REST::Oauth>' end |
#token ⇒ Twilio::REST::Oauth::V1::TokenInstance
51 52 53 |
# File 'lib/twilio-ruby/rest/oauth.rb', line 51 def token self.v1.token() end |
#user_info ⇒ Twilio::REST::Oauth::V1::UserInfoInstance
57 58 59 |
# File 'lib/twilio-ruby/rest/oauth.rb', line 57 def user_info self.v1.user_info() end |