twilio-rs icon indicating copy to clipboard operation
twilio-rs copied to clipboard

Using serde_qs for object serialization to query strings

Open MandrakeDeveloper opened this issue 3 years ago • 0 comments

This is a modification to use https://github.com/samscott89/serde_qs for generating query string for Twilio.

I'd like to expand this library in the future and this change allows to do it easily without manually mapping the parameters to URL.

NOTES:

  • Could you please run the tests? You have working configuration very likely. I am still getting setting up everything. Did a quick small test with serde_qs to ensure URL is generated correctly.
  • Not sure if the handling Client::send_request() is the best. Feel free to modify this patch or reimplement as you see fit.
  • Added logging which might be useful in the future

MandrakeDeveloper avatar Mar 22 '21 08:03 MandrakeDeveloper