Sha256: 8973f7030ecb34145f9eaefb729888b43f93ea269b28e54b530ab8b121137a1c

Contents?: true

Size: 1.14 KB

Versions: 5

Compression:

Stored size: 1.14 KB

Contents

##
# This code was generated by
# \ / _    _  _|   _  _
#  | (_)\/(_)(_|\/| |(/_  v1.0.0
#       /       /
#
# frozen_string_literal: true

module Twilio
  module REST
    class Oauth < Domain
      ##
      # Initialize the Oauth Domain
      def initialize(twilio)
        super

        @base_url = 'https://oauth.twilio.com'
        @host = 'oauth.twilio.com'
        @port = 443

        # Versions
        @v1 = nil
      end

      ##
      # Version v1 of oauth
      def v1
        @v1 ||= V1.new self
      end

      ##
      # @return [Twilio::REST::Oauth::V1::OauthInstance]
      def oauth
        self.v1.oauth()
      end

      ##
      # @return [Twilio::REST::Oauth::V1::OpenidDiscoveryInstance]
      def openid_discovery
        self.v1.openid_discovery()
      end

      ##
      # @return [Twilio::REST::Oauth::V1::TokenInstance]
      def token
        self.v1.token()
      end

      ##
      # @return [Twilio::REST::Oauth::V1::UserInfoInstance]
      def user_info
        self.v1.user_info()
      end

      ##
      # Provide a user friendly representation
      def to_s
        '#<Twilio::REST::Oauth>'
      end
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
twilio-ruby-5.73.4 lib/twilio-ruby/rest/oauth.rb
twilio-ruby-5.73.3 lib/twilio-ruby/rest/oauth.rb
twilio-ruby-5.73.2 lib/twilio-ruby/rest/oauth.rb
twilio-ruby-5.73.1 lib/twilio-ruby/rest/oauth.rb
twilio-ruby-5.73.0 lib/twilio-ruby/rest/oauth.rb