For the week of November 9th, we did something a little different. I teamed up with Shyamal Ruparel, Developer Evangelist at Contentful to build an application that used Courier and Contentful during our respective live streams. We started on the ContentfulDevs stream on November 10th and finished the next day on the Courier Live stream.
During these two hour-long sessions, we updated Shy's existing Henshin blog that he created using Python, Flask, and Contentful to allow readers to subscribe to post updates. We used the Courier Lists API to add readers to lists based on blog tags. We then set up Contentful Webhooks to send to the list, specified by tag, using Courier when new posts were published.
Check out the videos below to watch us:
Add the Subscribe UI to the existing blog
Use a Flask route and the Courier Python SDK to add the user to a list
Add the ability to unsubscribe
Set up a Contentful Webhook and connect it to a Flask Route
Send to a Courier List using the payload from the Contentful Webhook
Create a Courier Notification that uses data from Contentful
Check out the full project code available on GitHub.
Be sure to Like the video and Subscribe to our YouTube channel.
Is there something you’d like to see us do using Courier? Let us know and it might be the subject of our next Courier Live. We stream a new Courier Live every Wednesday at 12 pm PT (3 pm ET). Follow us on Twitch to be notified when we go live.