Merge pull request #105 from ibrokemypie/github-headers
[modules/github] Use header rather than url for token
This commit is contained in:
commit
815a48f65d
1 changed files with 1 additions and 1 deletions
|
@ -44,7 +44,7 @@ class Module(bumblebee.engine.Module):
|
|||
self._count = 0
|
||||
return
|
||||
|
||||
notifications = requests.get("https://api.github.com/notifications?access_token={}".format(token)).text
|
||||
notifications = requests.get("https://api.github.com/notifications", headers={"Authorization":"token "+format(token)}).text
|
||||
unread = 0
|
||||
for notification in json.loads(notifications):
|
||||
if "unread" in notification and notification["unread"] == True:
|
||||
|
|
Loading…
Reference in a new issue