Wrapper for the airgram api
A python wrapper for making calls to the Airgram API, which enables you to send push notifications to your mobile devices.
Since it is a very shallow wrapper, you can refer to the official api reference for details on the functions.
At the time of writing (2015-08-20) airgram is using wrong certificates (see), which are intended for herokuapp.com. Because of this cert verification needs to be turned off.
from airgram import Airgram ag = Airgram(verify_certs=False) # Send a message to a user ag.send_as_guest("firstname.lastname@example.org", "Test message from Airgram API", "http://example.com")
from airgram import Airgram ag = Airgram(key="MY_SERVICE_KEY", secret="MY_SERVICE_SECRET", verify_certs=False) # Subscribe an email to the service ag.subscribe("email@example.com") # Send a message to a subscriber ag.send("firstname.lastname@example.org", "Hello, how are you?") # Send a message to ALL subscribers ag.broadcast("Airgram for python is awesome", url="https://github.com/the01/python-airgram")
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
|File Name & Checksum SHA256 Checksum Help||Version||File Type||Upload Date|
|airgram-0.1.3-py2.py3-none-any.whl (5.2 kB) Copy SHA256 Checksum SHA256||2.7||Wheel||Aug 25, 2015|
|airgram-0.1.3.tar.gz (4.1 kB) Copy SHA256 Checksum SHA256||–||Source||Aug 25, 2015|