Class: Twilio::REST::Iam::V1::OAuthAppList

Inherits:
ListResource show all
Defined in:
lib/twilio-ruby/rest/iam/v1/o_auth_app.rb

Defined Under Namespace

Classes: IamV1AccountVendorOauthAppCreateRequest, IamV1AccountVendorOauthAppUpdateRequest, IamV1OrganizationVendorOauthAppUpdateRequestPolicy

Instance Method Summary collapse

Constructor Details

#initialize(version) ⇒ OAuthAppList

Initialize the OAuthAppList



172
173
174
175
176
177
178
# File 'lib/twilio-ruby/rest/iam/v1/o_auth_app.rb', line 172

def initialize(version)
    super(version)
    # Path Solution
    @solution = {  }
    @uri = "/Account/OAuthApps"
    
end

Instance Method Details

#create(iam_v1_account_vendor_oauth_app_create_request: nil) ⇒ OAuthAppInstance

Create the OAuthAppInstance



183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
# File 'lib/twilio-ruby/rest/iam/v1/o_auth_app.rb', line 183

def create(iam_v1_account_vendor_oauth_app_create_request: nil
)

    headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', })
    headers['Content-Type'] = 'application/json'
    
    
    
    
    payload = @version.create('POST', @uri, headers: headers, data: .to_json)
    OAuthAppInstance.new(
        @version,
        payload,
    )
end

#to_sObject

Provide a user friendly representation



203
204
205
# File 'lib/twilio-ruby/rest/iam/v1/o_auth_app.rb', line 203

def to_s
    '#<Twilio.Iam.V1.OAuthAppList>'
end