Open eadmaster opened 6 years ago
r = requests.post('https://api.pushjet.io/subscription', params={ 'uuid': '\''+str(uuid)+'\'', 'service': MY_SERVICE_ID })
should most likely be
r = requests.post('https://api.pushjet.io/subscription', params={ 'uuid': +str(uuid), 'service': MY_SERVICE_ID })
From what I can infer from your code is that it sends the uuid with two single quotes ('
) on each side. Not just the uuid.
thank you for the tip, now it subscribes correctly, but after that it is not receiving the messages i sent via curl (while the android app is receiving them just fine)
Is it possible to receive the messages sent to a service via a TCP socket and a simple Python script? I've tried using the script in this page + this code for subscription, but it didn't work (invalid UUID error):