{"action":"created","comment":{"url":"https://api.github.com/repos/LARailsLearners/box-office/pulls/comments/76284694","id":76284694,"diff_hunk":"@@ -1,5 +1,12 @@\n require 'sinatra'\n+require 'httparty'\n \n get '/' do\n   'Hello world!'\n end\n+\n+get '/movies/:imdbid' do |id|\n+  response = HTTParty.get(\"http://www.omdbapi.com/?apikey=#{ENV['OMDB_API_KEY']}&i=#{id}&plot=full&r=json\")\n+  title = response['Title']\n+  title","path":"box-office.rb","position":11,"original_position":11,"commit_id":"cff322c6e95d44c667d08273acf3b796e7e3c6ff","original_commit_id":"cff322c6e95d44c667d08273acf3b796e7e3c6ff","user":{"login":"kangkyu","id":6598297,"avatar_url":"https://avatars.githubusercontent.com/u/6598297?v=3","gravatar_id":"","url":"https://api.github.com/users/kangkyu","html_url":"https://github.com/kangkyu","followers_url":"https://api.github.com/users/kangkyu/followers","following_url":"https://api.github.com/users/kangkyu/following{/other_user}","gists_url":"https://api.github.com/users/kangkyu/gists{/gist_id}","starred_url":"https://api.github.com/users/kangkyu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kangkyu/subscriptions","organizations_url":"https://api.github.com/users/kangkyu/orgs","repos_url":"https://api.github.com/users/kangkyu/repos","events_url":"https://api.github.com/users/kangkyu/events{/privacy}","received_events_url":"https://api.github.com/users/kangkyu/received_events","type":"User","site_admin":false},"body":"```\r\ntitle = response['Title']\r\ntitle\r\n```\r\n\r\ncan be\r\n```\r\nresponse[\"Title\"]\r\n```","created_at":"2016-08-25T17:08:44Z","updated_at":"2016-08-25T17:08:44Z","html_url":"https://github.com/LARailsLearners/box-office/pull/14#discussion_r76284694","pull_request_url":"https://api.github.com/repos/LARailsLearners/box-office/pulls/14","_links":{"self":{"href":"https://api.github.com/repos/LARailsLearners/box-office/pulls/comments/76284694"},"html":{"href":"https://github.com/LARailsLearners/box-office/pull/14#discussion_r76284694"},"pull_request":{"href":"https://api.github.com/repos/LARailsLearners/box-office/pulls/14"}}},"pull_request":{"url":"https://api.github.com/repos/LARailsLearners/box-office/pulls/14","id":81271449,"html_url":"https://github.com/LARailsLearners/box-office/pull/14","diff_url":"https://github.com/LARailsLearners/box-office/pull/14.diff","patch_url":"https://github.com/LARailsLearners/box-office/pull/14.patch","issue_url":"https://api.github.com/repos/LARailsLearners/box-office/issues/14","number":14,"state":"open","locked":false,"title":"Features#2, gets IMDB id from routes and makes GET request to OMDB to retrieve movie title","user":{"login":"thomasjinlo","id":13743793,"avatar_url":"https://avatars.githubusercontent.com/u/13743793?v=3","gravatar_id":"","url":"https://api.github.com/users/thomasjinlo","html_url":"https://github.com/thomasjinlo","followers_url":"https://api.github.com/users/thomasjinlo/followers","following_url":"https://api.github.com/users/thomasjinlo/following{/other_user}","gists_url":"https://api.github.com/users/thomasjinlo/gists{/gist_id}","starred_url":"https://api.github.com/users/thomasjinlo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/thomasjinlo/subscriptions","organizations_url":"https://api.github.com/users/thomasjinlo/orgs","repos_url":"https://api.github.com/users/thomasjinlo/repos","events_url":"https://api.github.com/users/thomasjinlo/events{/privacy}","received_events_url":"https://api.github.com/users/thomasjinlo/received_events","type":"User","site_admin":false},"body":"**Directions**\r\n\r\n1. Go get an [api key](http://beforethecode.com/projects/omdb/apikey.aspx)\r\n2. Set local ENV as OMDB_API_KEY, with your api key\r\n3. Run bundle install","created_at":"2016-08-15T05:22:36Z","updated_at":"2016-08-25T17:08:44Z","closed_at":null,"merged_at":null,"merge_commit_sha":"17aaea591f65cac2ef85e69a1545c1c6d347f726","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/LARailsLearners/box-office/pulls/14/commits","review_comments_url":"https://api.github.com/repos/LARailsLearners/box-office/pulls/14/comments","review_comment_url":"https://api.github.com/repos/LARailsLearners/box-office/pulls/comments{/number}","comments_url":"https://api.github.com/repos/LARailsLearners/box-office/issues/14/comments","statuses_url":"https://api.github.com/repos/LARailsLearners/box-office/statuses/cff322c6e95d44c667d08273acf3b796e7e3c6ff","head":{"label":"LARailsLearners:features#2","ref":"features#2","sha":"cff322c6e95d44c667d08273acf3b796e7e3c6ff","user":{"login":"LARailsLearners","id":12438643,"avatar_url":"https://avatars.githubusercontent.com/u/12438643?v=3","gravatar_id":"","url":"https://api.github.com/users/LARailsLearners","html_url":"https://github.com/LARailsLearners","followers_url":"https://api.github.com/users/LARailsLearners/followers","following_url":"https://api.github.com/users/LARailsLearners/following{/other_user}","gists_url":"https://api.github.com/users/LARailsLearners/gists{/gist_id}","starred_url":"https://api.github.com/users/LARailsLearners/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/LARailsLearners/subscriptions","organizations_url":"https://api.github.com/users/LARailsLearners/orgs","repos_url":"https://api.github.com/users/LARailsLearners/repos","events_url":"https://api.github.com/users/LARailsLearners/events{/privacy}","received_events_url":"https://api.github.com/users/LARailsLearners/received_events","type":"Organization","site_admin":false},"repo":{"id":65648774,"name":"box-office","full_name":"LARailsLearners/box-office","owner":{"login":"LARailsLearners","id":12438643,"avatar_url":"https://avatars.githubusercontent.com/u/12438643?v=3","gravatar_id":"","url":"https://api.github.com/users/LARailsLearners","html_url":"https://github.com/LARailsLearners","followers_url":"https://api.github.com/users/LARailsLearners/followers","following_url":"https://api.github.com/users/LARailsLearners/following{/other_user}","gists_url":"https://api.github.com/users/LARailsLearners/gists{/gist_id}","starred_url":"https://api.github.com/users/LARailsLearners/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/LARailsLearners/subscriptions","organizations_url":"https://api.github.com/users/LARailsLearners/orgs","repos_url":"https://api.github.com/users/LARailsLearners/repos","events_url":"https://api.github.com/users/LARailsLearners/events{/privacy}","received_events_url":"https://api.github.com/users/LARailsLearners/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/LARailsLearners/box-office","description":null,"fork":false,"url":"https://api.github.com/repos/LARailsLearners/box-office","forks_url":"https://api.github.com/repos/LARailsLearners/box-office/forks","keys_url":"https://api.github.com/repos/LARailsLearners/box-office/keys{/key_id}","collaborators_url":"https://api.github.com/repos/LARailsLearners/box-office/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/LARailsLearners/box-office/teams","hooks_url":"https://api.github.com/repos/LARailsLearners/box-office/hooks","issue_events_url":"https://api.github.com/repos/LARailsLearners/box-office/issues/events{/number}","events_url":"https://api.github.com/repos/LARailsLearners/box-office/events","assignees_url":"https://api.github.com/repos/LARailsLearners/box-office/assignees{/user}","branches_url":"https://api.github.com/repos/LARailsLearners/box-office/branches{/branch}","tags_url":"https://api.github.com/repos/LARailsLearners/box-office/tags","blobs_url":"https://api.github.com/repos/LARailsLearners/box-office/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/LARailsLearners/box-office/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/LARailsLearners/box-office/git/refs{/sha}","trees_url":"https://api.github.com/repos/LARailsLearners/box-office/git/trees{/sha}","statuses_url":"https://api.github.com/repos/LARailsLearners/box-office/statuses/{sha}","languages_url":"https://api.github.com/repos/LARailsLearners/box-office/languages","stargazers_url":"https://api.github.com/repos/LARailsLearners/box-office/stargazers","contributors_url":"https://api.github.com/repos/LARailsLearners/box-office/contributors","subscribers_url":"https://api.github.com/repos/LARailsLearners/box-office/subscribers","subscription_url":"https://api.github.com/repos/LARailsLearners/box-office/subscription","commits_url":"https://api.github.com/repos/LARailsLearners/box-office/commits{/sha}","git_commits_url":"https://api.github.com/repos/LARailsLearners/box-office/git/commits{/sha}","comments_url":"https://api.github.com/repos/LARailsLearners/box-office/comments{/number}","issue_comment_url":"https://api.github.com/repos/LARailsLearners/box-office/issues/comments{/number}","contents_url":"https://api.github.com/repos/LARailsLearners/box-office/contents/{+path}","compare_url":"https://api.github.com/repos/LARailsLearners/box-office/compare/{base}...{head}","merges_url":"https://api.github.com/repos/LARailsLearners/box-office/merges","archive_url":"https://api.github.com/repos/LARailsLearners/box-office/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/LARailsLearners/box-office/downloads","issues_url":"https://api.github.com/repos/LARailsLearners/box-office/issues{/number}","pulls_url":"https://api.github.com/repos/LARailsLearners/box-office/pulls{/number}","milestones_url":"https://api.github.com/repos/LARailsLearners/box-office/milestones{/number}","notifications_url":"https://api.github.com/repos/LARailsLearners/box-office/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/LARailsLearners/box-office/labels{/name}","releases_url":"https://api.github.com/repos/LARailsLearners/box-office/releases{/id}","deployments_url":"https://api.github.com/repos/LARailsLearners/box-office/deployments","created_at":"2016-08-14T03:48:52Z","updated_at":"2016-08-17T07:07:41Z","pushed_at":"2016-08-21T12:57:51Z","git_url":"git://github.com/LARailsLearners/box-office.git","ssh_url":"git@github.com:LARailsLearners/box-office.git","clone_url":"https://github.com/LARailsLearners/box-office.git","svn_url":"https://github.com/LARailsLearners/box-office","homepage":null,"size":10,"stargazers_count":2,"watchers_count":2,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":9,"forks":1,"open_issues":9,"watchers":2,"default_branch":"master"}},"base":{"label":"LARailsLearners:master","ref":"master","sha":"15d6db2e3a9661f93e96db9606c8eb5eb9250ab7","user":{"login":"LARailsLearners","id":12438643,"avatar_url":"https://avatars.githubusercontent.com/u/12438643?v=3","gravatar_id":"","url":"https://api.github.com/users/LARailsLearners","html_url":"https://github.com/LARailsLearners","followers_url":"https://api.github.com/users/LARailsLearners/followers","following_url":"https://api.github.com/users/LARailsLearners/following{/other_user}","gists_url":"https://api.github.com/users/LARailsLearners/gists{/gist_id}","starred_url":"https://api.github.com/users/LARailsLearners/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/LARailsLearners/subscriptions","organizations_url":"https://api.github.com/users/LARailsLearners/orgs","repos_url":"https://api.github.com/users/LARailsLearners/repos","events_url":"https://api.github.com/users/LARailsLearners/events{/privacy}","received_events_url":"https://api.github.com/users/LARailsLearners/received_events","type":"Organization","site_admin":false},"repo":{"id":65648774,"name":"box-office","full_name":"LARailsLearners/box-office","owner":{"login":"LARailsLearners","id":12438643,"avatar_url":"https://avatars.githubusercontent.com/u/12438643?v=3","gravatar_id":"","url":"https://api.github.com/users/LARailsLearners","html_url":"https://github.com/LARailsLearners","followers_url":"https://api.github.com/users/LARailsLearners/followers","following_url":"https://api.github.com/users/LARailsLearners/following{/other_user}","gists_url":"https://api.github.com/users/LARailsLearners/gists{/gist_id}","starred_url":"https://api.github.com/users/LARailsLearners/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/LARailsLearners/subscriptions","organizations_url":"https://api.github.com/users/LARailsLearners/orgs","repos_url":"https://api.github.com/users/LARailsLearners/repos","events_url":"https://api.github.com/users/LARailsLearners/events{/privacy}","received_events_url":"https://api.github.com/users/LARailsLearners/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/LARailsLearners/box-office","description":null,"fork":false,"url":"https://api.github.com/repos/LARailsLearners/box-office","forks_url":"https://api.github.com/repos/LARailsLearners/box-office/forks","keys_url":"https://api.github.com/repos/LARailsLearners/box-office/keys{/key_id}","collaborators_url":"https://api.github.com/repos/LARailsLearners/box-office/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/LARailsLearners/box-office/teams","hooks_url":"https://api.github.com/repos/LARailsLearners/box-office/hooks","issue_events_url":"https://api.github.com/repos/LARailsLearners/box-office/issues/events{/number}","events_url":"https://api.github.com/repos/LARailsLearners/box-office/events","assignees_url":"https://api.github.com/repos/LARailsLearners/box-office/assignees{/user}","branches_url":"https://api.github.com/repos/LARailsLearners/box-office/branches{/branch}","tags_url":"https://api.github.com/repos/LARailsLearners/box-office/tags","blobs_url":"https://api.github.com/repos/LARailsLearners/box-office/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/LARailsLearners/box-office/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/LARailsLearners/box-office/git/refs{/sha}","trees_url":"https://api.github.com/repos/LARailsLearners/box-office/git/trees{/sha}","statuses_url":"https://api.github.com/repos/LARailsLearners/box-office/statuses/{sha}","languages_url":"https://api.github.com/repos/LARailsLearners/box-office/languages","stargazers_url":"https://api.github.com/repos/LARailsLearners/box-office/stargazers","contributors_url":"https://api.github.com/repos/LARailsLearners/box-office/contributors","subscribers_url":"https://api.github.com/repos/LARailsLearners/box-office/subscribers","subscription_url":"https://api.github.com/repos/LARailsLearners/box-office/subscription","commits_url":"https://api.github.com/repos/LARailsLearners/box-office/commits{/sha}","git_commits_url":"https://api.github.com/repos/LARailsLearners/box-office/git/commits{/sha}","comments_url":"https://api.github.com/repos/LARailsLearners/box-office/comments{/number}","issue_comment_url":"https://api.github.com/repos/LARailsLearners/box-office/issues/comments{/number}","contents_url":"https://api.github.com/repos/LARailsLearners/box-office/contents/{+path}","compare_url":"https://api.github.com/repos/LARailsLearners/box-office/compare/{base}...{head}","merges_url":"https://api.github.com/repos/LARailsLearners/box-office/merges","archive_url":"https://api.github.com/repos/LARailsLearners/box-office/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/LARailsLearners/box-office/downloads","issues_url":"https://api.github.com/repos/LARailsLearners/box-office/issues{/number}","pulls_url":"https://api.github.com/repos/LARailsLearners/box-office/pulls{/number}","milestones_url":"https://api.github.com/repos/LARailsLearners/box-office/milestones{/number}","notifications_url":"https://api.github.com/repos/LARailsLearners/box-office/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/LARailsLearners/box-office/labels{/name}","releases_url":"https://api.github.com/repos/LARailsLearners/box-office/releases{/id}","deployments_url":"https://api.github.com/repos/LARailsLearners/box-office/deployments","created_at":"2016-08-14T03:48:52Z","updated_at":"2016-08-17T07:07:41Z","pushed_at":"2016-08-21T12:57:51Z","git_url":"git://github.com/LARailsLearners/box-office.git","ssh_url":"git@github.com:LARailsLearners/box-office.git","clone_url":"https://github.com/LARailsLearners/box-office.git","svn_url":"https://github.com/LARailsLearners/box-office","homepage":null,"size":10,"stargazers_count":2,"watchers_count":2,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":9,"forks":1,"open_issues":9,"watchers":2,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/LARailsLearners/box-office/pulls/14"},"html":{"href":"https://github.com/LARailsLearners/box-office/pull/14"},"issue":{"href":"https://api.github.com/repos/LARailsLearners/box-office/issues/14"},"comments":{"href":"https://api.github.com/repos/LARailsLearners/box-office/issues/14/comments"},"review_comments":{"href":"https://api.github.com/repos/LARailsLearners/box-office/pulls/14/comments"},"review_comment":{"href":"https://api.github.com/repos/LARailsLearners/box-office/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/LARailsLearners/box-office/pulls/14/commits"},"statuses":{"href":"https://api.github.com/repos/LARailsLearners/box-office/statuses/cff322c6e95d44c667d08273acf3b796e7e3c6ff"}}}}
{"actor":{"display_login":"kangkyu"}}