mirror of
https://github.com/Tautulli/Tautulli.git
synced 2025-07-13 00:32:58 -07:00
Update PushBullet authorization header
This commit is contained in:
parent
d21b74f231
commit
bd636b756b
1 changed files with 2 additions and 2 deletions
|
@ -1123,7 +1123,7 @@ class PUSHBULLET(object):
|
||||||
http_handler.request("POST",
|
http_handler.request("POST",
|
||||||
"/v2/pushes",
|
"/v2/pushes",
|
||||||
headers={'Content-type': "application/json",
|
headers={'Content-type': "application/json",
|
||||||
'Authorization': 'Basic %s' % base64.b64encode(self.apikey + ":")},
|
'Access-Token': self.apikey},
|
||||||
body=json.dumps(data))
|
body=json.dumps(data))
|
||||||
|
|
||||||
response = http_handler.getresponse()
|
response = http_handler.getresponse()
|
||||||
|
@ -1155,7 +1155,7 @@ class PUSHBULLET(object):
|
||||||
http_handler = HTTPSConnection("api.pushbullet.com")
|
http_handler = HTTPSConnection("api.pushbullet.com")
|
||||||
http_handler.request("GET", "/v2/devices",
|
http_handler.request("GET", "/v2/devices",
|
||||||
headers={'Content-type': "application/json",
|
headers={'Content-type': "application/json",
|
||||||
'Authorization': 'Basic %s' % base64.b64encode(self.apikey + ":")})
|
'Access-Token': self.apikey})
|
||||||
|
|
||||||
response = http_handler.getresponse()
|
response = http_handler.getresponse()
|
||||||
request_status = response.status
|
request_status = response.status
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue