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
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'
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)
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
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