Method: Twilio::REST::Conversations::V1::ServiceContext::ConversationContext::MessageContext#fetch
- Defined in:
- lib/twilio-ruby/rest/conversations/v1/service/conversation/message.rb
#fetch ⇒ MessageInstance
Fetch the MessageInstance
228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 |
# File 'lib/twilio-ruby/rest/conversations/v1/service/conversation/message.rb', line 228 def fetch headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) payload = @version.fetch('GET', @uri, headers: headers) MessageInstance.new( @version, payload, chat_service_sid: @solution[:chat_service_sid], conversation_sid: @solution[:conversation_sid], sid: @solution[:sid], ) end |