Im having some issue trying to get ackknowalgemtns working with python.
thus far my code posts the message and gets the JSON sting in return but now i need a way to get the receipt out of the string
import requests
app_token = 'app token'
user_token = 'user token'
title = 'TEST MESSGAE'
text = 'text for polling'
params = {
'token': app_token,
'user': user_token,
'title': title,
'message': text,
'retry': 30,
'expire': 180,
'priority': 2,
'sound': 'siren',
}
msg = requests.post('https://api.pushover.net/1/messages.json', data=params)
print "POSTed message"
print msg.json()
output is
POSTed message
{u'status': 1, u'receipt': u'riD7NEukZsiDQpjhiNppphYnpue8uK', u'request': u'ef5f42d568e966cbf3d2b28c6579397c'}
The parameter is a case-sensitive, 30 character string containing the character set [A-Za-z0-9]. would this be a REGEX job ?