diff --git a/main.py b/main.py index f2f1db2..18156bf 100644 --- a/main.py +++ b/main.py @@ -9,12 +9,14 @@ if __name__ == "__main__": username = sys.argv[1] + url = "https://api.github.com/users/%7B%7D/events".format(username) + + response = requests.get(url) + events = json.loads(response.content) + + print(events[0]['created_at']) + # 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") - - -