Skip to content

Notification

airvpn.api.notification

Notification

Service for handling notifications.

Access type

User-specific, API KEY required.

Choose in the notifications options (https://airvpn.org/notifications/options/), under Air -> API, if you want to see it in the web site and/or in an e-mail.

send(subject: str, body: str)

Send a message to yourself.

Parameters:

Name Type Description Default
subject str

The notification's subject line.

required
body str

The notification's message content.

required

Raises:

Type Description
APIError

If it fails to send the message.

RateLimited

If too many requests go through.