From 8369a2142c5ac0a62e481f77510502c8e24a2755 Mon Sep 17 00:00:00 2001 From: Rod Musser Date: Fri, 27 Nov 2020 12:41:57 -0800 Subject: [PATCH] Completed Activity 6 --- main.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/main.py b/main.py index f2f1db2..29066bb 100644 --- a/main.py +++ b/main.py @@ -14,7 +14,9 @@ # 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'])