Skip to content

pr0gg3d/txgcm

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 

Repository files navigation

txgcm

txgcm is a Python Twisted wrapper for Google Cloud Messaging

This project is in an ALPHA state

Requirements

pygcm

Installation

Getting Started

from twisted.internet import reactor
from txgcm import GcmClient

# Create client
API_KEY = '1234'
c = GcmClient(API_KEY)

# Set registration ids
reg_ids = ['12', '23', '34']

# Set data to send
data = { 'score' : 100 }

# define a callback (and an errback
def done(result):
    print(result)

# Send data
d = c.send(reg_ids, data)

# Add a callback
d.addCallback(done)

# Run the reactor
reactor.run()

TBF

About

Python Twisted wrapper for Google Cloud Messaging

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages