Our -data option must also contain an event and recipient. This guide provides examples in both formats, so feel free to use the format that you like best. This format allows nested data values using square bracket syntax. To improve working with cURL, Courier also supports a custom urlencoded format that can be used in the place of JSON. You will often send this data in JSON format. We will pass the body of our request using the cURL -data option. Click the gear icon next to the Notification's name to reveal them. The authorization token and event values are the "Auth Token" and "Notification ID" we see in the detail view of our “Test Appointment Reminder” event. The Courier Send API also requires an event. We must send an Authorization header with each request. You can read more about authorization in Courier's "Authorization Overview". For this tutorial, we will use token authorization. Authorization Ĭourier supports both basic and token authorization. For additional code samples, see the "Courier API Reference". You can also use an API testing tool such as Postman or Insomnia. For this tutorial, we will send our messages with cURL, but you can use your preferred language and HTTP library. When you are finished, click Publish in the upper right corner and give it a Publish Message of "Initial notification." Send a Message Ĭourier passes messages to Integrations via the Send endpoint. Courier Notification Template with Sample Message
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |