From bd636b756b109c78a4113b10204edbe076b35b80 Mon Sep 17 00:00:00 2001 From: JonnyWong16 Date: Sat, 30 Sep 2017 15:03:51 -0700 Subject: [PATCH] Update PushBullet authorization header --- plexpy/notifiers.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plexpy/notifiers.py b/plexpy/notifiers.py index 6c724ecd..9a6e2780 100644 --- a/plexpy/notifiers.py +++ b/plexpy/notifiers.py @@ -1123,7 +1123,7 @@ class PUSHBULLET(object): http_handler.request("POST", "/v2/pushes", headers={'Content-type': "application/json", - 'Authorization': 'Basic %s' % base64.b64encode(self.apikey + ":")}, + 'Access-Token': self.apikey}, body=json.dumps(data)) response = http_handler.getresponse() @@ -1155,7 +1155,7 @@ class PUSHBULLET(object): http_handler = HTTPSConnection("api.pushbullet.com") http_handler.request("GET", "/v2/devices", headers={'Content-type': "application/json", - 'Authorization': 'Basic %s' % base64.b64encode(self.apikey + ":")}) + 'Access-Token': self.apikey}) response = http_handler.getresponse() request_status = response.status