Skip to main content

Python API Client for Push7

Project description

# push7-python

push7 api client for python
supporting python2.7 and python3.4

# Usage

pip install push7

## Initialize
First, you should create a client for push7.
from push7 import Client

appno = 'edit_your_appno'
apikey = 'edit_your_apps_apikey'

client = Client(appno, apikey)

## Create Push
# Immediately
client.push("title", "body", "", "").send()

# Create a reserved push ( push7 system will be send push to user after 4 hours)
from datetime import datetime, timedelta
target_datetime = + timedelta(hours=4)
client.push("title", "body", "", "", target_datetime).send()

## Create Push with Query

from push7.push import PushWithQuery as query
parameters = ['user001', 'user002']
client.push_with_query("title", "body", "", "", query.Mode._or, parameters).send()

# For Contributors

## Testing

If you want to run tests, you should set environment vars 'PUSH7_APPNO' and 'PUSH7_APIKEY'.
After setting environment vars, you can run tests by below commands.


## Pylint
cd push7
pylint * --disable=R,C,unused-import,locally-disabled

## Mypy
cd push7
mypy --ignore-missing-imports *.py

## Yapf
cd pushy
yapf -r -i push7/

Project details

Download files

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

Files for push7, version 0.0.6
Filename, size File type Python version Upload date Hashes
Filename, size push7-0.0.6-py2-none-any.whl (5.5 kB) File type Wheel Python version py2 Upload date Hashes View
Filename, size push7-0.0.6.tar.gz (3.1 kB) File type Source Python version None Upload date Hashes View

Supported by

Pingdom Pingdom Monitoring Google Google Object Storage and Download Analytics Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page