Skip to content

KenLin114/Python34-GCM

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Python34-GCM

Python3.4 push server for Google Cloud Messaging for Android(GCM)

Installation

pip install requests

Example

You need to put android.pem and GCM.py into your development path

android.pem

API_Key

example.py

# -*- coding: utf-8 -*-
from GCM import *

class Test(object):
	def __init__(self):
		self.gcm = GCM()

	def sendGCM(self, registration_ids, message):
		return self.gcm.sendMessage(registration_ids, message)

if __name__ == '__main__':
	test = Test()
	registration_ids = ["registration_ids"]
	data = {"message":"test"}
	return_data = test.sendGCM(registration_ids,data)
	print(return_data)

About

Python3.4 push server for Google Cloud Messaging for Android(GCM)

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages