From 6a652b35f1a69a59482fa39ed09f3c966dd6053f Mon Sep 17 00:00:00 2001 From: KRTstudent <51278428+KRTstudent@users.noreply.github.com> Date: Sat, 2 May 2020 17:26:32 -0700 Subject: [PATCH] Completed activity --- main.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/main.py b/main.py index f2f1db2..4761166 100644 --- a/main.py +++ b/main.py @@ -13,8 +13,10 @@ # # 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. + response = requests.get("https://api.github.com/users/:username/received_events".format(username)) + events = json.loads(response.content) - print("COMPLETE THE TODOs") + print(events[0]['created_at'])