Use access token

This commit is contained in:
agatha 2023-11-10 21:33:57 -05:00
parent 0f323c6cfe
commit fb7c7e7bdf

View File

@ -2,6 +2,8 @@
from loguru import logger from loguru import logger
from gitmon.api import GitHubApi from gitmon.api import GitHubApi
from config import token
def print_event(event): def print_event(event):
event_type = event.get('type') event_type = event.get('type')
@ -14,7 +16,7 @@ def print_event(event):
def main(): def main():
"""Main entry point.""" """Main entry point."""
api = GitHubApi() api = GitHubApi(token)
events = api.get_events() events = api.get_events()
for event in events: for event in events: