class Twilio::REST::Messaging::V1::ServiceContext::UsAppToPersonUsecaseList

PLEASE NOTE that this class contains beta products that are subject to change. Use them with caution.

Public Class Methods

new(version, messaging_service_sid: nil) click to toggle source

Initialize the UsAppToPersonUsecaseList @param [Version] version Version that contains the resource @param [String] messaging_service_sid The unique string that we created to

identify the Service resource.

@return [UsAppToPersonUsecaseList] UsAppToPersonUsecaseList

Calls superclass method Twilio::REST::ListResource::new
   # File lib/twilio-ruby/rest/messaging/v1/service/us_app_to_person_usecase.rb
23 def initialize(version, messaging_service_sid: nil)
24   super(version)
25 
26   # Path Solution
27   @solution = {messaging_service_sid: messaging_service_sid}
28   @uri = "/Services/#{@solution[:messaging_service_sid]}/Compliance/Usa2p/Usecases"
29 end

Public Instance Methods

fetch(brand_registration_sid: :unset) click to toggle source

Fetch the UsAppToPersonUsecaseInstance @param [String] brand_registration_sid The unique string to identify the A2P

brand.

@return [UsAppToPersonUsecaseInstance] Fetched UsAppToPersonUsecaseInstance

   # File lib/twilio-ruby/rest/messaging/v1/service/us_app_to_person_usecase.rb
36 def fetch(brand_registration_sid: :unset)
37   params = Twilio::Values.of({'BrandRegistrationSid' => brand_registration_sid, })
38 
39   payload = @version.fetch('GET', @uri, params: params)
40 
41   UsAppToPersonUsecaseInstance.new(
42       @version,
43       payload,
44       messaging_service_sid: @solution[:messaging_service_sid],
45   )
46 end
to_s() click to toggle source

Provide a user friendly representation

   # File lib/twilio-ruby/rest/messaging/v1/service/us_app_to_person_usecase.rb
50 def to_s
51   '#<Twilio.Messaging.V1.UsAppToPersonUsecaseList>'
52 end