diff --git a/__pycache__/main.cpython-36.pyc b/__pycache__/main.cpython-36.pyc new file mode 100644 index 0000000..90d739e Binary files /dev/null and b/__pycache__/main.cpython-36.pyc differ diff --git a/main.py b/main.py index f2f1db2..e1cb82e 100644 --- a/main.py +++ b/main.py @@ -8,13 +8,11 @@ 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/%7B%7D/events".format(username)) + events = json.loads(response.content) + + print(events[0]['created_at'])