python-gcm

Python client for Google Cloud Messaging for Android (GCM)
Download

python-gcm Ranking & Summary

Advertisement

  • Rating:
  • License:
  • MIT/X Consortium Lic...
  • Price:
  • FREE
  • Publisher Name:
  • Minh Nam Ngo
  • Publisher web site:
  • http://blog.namis.me/

python-gcm Tags


python-gcm Description

python-gcm is a Python client for Google Cloud Messaging for Android (GCM).UsageRTFM here gcm = GCM(API_KEY) data = {'param1': 'value1', 'param2': 'value2'} # Plaintext request reg_id = '12345' res = gcm.plaintext_request(registration_id=reg_id, data=data) # JSON request reg_ids = res = gcm.json_request(registration_ids=reg_ids, data=data) # Extra arguments res = gcm.json_request( registration_ids=reg_ids, data=data, collapse_key='uptoyou', delay_while_idle=True, time_to_live=3600 ) # Handle responses. This raises exceptions when GCM servers return errors gcm.handle_response(res)ExceptionsRead more on response errors here.* GCMMalformedJsonException* GCMConnectionException* GCMAuthenticationException* GCMTooManyRegIdsException* GCMMissingRegistrationException* GCMMismatchSenderIdException* GCMNotRegisteredException* GCMMessageTooBigExceptionProduct's homepage


python-gcm Related Software