Skip to content
Open
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
11 changes: 6 additions & 5 deletions main.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,15 +6,16 @@
# Use Like python githubber.py JASchilz
# (or another user name)



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.
response = requests.get("https://api.github.com/users/{}/events/public".format(username))
events = json.loads(response.content)

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

print("COMPLETE THE TODOs")