From 3a584d49e1ebafe1ffaecd47d83b2fc2ee1d79ac Mon Sep 17 00:00:00 2001 From: Benjamin Freeman Date: Tue, 11 Aug 2020 14:17:43 -0700 Subject: [PATCH] initial commit --- main.py | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/main.py b/main.py index f2f1db2..2c0caec 100644 --- a/main.py +++ b/main.py @@ -6,15 +6,11 @@ # Use Like python githubber.py JASchilz # (or another user name) + if __name__ == "__main__": username = sys.argv[1] - # TODO: - # - # 1. Retrieve a list of "events" associated with the given user name - # 2. Print out the time stamp associated with the first event in that list. - - print("COMPLETE THE TODOs") - - + response = requests.get("https://api.github.com/users/{}/events".format(username)) + events = json.loads(response.content) + print(events[0]['created_at']) \ No newline at end of file