For example, ĬCM receives SMS delivery status notification on When this variable is set, it is pushed with every outbound SMS to Twilio and Twilio uses this value a webhook to push SMS delivery notification back to CCM Here are some areas you might like to explore next.If this variable is not set the default URL is constructed using TWILIO_API_ACCOUNT. To dive deeper with a WhatsApp integration, see the WhatsApp documentation overview as well as the API Reference. The Twilio Go helper checks to see if your credentials are available as environment variables, and automatically consumes them for you.Ĭopy the values from the previous step, and set them as environment variables in your terminal with the following commands (replacing the placeholders with your own values):Īlthough these Quickstarts show you how to receive an SMS message, the webhook that Twilio will send will include the same parameters as an incoming SMS message, with the exception that To and From addresses will be set to the WhatsApp number receiving the message ( whatsapp:) and the WhatsApp number sending the message ( whatsapp:), respectively.īecause the Twilio WhatsApp API is essentially the same as the Twilio Programmable SMS API, all the documentation for that API applies to your apps sending and receiving messages with WhatsApp. You'll notice that this code's main function creates a new Twilio client using the twilio.NewRestClient method, but no credentials are passed to it directly. Set your credentials as environment variables You can reveal your Auth Token by clicking Show: ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |