twilio / twilio-ruby

A Ruby gem for communicating with the Twilio API and generating TwiML
MIT License
1.36k stars 464 forks source link

JSON format in response #543

Closed alexborovkov closed 3 years ago

alexborovkov commented 3 years ago

As I see it is possible to return JSON from twilio api endpoint

https://www.twilio.com/docs/usage/troubleshooting/data-types

For example I want to retrieve all messages from channel in JSON format, but this method return XML representation

@client.chat.services(service_sid).channels(params[:channelSid]).messages.list

Is it possible to return JSON using this gem?

eshanholtz commented 3 years ago

@alexborovkov What version of twilio-ruby are you using?