diff --git a/bumblebee/modules/github.py b/bumblebee/modules/github.py index 187d266..35f5725 100644 --- a/bumblebee/modules/github.py +++ b/bumblebee/modules/github.py @@ -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: