![]() Here’s an example of how to use the toBinding parameter to send multi-channel notifications without storing addresses in Notify. For Facebook Messenger it is the Messenger ID. For APNS, GCM and FCM it is the device or registration token. For SMS it is the phone number in E.164 format. Possible values: sms, apn, gcm, fcm, facebook-messenger. binding_type – The channel to be used. ![]() ToBinding Parameter: The destination address in a JSON object. This is typically sufficient for 10,000 phone numbers. However, the total size of the request entity should not exceed 1MB. You can send notifications to addresses without storing them by using the toBinding parameter. With the Passthrough API, you can use a single API request to send multi-channel bulk SMS messages or notifications to your entire database of residents in the affected area. We could write the code to queue the messages to be sent creating greater complexity in our application or we could reach into the bag of Twilio tricks and pull out one that is going to save us a lot of time and effort. What’s more critical is that this information needs to be conveyed in a timely manner. Due to the asynchronous nature of Node.js and the Twilio API’s concurrency limits, you might find errors.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |