Class: Twilio::REST::Conversations::V1::ConversationWithParticipantsList
- Inherits:
-
ListResource
- Object
- ListResource
- Twilio::REST::Conversations::V1::ConversationWithParticipantsList
- Defined in:
- lib/twilio-ruby/rest/conversations/v1/conversation_with_participants.rb
Instance Method Summary collapse
-
#create(friendly_name: :unset, unique_name: :unset, date_created: :unset, date_updated: :unset, messaging_service_sid: :unset, attributes: :unset, state: :unset, timers_inactive: :unset, timers_closed: :unset, bindings_email_address: :unset, bindings_email_name: :unset, participant: :unset, x_twilio_webhook_enabled: :unset) ⇒ ConversationWithParticipantsInstance
Create the ConversationWithParticipantsInstance.
-
#initialize(version) ⇒ ConversationWithParticipantsList
constructor
Initialize the ConversationWithParticipantsList.
-
#to_s ⇒ Object
Provide a user friendly representation.
Constructor Details
#initialize(version) ⇒ ConversationWithParticipantsList
Initialize the ConversationWithParticipantsList
26 27 28 29 30 31 32 |
# File 'lib/twilio-ruby/rest/conversations/v1/conversation_with_participants.rb', line 26 def initialize(version) super(version) # Path Solution @solution = { } @uri = "/ConversationWithParticipants" end |
Instance Method Details
#create(friendly_name: :unset, unique_name: :unset, date_created: :unset, date_updated: :unset, messaging_service_sid: :unset, attributes: :unset, state: :unset, timers_inactive: :unset, timers_closed: :unset, bindings_email_address: :unset, bindings_email_name: :unset, participant: :unset, x_twilio_webhook_enabled: :unset) ⇒ ConversationWithParticipantsInstance
Create the ConversationWithParticipantsInstance
49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 |
# File 'lib/twilio-ruby/rest/conversations/v1/conversation_with_participants.rb', line 49 def create( friendly_name: :unset, unique_name: :unset, date_created: :unset, date_updated: :unset, messaging_service_sid: :unset, attributes: :unset, state: :unset, timers_inactive: :unset, timers_closed: :unset, bindings_email_address: :unset, bindings_email_name: :unset, participant: :unset, x_twilio_webhook_enabled: :unset ) data = Twilio::Values.of({ 'FriendlyName' => friendly_name, 'UniqueName' => unique_name, 'DateCreated' => Twilio.serialize_iso8601_datetime(date_created), 'DateUpdated' => Twilio.serialize_iso8601_datetime(date_updated), 'MessagingServiceSid' => messaging_service_sid, 'Attributes' => attributes, 'State' => state, 'Timers.Inactive' => timers_inactive, 'Timers.Closed' => timers_closed, 'Bindings.Email.Address' => bindings_email_address, 'Bindings.Email.Name' => bindings_email_name, 'Participant' => Twilio.serialize_list(participant) { |e| e }, }) headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', 'X-Twilio-Webhook-Enabled' => x_twilio_webhook_enabled, }) payload = @version.create('POST', @uri, data: data, headers: headers) ConversationWithParticipantsInstance.new( @version, payload, ) end |
#to_s ⇒ Object
Provide a user friendly representation
97 98 99 |
# File 'lib/twilio-ruby/rest/conversations/v1/conversation_with_participants.rb', line 97 def to_s '#<Twilio.Conversations.V1.ConversationWithParticipantsList>' end |