Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file added __pycache__/main.cpython-36.pyc
Binary file not shown.
12 changes: 5 additions & 7 deletions main.py
Original file line number Diff line number Diff line change
Expand Up @@ -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/{}/events".format(username))
events = json.loads(response.content)

print(events[0]['created_at'])