Skip to content

Latest commit

 

History

History
37 lines (31 loc) · 817 Bytes

File metadata and controls

37 lines (31 loc) · 817 Bytes

Signalgrid Python Client

PyPI version Python versions

Official Python client for the Signalgrid push-notification API.

Installation

pip install signalgrid

Example

from signalgrid.client import Client

client = Client("YOUR_CLIENT_KEY")

response = client.send({
    "channel": "CHANNEL_TOKEN",
    "type": "info",
    "title": "Hello from Python",
    "body": "This message was sent from a test project.",
    "critical": False
})

print(response)

Response

{
    "ruuid":"bc0e212110067ff2995abff087a4a58c8d843ae9",
    "text":"OK",
    "code":"200",
    "node":"dp03",
    "time":"440ms",
}