- post_data = {
- 'msg': urllib.urlencode(data),
- 'to': notifo_user
- }
- post_data = urllib.urlencode(post_data)
- req = urllib2.Request('https://api.notifo.com/v1/send_notification')
- base64string = base64.encodestring('%s:%s' % (notifo_user, notifo_key)).replace('\n', '')
- req.add_header("Authorization", "Basic %s" % base64string)