Skip to main content

No project description provided

Project description

Rust implementation for sending APNs push notifications

Usage

import py3a2

# Returns integer as request status code
# * 200 Success
# * 400 Bad request
# * 403 There was an error with the certificate or with the provider authentication token
# * 405 The request used a bad `:method` value. Only `POST` requests are supported.
# * 410 The device token is no longer active for the topic.
# * 413 The notification payload was too large.
# * 429 The server received too many requests for the same device token.
# * 500 Internal server error.
# * 503 The server is shutting down and unavailable.
py3a2.send_notification(cert_file       # Binary p12 file
                        password,       # Password for the p12 file
                        device_token,   # Device token
                        title,          # Title of the message
                        message,        # Body of message
                        is_sandbox,     # Is sandbox environment
                        topic,          # Topic
                        badge,          # Badge
                        custom_id,      # APNS-ID
                        user_id)        # Custom data - user id

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distributions

py3a2-0.1.5-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (4.1 MB view hashes)

Uploaded CPython 3.11 manylinux: glibc 2.17+ x86-64

py3a2-0.1.5-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (4.1 MB view hashes)

Uploaded CPython 3.10 manylinux: glibc 2.17+ x86-64

py3a2-0.1.5-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (4.1 MB view hashes)

Uploaded CPython 3.9 manylinux: glibc 2.17+ x86-64

py3a2-0.1.5-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (4.1 MB view hashes)

Uploaded CPython 3.8 manylinux: glibc 2.17+ x86-64

py3a2-0.1.5-cp37-cp37m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (4.1 MB view hashes)

Uploaded CPython 3.7m manylinux: glibc 2.17+ x86-64

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page