twilio / twilio-go

A Go package for communicating with the Twilio API.
MIT License
271 stars 40 forks source link

Example in the docs website is either wrong/outdated #208

Open luigimorel opened 11 months ago

luigimorel commented 11 months ago

Issue Summary

The docs https://www.twilio.com/docs/whatsapp/quickstart/go and the example in the README are not the same. I could figure out how to use the example in the docs until I visited the repository only to realize that I was using the wrong method, in this case twilio.NewRestClient() instead of twilio.NewRestClientWithParams() to pass the token and SID.

Steps to Reproduce

  1. Visit https://www.twilio.com/docs/whatsapp/quickstart/go
  2. Visit the README here
  3. Compare the examples

Code Snippet

None

Exception/Log

# paste exception/log here

Technical details:

kevinburkesegment commented 11 months ago

Hi Luigi, Thank you very much for bringing this to our attention - we'll take a look.

tiwarishubham635 commented 1 month ago

Hi @luigimorel! The documentation refers to sending a whatsApp messaging while readme does not provide that. We think both are updated. Can you check?