@staticmethod
    def gcm_send(ids, data):
        data = dumps({
            "registration_ids": ids,
            "data": data,
        })
        headers = {
            'Authorization': 'key=%s' % google_api_key,
            'Content-Type': 'application/json',
        }
        req = urllib2.Request('https://android.googleapis.com/gcm/send', data, headers)
        urllib2.urlopen(req).read()
dataset/ETHPy150Open Pushjet/Pushjet-Server-Api/models/gcm.py/Gcm.gcm_send/original