{"action":"created","comment":{"url":"https://api.github.com/repos/DecodeMTL/node-workshop-2/pulls/comments/39803096","id":39803096,"diff_hunk":"@@ -0,0 +1,35 @@\n+var http = require('http');\n+var request = require('request');\n+var apiKey = require('./library/apikey');\n+\n+//var requestListener = function (req, response) {\n+function requestListener (req, response) {\n+  \n+  var userCity = req.url.substring(1);\n+  \n+  request('https://maps.googleapis.com/maps/api/geocode/json?address=' + userCity + \"CA+&key=\" + apiKey.googleApiKey, function(err, res, body) {\n+      console.log(err, res, body);\n+      if (err) {\n+        response.writeHead(200);","path":"location-server.js","position":13,"original_position":13,"commit_id":"dbb6acd193497b218d3282ed51ad71a71edddbf0","original_commit_id":"dbb6acd193497b218d3282ed51ad71a71edddbf0","user":{"login":"nyanofthemoon","id":3919995,"avatar_url":"https://avatars.githubusercontent.com/u/3919995?v=3","gravatar_id":"","url":"https://api.github.com/users/nyanofthemoon","html_url":"https://github.com/nyanofthemoon","followers_url":"https://api.github.com/users/nyanofthemoon/followers","following_url":"https://api.github.com/users/nyanofthemoon/following{/other_user}","gists_url":"https://api.github.com/users/nyanofthemoon/gists{/gist_id}","starred_url":"https://api.github.com/users/nyanofthemoon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nyanofthemoon/subscriptions","organizations_url":"https://api.github.com/users/nyanofthemoon/orgs","repos_url":"https://api.github.com/users/nyanofthemoon/repos","events_url":"https://api.github.com/users/nyanofthemoon/events{/privacy}","received_events_url":"https://api.github.com/users/nyanofthemoon/received_events","type":"User","site_admin":false},"body":"Challenge: read up on HTTP Status Codes~","created_at":"2015-09-17T21:45:37Z","updated_at":"2015-09-17T21:45:37Z","html_url":"https://github.com/DecodeMTL/node-workshop-2/pull/3#discussion_r39803096","pull_request_url":"https://api.github.com/repos/DecodeMTL/node-workshop-2/pulls/3","_links":{"self":{"href":"https://api.github.com/repos/DecodeMTL/node-workshop-2/pulls/comments/39803096"},"html":{"href":"https://github.com/DecodeMTL/node-workshop-2/pull/3#discussion_r39803096"},"pull_request":{"href":"https://api.github.com/repos/DecodeMTL/node-workshop-2/pulls/3"}}},"pull_request":{"url":"https://api.github.com/repos/DecodeMTL/node-workshop-2/pulls/3","id":45213997,"html_url":"https://github.com/DecodeMTL/node-workshop-2/pull/3","diff_url":"https://github.com/DecodeMTL/node-workshop-2/pull/3.diff","patch_url":"https://github.com/DecodeMTL/node-workshop-2/pull/3.patch","issue_url":"https://api.github.com/repos/DecodeMTL/node-workshop-2/issues/3","number":3,"state":"open","locked":false,"title":"Exercises for the 2nd Node assignment","user":{"login":"Cathe313","id":12678570,"avatar_url":"https://avatars.githubusercontent.com/u/12678570?v=3","gravatar_id":"","url":"https://api.github.com/users/Cathe313","html_url":"https://github.com/Cathe313","followers_url":"https://api.github.com/users/Cathe313/followers","following_url":"https://api.github.com/users/Cathe313/following{/other_user}","gists_url":"https://api.github.com/users/Cathe313/gists{/gist_id}","starred_url":"https://api.github.com/users/Cathe313/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Cathe313/subscriptions","organizations_url":"https://api.github.com/users/Cathe313/orgs","repos_url":"https://api.github.com/users/Cathe313/repos","events_url":"https://api.github.com/users/Cathe313/events{/privacy}","received_events_url":"https://api.github.com/users/Cathe313/received_events","type":"User","site_admin":false},"body":"This pull request should contain all the exercises from the 2nd Node workshop (September 16, 2015).","created_at":"2015-09-16T19:30:33Z","updated_at":"2015-09-17T21:45:37Z","closed_at":null,"merged_at":null,"merge_commit_sha":"10716a3d0244334ce76d4d4ca1cf4f438b2568a9","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/DecodeMTL/node-workshop-2/pulls/3/commits","review_comments_url":"https://api.github.com/repos/DecodeMTL/node-workshop-2/pulls/3/comments","review_comment_url":"https://api.github.com/repos/DecodeMTL/node-workshop-2/pulls/comments{/number}","comments_url":"https://api.github.com/repos/DecodeMTL/node-workshop-2/issues/3/comments","statuses_url":"https://api.github.com/repos/DecodeMTL/node-workshop-2/statuses/dbb6acd193497b218d3282ed51ad71a71edddbf0","head":{"label":"Cathe313:master","ref":"master","sha":"dbb6acd193497b218d3282ed51ad71a71edddbf0","user":{"login":"Cathe313","id":12678570,"avatar_url":"https://avatars.githubusercontent.com/u/12678570?v=3","gravatar_id":"","url":"https://api.github.com/users/Cathe313","html_url":"https://github.com/Cathe313","followers_url":"https://api.github.com/users/Cathe313/followers","following_url":"https://api.github.com/users/Cathe313/following{/other_user}","gists_url":"https://api.github.com/users/Cathe313/gists{/gist_id}","starred_url":"https://api.github.com/users/Cathe313/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Cathe313/subscriptions","organizations_url":"https://api.github.com/users/Cathe313/orgs","repos_url":"https://api.github.com/users/Cathe313/repos","events_url":"https://api.github.com/users/Cathe313/events{/privacy}","received_events_url":"https://api.github.com/users/Cathe313/received_events","type":"User","site_admin":false},"repo":{"id":42603894,"name":"node-workshop-2","full_name":"Cathe313/node-workshop-2","owner":{"login":"Cathe313","id":12678570,"avatar_url":"https://avatars.githubusercontent.com/u/12678570?v=3","gravatar_id":"","url":"https://api.github.com/users/Cathe313","html_url":"https://github.com/Cathe313","followers_url":"https://api.github.com/users/Cathe313/followers","following_url":"https://api.github.com/users/Cathe313/following{/other_user}","gists_url":"https://api.github.com/users/Cathe313/gists{/gist_id}","starred_url":"https://api.github.com/users/Cathe313/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Cathe313/subscriptions","organizations_url":"https://api.github.com/users/Cathe313/orgs","repos_url":"https://api.github.com/users/Cathe313/repos","events_url":"https://api.github.com/users/Cathe313/events{/privacy}","received_events_url":"https://api.github.com/users/Cathe313/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/Cathe313/node-workshop-2","description":"NodeJS Workshop #2","fork":true,"url":"https://api.github.com/repos/Cathe313/node-workshop-2","forks_url":"https://api.github.com/repos/Cathe313/node-workshop-2/forks","keys_url":"https://api.github.com/repos/Cathe313/node-workshop-2/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Cathe313/node-workshop-2/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Cathe313/node-workshop-2/teams","hooks_url":"https://api.github.com/repos/Cathe313/node-workshop-2/hooks","issue_events_url":"https://api.github.com/repos/Cathe313/node-workshop-2/issues/events{/number}","events_url":"https://api.github.com/repos/Cathe313/node-workshop-2/events","assignees_url":"https://api.github.com/repos/Cathe313/node-workshop-2/assignees{/user}","branches_url":"https://api.github.com/repos/Cathe313/node-workshop-2/branches{/branch}","tags_url":"https://api.github.com/repos/Cathe313/node-workshop-2/tags","blobs_url":"https://api.github.com/repos/Cathe313/node-workshop-2/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Cathe313/node-workshop-2/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Cathe313/node-workshop-2/git/refs{/sha}","trees_url":"https://api.github.com/repos/Cathe313/node-workshop-2/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Cathe313/node-workshop-2/statuses/{sha}","languages_url":"https://api.github.com/repos/Cathe313/node-workshop-2/languages","stargazers_url":"https://api.github.com/repos/Cathe313/node-workshop-2/stargazers","contributors_url":"https://api.github.com/repos/Cathe313/node-workshop-2/contributors","subscribers_url":"https://api.github.com/repos/Cathe313/node-workshop-2/subscribers","subscription_url":"https://api.github.com/repos/Cathe313/node-workshop-2/subscription","commits_url":"https://api.github.com/repos/Cathe313/node-workshop-2/commits{/sha}","git_commits_url":"https://api.github.com/repos/Cathe313/node-workshop-2/git/commits{/sha}","comments_url":"https://api.github.com/repos/Cathe313/node-workshop-2/comments{/number}","issue_comment_url":"https://api.github.com/repos/Cathe313/node-workshop-2/issues/comments{/number}","contents_url":"https://api.github.com/repos/Cathe313/node-workshop-2/contents/{+path}","compare_url":"https://api.github.com/repos/Cathe313/node-workshop-2/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Cathe313/node-workshop-2/merges","archive_url":"https://api.github.com/repos/Cathe313/node-workshop-2/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Cathe313/node-workshop-2/downloads","issues_url":"https://api.github.com/repos/Cathe313/node-workshop-2/issues{/number}","pulls_url":"https://api.github.com/repos/Cathe313/node-workshop-2/pulls{/number}","milestones_url":"https://api.github.com/repos/Cathe313/node-workshop-2/milestones{/number}","notifications_url":"https://api.github.com/repos/Cathe313/node-workshop-2/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Cathe313/node-workshop-2/labels{/name}","releases_url":"https://api.github.com/repos/Cathe313/node-workshop-2/releases{/id}","created_at":"2015-09-16T17:52:40Z","updated_at":"2015-09-16T19:27:22Z","pushed_at":"2015-09-17T18:25:00Z","git_url":"git://github.com/Cathe313/node-workshop-2.git","ssh_url":"git@github.com:Cathe313/node-workshop-2.git","clone_url":"https://github.com/Cathe313/node-workshop-2.git","svn_url":"https://github.com/Cathe313/node-workshop-2","homepage":null,"size":100,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"DecodeMTL:master","ref":"master","sha":"281ac7143eb72b93c7351a365720889144d64002","user":{"login":"DecodeMTL","id":14301039,"avatar_url":"https://avatars.githubusercontent.com/u/14301039?v=3","gravatar_id":"","url":"https://api.github.com/users/DecodeMTL","html_url":"https://github.com/DecodeMTL","followers_url":"https://api.github.com/users/DecodeMTL/followers","following_url":"https://api.github.com/users/DecodeMTL/following{/other_user}","gists_url":"https://api.github.com/users/DecodeMTL/gists{/gist_id}","starred_url":"https://api.github.com/users/DecodeMTL/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DecodeMTL/subscriptions","organizations_url":"https://api.github.com/users/DecodeMTL/orgs","repos_url":"https://api.github.com/users/DecodeMTL/repos","events_url":"https://api.github.com/users/DecodeMTL/events{/privacy}","received_events_url":"https://api.github.com/users/DecodeMTL/received_events","type":"Organization","site_admin":false},"repo":{"id":42599857,"name":"node-workshop-2","full_name":"DecodeMTL/node-workshop-2","owner":{"login":"DecodeMTL","id":14301039,"avatar_url":"https://avatars.githubusercontent.com/u/14301039?v=3","gravatar_id":"","url":"https://api.github.com/users/DecodeMTL","html_url":"https://github.com/DecodeMTL","followers_url":"https://api.github.com/users/DecodeMTL/followers","following_url":"https://api.github.com/users/DecodeMTL/following{/other_user}","gists_url":"https://api.github.com/users/DecodeMTL/gists{/gist_id}","starred_url":"https://api.github.com/users/DecodeMTL/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DecodeMTL/subscriptions","organizations_url":"https://api.github.com/users/DecodeMTL/orgs","repos_url":"https://api.github.com/users/DecodeMTL/repos","events_url":"https://api.github.com/users/DecodeMTL/events{/privacy}","received_events_url":"https://api.github.com/users/DecodeMTL/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/DecodeMTL/node-workshop-2","description":"NodeJS Workshop #2","fork":false,"url":"https://api.github.com/repos/DecodeMTL/node-workshop-2","forks_url":"https://api.github.com/repos/DecodeMTL/node-workshop-2/forks","keys_url":"https://api.github.com/repos/DecodeMTL/node-workshop-2/keys{/key_id}","collaborators_url":"https://api.github.com/repos/DecodeMTL/node-workshop-2/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/DecodeMTL/node-workshop-2/teams","hooks_url":"https://api.github.com/repos/DecodeMTL/node-workshop-2/hooks","issue_events_url":"https://api.github.com/repos/DecodeMTL/node-workshop-2/issues/events{/number}","events_url":"https://api.github.com/repos/DecodeMTL/node-workshop-2/events","assignees_url":"https://api.github.com/repos/DecodeMTL/node-workshop-2/assignees{/user}","branches_url":"https://api.github.com/repos/DecodeMTL/node-workshop-2/branches{/branch}","tags_url":"https://api.github.com/repos/DecodeMTL/node-workshop-2/tags","blobs_url":"https://api.github.com/repos/DecodeMTL/node-workshop-2/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/DecodeMTL/node-workshop-2/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/DecodeMTL/node-workshop-2/git/refs{/sha}","trees_url":"https://api.github.com/repos/DecodeMTL/node-workshop-2/git/trees{/sha}","statuses_url":"https://api.github.com/repos/DecodeMTL/node-workshop-2/statuses/{sha}","languages_url":"https://api.github.com/repos/DecodeMTL/node-workshop-2/languages","stargazers_url":"https://api.github.com/repos/DecodeMTL/node-workshop-2/stargazers","contributors_url":"https://api.github.com/repos/DecodeMTL/node-workshop-2/contributors","subscribers_url":"https://api.github.com/repos/DecodeMTL/node-workshop-2/subscribers","subscription_url":"https://api.github.com/repos/DecodeMTL/node-workshop-2/subscription","commits_url":"https://api.github.com/repos/DecodeMTL/node-workshop-2/commits{/sha}","git_commits_url":"https://api.github.com/repos/DecodeMTL/node-workshop-2/git/commits{/sha}","comments_url":"https://api.github.com/repos/DecodeMTL/node-workshop-2/comments{/number}","issue_comment_url":"https://api.github.com/repos/DecodeMTL/node-workshop-2/issues/comments{/number}","contents_url":"https://api.github.com/repos/DecodeMTL/node-workshop-2/contents/{+path}","compare_url":"https://api.github.com/repos/DecodeMTL/node-workshop-2/compare/{base}...{head}","merges_url":"https://api.github.com/repos/DecodeMTL/node-workshop-2/merges","archive_url":"https://api.github.com/repos/DecodeMTL/node-workshop-2/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/DecodeMTL/node-workshop-2/downloads","issues_url":"https://api.github.com/repos/DecodeMTL/node-workshop-2/issues{/number}","pulls_url":"https://api.github.com/repos/DecodeMTL/node-workshop-2/pulls{/number}","milestones_url":"https://api.github.com/repos/DecodeMTL/node-workshop-2/milestones{/number}","notifications_url":"https://api.github.com/repos/DecodeMTL/node-workshop-2/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/DecodeMTL/node-workshop-2/labels{/name}","releases_url":"https://api.github.com/repos/DecodeMTL/node-workshop-2/releases{/id}","created_at":"2015-09-16T16:34:43Z","updated_at":"2015-09-16T16:34:43Z","pushed_at":"2015-09-17T20:32:43Z","git_url":"git://github.com/DecodeMTL/node-workshop-2.git","ssh_url":"git@github.com:DecodeMTL/node-workshop-2.git","clone_url":"https://github.com/DecodeMTL/node-workshop-2.git","svn_url":"https://github.com/DecodeMTL/node-workshop-2","homepage":null,"size":939,"stargazers_count":0,"watchers_count":0,"language":null,"has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":10,"mirror_url":null,"open_issues_count":7,"forks":10,"open_issues":7,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/DecodeMTL/node-workshop-2/pulls/3"},"html":{"href":"https://github.com/DecodeMTL/node-workshop-2/pull/3"},"issue":{"href":"https://api.github.com/repos/DecodeMTL/node-workshop-2/issues/3"},"comments":{"href":"https://api.github.com/repos/DecodeMTL/node-workshop-2/issues/3/comments"},"review_comments":{"href":"https://api.github.com/repos/DecodeMTL/node-workshop-2/pulls/3/comments"},"review_comment":{"href":"https://api.github.com/repos/DecodeMTL/node-workshop-2/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/DecodeMTL/node-workshop-2/pulls/3/commits"},"statuses":{"href":"https://api.github.com/repos/DecodeMTL/node-workshop-2/statuses/dbb6acd193497b218d3282ed51ad71a71edddbf0"}}}}