{"action":"created","comment":{"url":"https://api.github.com/repos/bigcommerce/hello-world-app-ruby-sinatra/pulls/comments/23943218","id":23943218,"diff_hunk":"@@ -46,6 +46,7 @@ def bc_api\n     config = {\n       store_hash: self.store_hash,\n       client_id: bc_client_id,\n+      client_secret: bc_client_secret,","path":"hello.rb","position":4,"original_position":4,"commit_id":"10e625b74fd4937de4284c1595c8d31adb43680a","original_commit_id":"10e625b74fd4937de4284c1595c8d31adb43680a","user":{"login":"mattolson","id":168657,"avatar_url":"https://avatars.githubusercontent.com/u/168657?v=3","gravatar_id":"","url":"https://api.github.com/users/mattolson","html_url":"https://github.com/mattolson","followers_url":"https://api.github.com/users/mattolson/followers","following_url":"https://api.github.com/users/mattolson/following{/other_user}","gists_url":"https://api.github.com/users/mattolson/gists{/gist_id}","starred_url":"https://api.github.com/users/mattolson/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mattolson/subscriptions","organizations_url":"https://api.github.com/users/mattolson/orgs","repos_url":"https://api.github.com/users/mattolson/repos","events_url":"https://api.github.com/users/mattolson/events{/privacy}","received_events_url":"https://api.github.com/users/mattolson/received_events","type":"User","site_admin":false},"body":"You don't have to pass in `client_secret` here.","created_at":"2015-02-02T17:58:07Z","updated_at":"2015-02-02T17:58:07Z","html_url":"https://github.com/bigcommerce/hello-world-app-ruby-sinatra/pull/4#discussion_r23943218","pull_request_url":"https://api.github.com/repos/bigcommerce/hello-world-app-ruby-sinatra/pulls/4","_links":{"self":{"href":"https://api.github.com/repos/bigcommerce/hello-world-app-ruby-sinatra/pulls/comments/23943218"},"html":{"href":"https://github.com/bigcommerce/hello-world-app-ruby-sinatra/pull/4#discussion_r23943218"},"pull_request":{"href":"https://api.github.com/repos/bigcommerce/hello-world-app-ruby-sinatra/pulls/4"}}},"pull_request":{"url":"https://api.github.com/repos/bigcommerce/hello-world-app-ruby-sinatra/pulls/4","id":28424336,"html_url":"https://github.com/bigcommerce/hello-world-app-ruby-sinatra/pull/4","diff_url":"https://github.com/bigcommerce/hello-world-app-ruby-sinatra/pull/4.diff","patch_url":"https://github.com/bigcommerce/hello-world-app-ruby-sinatra/pull/4.patch","issue_url":"https://api.github.com/repos/bigcommerce/hello-world-app-ruby-sinatra/issues/4","number":4,"state":"open","locked":false,"title":"Fixes to make this app work with Bigcommerce again","user":{"login":"tautologistics","id":148452,"avatar_url":"https://avatars.githubusercontent.com/u/148452?v=3","gravatar_id":"","url":"https://api.github.com/users/tautologistics","html_url":"https://github.com/tautologistics","followers_url":"https://api.github.com/users/tautologistics/followers","following_url":"https://api.github.com/users/tautologistics/following{/other_user}","gists_url":"https://api.github.com/users/tautologistics/gists{/gist_id}","starred_url":"https://api.github.com/users/tautologistics/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tautologistics/subscriptions","organizations_url":"https://api.github.com/users/tautologistics/orgs","repos_url":"https://api.github.com/users/tautologistics/repos","events_url":"https://api.github.com/users/tautologistics/events{/privacy}","received_events_url":"https://api.github.com/users/tautologistics/received_events","type":"User","site_admin":false},"body":"The changes in this PR were necessary in order to have a working BC app; they also make this example more complete. The changes include:\r\n- changing references to `api.bigcommerceapp.com` to `api.bigcommerce.com`\r\n- adding `/uninstall` endpoint\r\n- adding setup steps in the README\r\n- adding `client_secret` to the `bigcommerce` API client config\r\n- expanding auth scope to all permissions","created_at":"2015-02-01T01:13:38Z","updated_at":"2015-02-02T17:58:07Z","closed_at":null,"merged_at":null,"merge_commit_sha":"44bed6667f2519dd0bc67987ec30f53130473bfd","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/bigcommerce/hello-world-app-ruby-sinatra/pulls/4/commits","review_comments_url":"https://api.github.com/repos/bigcommerce/hello-world-app-ruby-sinatra/pulls/4/comments","review_comment_url":"https://api.github.com/repos/bigcommerce/hello-world-app-ruby-sinatra/pulls/comments/{number}","comments_url":"https://api.github.com/repos/bigcommerce/hello-world-app-ruby-sinatra/issues/4/comments","statuses_url":"https://api.github.com/repos/bigcommerce/hello-world-app-ruby-sinatra/statuses/10e625b74fd4937de4284c1595c8d31adb43680a","head":{"label":"tautologistics:master","ref":"master","sha":"10e625b74fd4937de4284c1595c8d31adb43680a","user":{"login":"tautologistics","id":148452,"avatar_url":"https://avatars.githubusercontent.com/u/148452?v=3","gravatar_id":"","url":"https://api.github.com/users/tautologistics","html_url":"https://github.com/tautologistics","followers_url":"https://api.github.com/users/tautologistics/followers","following_url":"https://api.github.com/users/tautologistics/following{/other_user}","gists_url":"https://api.github.com/users/tautologistics/gists{/gist_id}","starred_url":"https://api.github.com/users/tautologistics/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tautologistics/subscriptions","organizations_url":"https://api.github.com/users/tautologistics/orgs","repos_url":"https://api.github.com/users/tautologistics/repos","events_url":"https://api.github.com/users/tautologistics/events{/privacy}","received_events_url":"https://api.github.com/users/tautologistics/received_events","type":"User","site_admin":false},"repo":{"id":30119252,"name":"hello-world-app-ruby-sinatra","full_name":"tautologistics/hello-world-app-ruby-sinatra","owner":{"login":"tautologistics","id":148452,"avatar_url":"https://avatars.githubusercontent.com/u/148452?v=3","gravatar_id":"","url":"https://api.github.com/users/tautologistics","html_url":"https://github.com/tautologistics","followers_url":"https://api.github.com/users/tautologistics/followers","following_url":"https://api.github.com/users/tautologistics/following{/other_user}","gists_url":"https://api.github.com/users/tautologistics/gists{/gist_id}","starred_url":"https://api.github.com/users/tautologistics/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tautologistics/subscriptions","organizations_url":"https://api.github.com/users/tautologistics/orgs","repos_url":"https://api.github.com/users/tautologistics/repos","events_url":"https://api.github.com/users/tautologistics/events{/privacy}","received_events_url":"https://api.github.com/users/tautologistics/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/tautologistics/hello-world-app-ruby-sinatra","description":"Hello World sample app with Ruby, Sinatra and DataMapper","fork":true,"url":"https://api.github.com/repos/tautologistics/hello-world-app-ruby-sinatra","forks_url":"https://api.github.com/repos/tautologistics/hello-world-app-ruby-sinatra/forks","keys_url":"https://api.github.com/repos/tautologistics/hello-world-app-ruby-sinatra/keys{/key_id}","collaborators_url":"https://api.github.com/repos/tautologistics/hello-world-app-ruby-sinatra/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/tautologistics/hello-world-app-ruby-sinatra/teams","hooks_url":"https://api.github.com/repos/tautologistics/hello-world-app-ruby-sinatra/hooks","issue_events_url":"https://api.github.com/repos/tautologistics/hello-world-app-ruby-sinatra/issues/events{/number}","events_url":"https://api.github.com/repos/tautologistics/hello-world-app-ruby-sinatra/events","assignees_url":"https://api.github.com/repos/tautologistics/hello-world-app-ruby-sinatra/assignees{/user}","branches_url":"https://api.github.com/repos/tautologistics/hello-world-app-ruby-sinatra/branches{/branch}","tags_url":"https://api.github.com/repos/tautologistics/hello-world-app-ruby-sinatra/tags","blobs_url":"https://api.github.com/repos/tautologistics/hello-world-app-ruby-sinatra/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/tautologistics/hello-world-app-ruby-sinatra/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/tautologistics/hello-world-app-ruby-sinatra/git/refs{/sha}","trees_url":"https://api.github.com/repos/tautologistics/hello-world-app-ruby-sinatra/git/trees{/sha}","statuses_url":"https://api.github.com/repos/tautologistics/hello-world-app-ruby-sinatra/statuses/{sha}","languages_url":"https://api.github.com/repos/tautologistics/hello-world-app-ruby-sinatra/languages","stargazers_url":"https://api.github.com/repos/tautologistics/hello-world-app-ruby-sinatra/stargazers","contributors_url":"https://api.github.com/repos/tautologistics/hello-world-app-ruby-sinatra/contributors","subscribers_url":"https://api.github.com/repos/tautologistics/hello-world-app-ruby-sinatra/subscribers","subscription_url":"https://api.github.com/repos/tautologistics/hello-world-app-ruby-sinatra/subscription","commits_url":"https://api.github.com/repos/tautologistics/hello-world-app-ruby-sinatra/commits{/sha}","git_commits_url":"https://api.github.com/repos/tautologistics/hello-world-app-ruby-sinatra/git/commits{/sha}","comments_url":"https://api.github.com/repos/tautologistics/hello-world-app-ruby-sinatra/comments{/number}","issue_comment_url":"https://api.github.com/repos/tautologistics/hello-world-app-ruby-sinatra/issues/comments/{number}","contents_url":"https://api.github.com/repos/tautologistics/hello-world-app-ruby-sinatra/contents/{+path}","compare_url":"https://api.github.com/repos/tautologistics/hello-world-app-ruby-sinatra/compare/{base}...{head}","merges_url":"https://api.github.com/repos/tautologistics/hello-world-app-ruby-sinatra/merges","archive_url":"https://api.github.com/repos/tautologistics/hello-world-app-ruby-sinatra/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/tautologistics/hello-world-app-ruby-sinatra/downloads","issues_url":"https://api.github.com/repos/tautologistics/hello-world-app-ruby-sinatra/issues{/number}","pulls_url":"https://api.github.com/repos/tautologistics/hello-world-app-ruby-sinatra/pulls{/number}","milestones_url":"https://api.github.com/repos/tautologistics/hello-world-app-ruby-sinatra/milestones{/number}","notifications_url":"https://api.github.com/repos/tautologistics/hello-world-app-ruby-sinatra/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/tautologistics/hello-world-app-ruby-sinatra/labels{/name}","releases_url":"https://api.github.com/repos/tautologistics/hello-world-app-ruby-sinatra/releases{/id}","created_at":"2015-01-31T17:11:26Z","updated_at":"2015-02-01T13:40:52Z","pushed_at":"2015-02-01T13:40:51Z","git_url":"git://github.com/tautologistics/hello-world-app-ruby-sinatra.git","ssh_url":"git@github.com:tautologistics/hello-world-app-ruby-sinatra.git","clone_url":"https://github.com/tautologistics/hello-world-app-ruby-sinatra.git","svn_url":"https://github.com/tautologistics/hello-world-app-ruby-sinatra","homepage":null,"size":169,"stargazers_count":0,"watchers_count":0,"language":"Ruby","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":"bigcommerce:master","ref":"master","sha":"e69e8d53380c039de1a8b1c87a23cb0f7a7c4f21","user":{"login":"bigcommerce","id":186342,"avatar_url":"https://avatars.githubusercontent.com/u/186342?v=3","gravatar_id":"","url":"https://api.github.com/users/bigcommerce","html_url":"https://github.com/bigcommerce","followers_url":"https://api.github.com/users/bigcommerce/followers","following_url":"https://api.github.com/users/bigcommerce/following{/other_user}","gists_url":"https://api.github.com/users/bigcommerce/gists{/gist_id}","starred_url":"https://api.github.com/users/bigcommerce/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bigcommerce/subscriptions","organizations_url":"https://api.github.com/users/bigcommerce/orgs","repos_url":"https://api.github.com/users/bigcommerce/repos","events_url":"https://api.github.com/users/bigcommerce/events{/privacy}","received_events_url":"https://api.github.com/users/bigcommerce/received_events","type":"Organization","site_admin":false},"repo":{"id":16695497,"name":"hello-world-app-ruby-sinatra","full_name":"bigcommerce/hello-world-app-ruby-sinatra","owner":{"login":"bigcommerce","id":186342,"avatar_url":"https://avatars.githubusercontent.com/u/186342?v=3","gravatar_id":"","url":"https://api.github.com/users/bigcommerce","html_url":"https://github.com/bigcommerce","followers_url":"https://api.github.com/users/bigcommerce/followers","following_url":"https://api.github.com/users/bigcommerce/following{/other_user}","gists_url":"https://api.github.com/users/bigcommerce/gists{/gist_id}","starred_url":"https://api.github.com/users/bigcommerce/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bigcommerce/subscriptions","organizations_url":"https://api.github.com/users/bigcommerce/orgs","repos_url":"https://api.github.com/users/bigcommerce/repos","events_url":"https://api.github.com/users/bigcommerce/events{/privacy}","received_events_url":"https://api.github.com/users/bigcommerce/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/bigcommerce/hello-world-app-ruby-sinatra","description":"Hello World sample app with Ruby, Sinatra and DataMapper","fork":false,"url":"https://api.github.com/repos/bigcommerce/hello-world-app-ruby-sinatra","forks_url":"https://api.github.com/repos/bigcommerce/hello-world-app-ruby-sinatra/forks","keys_url":"https://api.github.com/repos/bigcommerce/hello-world-app-ruby-sinatra/keys{/key_id}","collaborators_url":"https://api.github.com/repos/bigcommerce/hello-world-app-ruby-sinatra/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/bigcommerce/hello-world-app-ruby-sinatra/teams","hooks_url":"https://api.github.com/repos/bigcommerce/hello-world-app-ruby-sinatra/hooks","issue_events_url":"https://api.github.com/repos/bigcommerce/hello-world-app-ruby-sinatra/issues/events{/number}","events_url":"https://api.github.com/repos/bigcommerce/hello-world-app-ruby-sinatra/events","assignees_url":"https://api.github.com/repos/bigcommerce/hello-world-app-ruby-sinatra/assignees{/user}","branches_url":"https://api.github.com/repos/bigcommerce/hello-world-app-ruby-sinatra/branches{/branch}","tags_url":"https://api.github.com/repos/bigcommerce/hello-world-app-ruby-sinatra/tags","blobs_url":"https://api.github.com/repos/bigcommerce/hello-world-app-ruby-sinatra/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/bigcommerce/hello-world-app-ruby-sinatra/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/bigcommerce/hello-world-app-ruby-sinatra/git/refs{/sha}","trees_url":"https://api.github.com/repos/bigcommerce/hello-world-app-ruby-sinatra/git/trees{/sha}","statuses_url":"https://api.github.com/repos/bigcommerce/hello-world-app-ruby-sinatra/statuses/{sha}","languages_url":"https://api.github.com/repos/bigcommerce/hello-world-app-ruby-sinatra/languages","stargazers_url":"https://api.github.com/repos/bigcommerce/hello-world-app-ruby-sinatra/stargazers","contributors_url":"https://api.github.com/repos/bigcommerce/hello-world-app-ruby-sinatra/contributors","subscribers_url":"https://api.github.com/repos/bigcommerce/hello-world-app-ruby-sinatra/subscribers","subscription_url":"https://api.github.com/repos/bigcommerce/hello-world-app-ruby-sinatra/subscription","commits_url":"https://api.github.com/repos/bigcommerce/hello-world-app-ruby-sinatra/commits{/sha}","git_commits_url":"https://api.github.com/repos/bigcommerce/hello-world-app-ruby-sinatra/git/commits{/sha}","comments_url":"https://api.github.com/repos/bigcommerce/hello-world-app-ruby-sinatra/comments{/number}","issue_comment_url":"https://api.github.com/repos/bigcommerce/hello-world-app-ruby-sinatra/issues/comments/{number}","contents_url":"https://api.github.com/repos/bigcommerce/hello-world-app-ruby-sinatra/contents/{+path}","compare_url":"https://api.github.com/repos/bigcommerce/hello-world-app-ruby-sinatra/compare/{base}...{head}","merges_url":"https://api.github.com/repos/bigcommerce/hello-world-app-ruby-sinatra/merges","archive_url":"https://api.github.com/repos/bigcommerce/hello-world-app-ruby-sinatra/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/bigcommerce/hello-world-app-ruby-sinatra/downloads","issues_url":"https://api.github.com/repos/bigcommerce/hello-world-app-ruby-sinatra/issues{/number}","pulls_url":"https://api.github.com/repos/bigcommerce/hello-world-app-ruby-sinatra/pulls{/number}","milestones_url":"https://api.github.com/repos/bigcommerce/hello-world-app-ruby-sinatra/milestones{/number}","notifications_url":"https://api.github.com/repos/bigcommerce/hello-world-app-ruby-sinatra/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/bigcommerce/hello-world-app-ruby-sinatra/labels{/name}","releases_url":"https://api.github.com/repos/bigcommerce/hello-world-app-ruby-sinatra/releases{/id}","created_at":"2014-02-10T13:06:08Z","updated_at":"2015-01-28T19:29:10Z","pushed_at":"2015-01-28T19:29:10Z","git_url":"git://github.com/bigcommerce/hello-world-app-ruby-sinatra.git","ssh_url":"git@github.com:bigcommerce/hello-world-app-ruby-sinatra.git","clone_url":"https://github.com/bigcommerce/hello-world-app-ruby-sinatra.git","svn_url":"https://github.com/bigcommerce/hello-world-app-ruby-sinatra","homepage":null,"size":169,"stargazers_count":1,"watchers_count":1,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":11,"mirror_url":null,"open_issues_count":2,"forks":11,"open_issues":2,"watchers":1,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/bigcommerce/hello-world-app-ruby-sinatra/pulls/4"},"html":{"href":"https://github.com/bigcommerce/hello-world-app-ruby-sinatra/pull/4"},"issue":{"href":"https://api.github.com/repos/bigcommerce/hello-world-app-ruby-sinatra/issues/4"},"comments":{"href":"https://api.github.com/repos/bigcommerce/hello-world-app-ruby-sinatra/issues/4/comments"},"review_comments":{"href":"https://api.github.com/repos/bigcommerce/hello-world-app-ruby-sinatra/pulls/4/comments"},"review_comment":{"href":"https://api.github.com/repos/bigcommerce/hello-world-app-ruby-sinatra/pulls/comments/{number}"},"commits":{"href":"https://api.github.com/repos/bigcommerce/hello-world-app-ruby-sinatra/pulls/4/commits"},"statuses":{"href":"https://api.github.com/repos/bigcommerce/hello-world-app-ruby-sinatra/statuses/10e625b74fd4937de4284c1595c8d31adb43680a"}}}}