Platform
Docs
Solutions
ContactLog In
Grand prize: Steamdeck
Raffle

Send a notification in Python, get prizes!

Welcome to the Courier Raffle at PyCon 2023.

Entering the raffle is easy, all you need to do is:

  • Create a free Courier account. Use the same email as your PyCon badge and receive a tshirt!
  • Send an email to prizes@courier.com using the API and be entered to win the grand prize.

All entries get a tshirt!

T-shirt

Instructions

Submissions to the raffle will close on Saturday, April 22 at 2pm. A Python script will selects a random winner and notifies them that they have won! The Steamdeck can be redeemed at booth #362 at 3pm.

  • Go to courier.com and signup for a free account.
  • During sign-up, select “Email” as a provider.
  • Authenticating through Google will be the quickest way.
  • Make sure you check the box to allow Courier to send emails from your account. You’ll be prompted to send your first notification by making an API call. There are code snippets examples in several languages, including Python.
  • Once you choose a language, click the “copy” icon in the top-right.
  • This is important: before you run the code, edit the to field to send the message to prizes@courier.com.

That’s it! You’re now entered into the raffle 🎉

Courier.com screenshot

The Code

If you forget to send the email to prizes@courier.com during onboarding, you can do it anytime afterwards up until the deadline (3pm on 4/22/23) using the code below:

1
# Install Courier SDK: pip install trycourier
2
from trycourier import Courier
3
4
client = Courier(auth_token="YOUR_AUTH_TOKEN")
5
6
resp = client.send_message(
7
message={
8
"to": {
9
"email": "prizes@courier.com"
10
},
11
"content": {
12
"title": "Welcome to Courier!",
13
"body": "Want to hear a joke? {{joke}}"
14
},
15
"data":{
16
"joke": "Why does Python live on land? Because it is above C level"
17
}
18
}
19
)

Prizes

Prizes: tshirt
Prizes: Steamdesk

Build your first notification in minutes

Send up to 10,000 notifications every month, for free.

Get started for free

Email & push notification

Platform

Users

Content

Channels

Sending

Workflows

Preferences

Inbox

Workspaces

Observability

API Status

Changelog

© 2024 Courier. All rights reserved.