From fb7c7e7bdf8056684d16c2435235005d3cff7d0d Mon Sep 17 00:00:00 2001 From: agatha Date: Fri, 10 Nov 2023 21:33:57 -0500 Subject: [PATCH] Use access token --- main.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/main.py b/main.py index 9c1a022..7e9c810 100644 --- a/main.py +++ b/main.py @@ -2,6 +2,8 @@ from loguru import logger from gitmon.api import GitHubApi +from config import token + def print_event(event): event_type = event.get('type') @@ -14,7 +16,7 @@ def print_event(event): def main(): """Main entry point.""" - api = GitHubApi() + api = GitHubApi(token) events = api.get_events() for event in events: