Re: python 3.4 use python-gcm can't import

2015-06-03 Thread dav . kuhn
Le vendredi 29 août 2014 10:35:29 UTC+2, Frank Liou a écrit : > and body is "b'" .is empty > > i'm so confused.don't know it work or not Hi, you should read() before you close() the connection. conn = http.client.HTTPConnection('android.googleapis.com') conn.request('POST', '/gcm/send', jqs

Re: python 3.4 use python-gcm can't import

2014-08-29 Thread Mark Lawrence
On 29/08/2014 09:35, Frank Liou wrote: what? So...My 3.4 can't use this package? now i use http.client reg_ids = [] reg_ids.append(GetCustomerGCMId[0]) API_KEY = 'xxx' mydata = {'registration_ids': reg_ids, 'data'

Re: python 3.4 use python-gcm can't import

2014-08-29 Thread Frank Liou
what? So...My 3.4 can't use this package? now i use http.client reg_ids = [] reg_ids.append(GetCustomerGCMId[0]) API_KEY = 'xxx' mydata = {'registration_ids': reg_ids, 'data': data} jqs = json.dumps(mydata)

Re: python 3.4 use python-gcm can't import

2014-08-28 Thread Ian Kelly
On Thu, Aug 28, 2014 at 8:30 PM, Frank Liou wrote: > i just > > from gcm import GCM > > then > > > Traceback (most recent call last): > File "C:/Users/frank/Desktop/SinyiAPI/SinyiAPI.py", line 7, in > from Model.Order import Order > File "C:\Users\frank\Desktop\SinyiAPI\Model\Order.py", line

python 3.4 use python-gcm can't import

2014-08-28 Thread Frank Liou
i just from gcm import GCM then Traceback (most recent call last): File "C:/Users/frank/Desktop/SinyiAPI/SinyiAPI.py", line 7, in from Model.Order import Order File "C:\Users\frank\Desktop\SinyiAPI\Model\Order.py", line 7, in from gcm.gcm import GCM File "", line 2237, in _find_and_load