{"action":"created","comment":{"url":"https://api.github.com/repos/Sage/sageone_api_php_sample/pulls/comments/71848548","id":71848548,"diff_hunk":"@@ -1,11 +1,17 @@\n <!DOCTYPE html>\n <?php\n-$access_token = $_GET['access_token'];\n+$response = $_GET['token_response'];\n+$access_token = json_decode($response, true)['access_token'];\n+/* prettify JSON response for readability */\n+$json = json_decode($response);\n+$pretty_json = json_encode($json, JSON_PRETTY_PRINT);\n ?>\n <html>\n   <head>\n     <title>Authorize with Sage One</title>\n     <link type=\"text/css\" rel=\"stylesheet\" href=\"sample_app.css\">\n+    <!-- jQuery (necessary for Bootstrap's JavaScript plugins) -->\n+    <script src=\"https://ajax.googleapis.com/ajax/libs/jquery/1.11.3/jquery.min.js\"></script>","path":"sageone_data.php","position":15,"original_position":15,"commit_id":"e7f8f8055c045ee07a90fca90c4f7d72be18d0a0","original_commit_id":"e7f8f8055c045ee07a90fca90c4f7d72be18d0a0","user":{"login":"fejao","id":4835516,"avatar_url":"https://avatars.githubusercontent.com/u/4835516?v=3","gravatar_id":"","url":"https://api.github.com/users/fejao","html_url":"https://github.com/fejao","followers_url":"https://api.github.com/users/fejao/followers","following_url":"https://api.github.com/users/fejao/following{/other_user}","gists_url":"https://api.github.com/users/fejao/gists{/gist_id}","starred_url":"https://api.github.com/users/fejao/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fejao/subscriptions","organizations_url":"https://api.github.com/users/fejao/orgs","repos_url":"https://api.github.com/users/fejao/repos","events_url":"https://api.github.com/users/fejao/events{/privacy}","received_events_url":"https://api.github.com/users/fejao/received_events","type":"User","site_admin":false},"body":"? http://code.jquery.com/jquery-latest.min.js ?\r\nor do we need a fixed version?\r\n😎 ","created_at":"2016-07-22T09:05:35Z","updated_at":"2016-07-22T09:05:35Z","html_url":"https://github.com/Sage/sageone_api_php_sample/pull/4#discussion_r71848548","pull_request_url":"https://api.github.com/repos/Sage/sageone_api_php_sample/pulls/4","_links":{"self":{"href":"https://api.github.com/repos/Sage/sageone_api_php_sample/pulls/comments/71848548"},"html":{"href":"https://github.com/Sage/sageone_api_php_sample/pull/4#discussion_r71848548"},"pull_request":{"href":"https://api.github.com/repos/Sage/sageone_api_php_sample/pulls/4"}}},"pull_request":{"url":"https://api.github.com/repos/Sage/sageone_api_php_sample/pulls/4","id":63725331,"html_url":"https://github.com/Sage/sageone_api_php_sample/pull/4","diff_url":"https://github.com/Sage/sageone_api_php_sample/pull/4.diff","patch_url":"https://github.com/Sage/sageone_api_php_sample/pull/4.patch","issue_url":"https://api.github.com/repos/Sage/sageone_api_php_sample/issues/4","number":4,"state":"open","locked":false,"title":"Add put and delete functionality","user":{"login":"buzz1710","id":1375082,"avatar_url":"https://avatars.githubusercontent.com/u/1375082?v=3","gravatar_id":"","url":"https://api.github.com/users/buzz1710","html_url":"https://github.com/buzz1710","followers_url":"https://api.github.com/users/buzz1710/followers","following_url":"https://api.github.com/users/buzz1710/following{/other_user}","gists_url":"https://api.github.com/users/buzz1710/gists{/gist_id}","starred_url":"https://api.github.com/users/buzz1710/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/buzz1710/subscriptions","organizations_url":"https://api.github.com/users/buzz1710/orgs","repos_url":"https://api.github.com/users/buzz1710/repos","events_url":"https://api.github.com/users/buzz1710/events{/privacy}","received_events_url":"https://api.github.com/users/buzz1710/received_events","type":"User","site_admin":false},"body":"* Use cURL for http requests\r\n* Add PUT and DELETE functionality\r\n* UTF-8 encode post/put data\r\n* Use tabs for UI\r\n\r\n![screen shot 2016-03-22 at 14 07 53](https://cloud.githubusercontent.com/assets/1375082/13954157/8278cf9e-f037-11e5-87c5-7c9f8d6e67b0.png)\r\n\r\n","created_at":"2016-03-22T14:09:03Z","updated_at":"2016-07-22T09:05:35Z","closed_at":null,"merged_at":null,"merge_commit_sha":"75467bb1c5ee8884120429ba22d51b606f40db77","assignee":{"login":"buzz1710","id":1375082,"avatar_url":"https://avatars.githubusercontent.com/u/1375082?v=3","gravatar_id":"","url":"https://api.github.com/users/buzz1710","html_url":"https://github.com/buzz1710","followers_url":"https://api.github.com/users/buzz1710/followers","following_url":"https://api.github.com/users/buzz1710/following{/other_user}","gists_url":"https://api.github.com/users/buzz1710/gists{/gist_id}","starred_url":"https://api.github.com/users/buzz1710/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/buzz1710/subscriptions","organizations_url":"https://api.github.com/users/buzz1710/orgs","repos_url":"https://api.github.com/users/buzz1710/repos","events_url":"https://api.github.com/users/buzz1710/events{/privacy}","received_events_url":"https://api.github.com/users/buzz1710/received_events","type":"User","site_admin":false},"assignees":[{"login":"buzz1710","id":1375082,"avatar_url":"https://avatars.githubusercontent.com/u/1375082?v=3","gravatar_id":"","url":"https://api.github.com/users/buzz1710","html_url":"https://github.com/buzz1710","followers_url":"https://api.github.com/users/buzz1710/followers","following_url":"https://api.github.com/users/buzz1710/following{/other_user}","gists_url":"https://api.github.com/users/buzz1710/gists{/gist_id}","starred_url":"https://api.github.com/users/buzz1710/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/buzz1710/subscriptions","organizations_url":"https://api.github.com/users/buzz1710/orgs","repos_url":"https://api.github.com/users/buzz1710/repos","events_url":"https://api.github.com/users/buzz1710/events{/privacy}","received_events_url":"https://api.github.com/users/buzz1710/received_events","type":"User","site_admin":false}],"milestone":null,"commits_url":"https://api.github.com/repos/Sage/sageone_api_php_sample/pulls/4/commits","review_comments_url":"https://api.github.com/repos/Sage/sageone_api_php_sample/pulls/4/comments","review_comment_url":"https://api.github.com/repos/Sage/sageone_api_php_sample/pulls/comments{/number}","comments_url":"https://api.github.com/repos/Sage/sageone_api_php_sample/issues/4/comments","statuses_url":"https://api.github.com/repos/Sage/sageone_api_php_sample/statuses/e7f8f8055c045ee07a90fca90c4f7d72be18d0a0","head":{"label":"Sage:add_put_and_delete_functionality","ref":"add_put_and_delete_functionality","sha":"e7f8f8055c045ee07a90fca90c4f7d72be18d0a0","user":{"login":"Sage","id":24190,"avatar_url":"https://avatars.githubusercontent.com/u/24190?v=3","gravatar_id":"","url":"https://api.github.com/users/Sage","html_url":"https://github.com/Sage","followers_url":"https://api.github.com/users/Sage/followers","following_url":"https://api.github.com/users/Sage/following{/other_user}","gists_url":"https://api.github.com/users/Sage/gists{/gist_id}","starred_url":"https://api.github.com/users/Sage/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Sage/subscriptions","organizations_url":"https://api.github.com/users/Sage/orgs","repos_url":"https://api.github.com/users/Sage/repos","events_url":"https://api.github.com/users/Sage/events{/privacy}","received_events_url":"https://api.github.com/users/Sage/received_events","type":"Organization","site_admin":false},"repo":{"id":51443522,"name":"sageone_api_php_sample","full_name":"Sage/sageone_api_php_sample","owner":{"login":"Sage","id":24190,"avatar_url":"https://avatars.githubusercontent.com/u/24190?v=3","gravatar_id":"","url":"https://api.github.com/users/Sage","html_url":"https://github.com/Sage","followers_url":"https://api.github.com/users/Sage/followers","following_url":"https://api.github.com/users/Sage/following{/other_user}","gists_url":"https://api.github.com/users/Sage/gists{/gist_id}","starred_url":"https://api.github.com/users/Sage/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Sage/subscriptions","organizations_url":"https://api.github.com/users/Sage/orgs","repos_url":"https://api.github.com/users/Sage/repos","events_url":"https://api.github.com/users/Sage/events{/privacy}","received_events_url":"https://api.github.com/users/Sage/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/Sage/sageone_api_php_sample","description":"Sage One API PHP Sample","fork":false,"url":"https://api.github.com/repos/Sage/sageone_api_php_sample","forks_url":"https://api.github.com/repos/Sage/sageone_api_php_sample/forks","keys_url":"https://api.github.com/repos/Sage/sageone_api_php_sample/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Sage/sageone_api_php_sample/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Sage/sageone_api_php_sample/teams","hooks_url":"https://api.github.com/repos/Sage/sageone_api_php_sample/hooks","issue_events_url":"https://api.github.com/repos/Sage/sageone_api_php_sample/issues/events{/number}","events_url":"https://api.github.com/repos/Sage/sageone_api_php_sample/events","assignees_url":"https://api.github.com/repos/Sage/sageone_api_php_sample/assignees{/user}","branches_url":"https://api.github.com/repos/Sage/sageone_api_php_sample/branches{/branch}","tags_url":"https://api.github.com/repos/Sage/sageone_api_php_sample/tags","blobs_url":"https://api.github.com/repos/Sage/sageone_api_php_sample/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Sage/sageone_api_php_sample/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Sage/sageone_api_php_sample/git/refs{/sha}","trees_url":"https://api.github.com/repos/Sage/sageone_api_php_sample/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Sage/sageone_api_php_sample/statuses/{sha}","languages_url":"https://api.github.com/repos/Sage/sageone_api_php_sample/languages","stargazers_url":"https://api.github.com/repos/Sage/sageone_api_php_sample/stargazers","contributors_url":"https://api.github.com/repos/Sage/sageone_api_php_sample/contributors","subscribers_url":"https://api.github.com/repos/Sage/sageone_api_php_sample/subscribers","subscription_url":"https://api.github.com/repos/Sage/sageone_api_php_sample/subscription","commits_url":"https://api.github.com/repos/Sage/sageone_api_php_sample/commits{/sha}","git_commits_url":"https://api.github.com/repos/Sage/sageone_api_php_sample/git/commits{/sha}","comments_url":"https://api.github.com/repos/Sage/sageone_api_php_sample/comments{/number}","issue_comment_url":"https://api.github.com/repos/Sage/sageone_api_php_sample/issues/comments{/number}","contents_url":"https://api.github.com/repos/Sage/sageone_api_php_sample/contents/{+path}","compare_url":"https://api.github.com/repos/Sage/sageone_api_php_sample/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Sage/sageone_api_php_sample/merges","archive_url":"https://api.github.com/repos/Sage/sageone_api_php_sample/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Sage/sageone_api_php_sample/downloads","issues_url":"https://api.github.com/repos/Sage/sageone_api_php_sample/issues{/number}","pulls_url":"https://api.github.com/repos/Sage/sageone_api_php_sample/pulls{/number}","milestones_url":"https://api.github.com/repos/Sage/sageone_api_php_sample/milestones{/number}","notifications_url":"https://api.github.com/repos/Sage/sageone_api_php_sample/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Sage/sageone_api_php_sample/labels{/name}","releases_url":"https://api.github.com/repos/Sage/sageone_api_php_sample/releases{/id}","deployments_url":"https://api.github.com/repos/Sage/sageone_api_php_sample/deployments","created_at":"2016-02-10T13:44:47Z","updated_at":"2016-06-01T14:22:41Z","pushed_at":"2016-07-22T08:46:14Z","git_url":"git://github.com/Sage/sageone_api_php_sample.git","ssh_url":"git@github.com:Sage/sageone_api_php_sample.git","clone_url":"https://github.com/Sage/sageone_api_php_sample.git","svn_url":"https://github.com/Sage/sageone_api_php_sample","homepage":null,"size":14,"stargazers_count":4,"watchers_count":4,"language":"PHP","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":5,"mirror_url":null,"open_issues_count":1,"forks":5,"open_issues":1,"watchers":4,"default_branch":"master"}},"base":{"label":"Sage:master","ref":"master","sha":"300238754389a1133a8caff469bce227aac57fa5","user":{"login":"Sage","id":24190,"avatar_url":"https://avatars.githubusercontent.com/u/24190?v=3","gravatar_id":"","url":"https://api.github.com/users/Sage","html_url":"https://github.com/Sage","followers_url":"https://api.github.com/users/Sage/followers","following_url":"https://api.github.com/users/Sage/following{/other_user}","gists_url":"https://api.github.com/users/Sage/gists{/gist_id}","starred_url":"https://api.github.com/users/Sage/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Sage/subscriptions","organizations_url":"https://api.github.com/users/Sage/orgs","repos_url":"https://api.github.com/users/Sage/repos","events_url":"https://api.github.com/users/Sage/events{/privacy}","received_events_url":"https://api.github.com/users/Sage/received_events","type":"Organization","site_admin":false},"repo":{"id":51443522,"name":"sageone_api_php_sample","full_name":"Sage/sageone_api_php_sample","owner":{"login":"Sage","id":24190,"avatar_url":"https://avatars.githubusercontent.com/u/24190?v=3","gravatar_id":"","url":"https://api.github.com/users/Sage","html_url":"https://github.com/Sage","followers_url":"https://api.github.com/users/Sage/followers","following_url":"https://api.github.com/users/Sage/following{/other_user}","gists_url":"https://api.github.com/users/Sage/gists{/gist_id}","starred_url":"https://api.github.com/users/Sage/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Sage/subscriptions","organizations_url":"https://api.github.com/users/Sage/orgs","repos_url":"https://api.github.com/users/Sage/repos","events_url":"https://api.github.com/users/Sage/events{/privacy}","received_events_url":"https://api.github.com/users/Sage/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/Sage/sageone_api_php_sample","description":"Sage One API PHP Sample","fork":false,"url":"https://api.github.com/repos/Sage/sageone_api_php_sample","forks_url":"https://api.github.com/repos/Sage/sageone_api_php_sample/forks","keys_url":"https://api.github.com/repos/Sage/sageone_api_php_sample/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Sage/sageone_api_php_sample/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Sage/sageone_api_php_sample/teams","hooks_url":"https://api.github.com/repos/Sage/sageone_api_php_sample/hooks","issue_events_url":"https://api.github.com/repos/Sage/sageone_api_php_sample/issues/events{/number}","events_url":"https://api.github.com/repos/Sage/sageone_api_php_sample/events","assignees_url":"https://api.github.com/repos/Sage/sageone_api_php_sample/assignees{/user}","branches_url":"https://api.github.com/repos/Sage/sageone_api_php_sample/branches{/branch}","tags_url":"https://api.github.com/repos/Sage/sageone_api_php_sample/tags","blobs_url":"https://api.github.com/repos/Sage/sageone_api_php_sample/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Sage/sageone_api_php_sample/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Sage/sageone_api_php_sample/git/refs{/sha}","trees_url":"https://api.github.com/repos/Sage/sageone_api_php_sample/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Sage/sageone_api_php_sample/statuses/{sha}","languages_url":"https://api.github.com/repos/Sage/sageone_api_php_sample/languages","stargazers_url":"https://api.github.com/repos/Sage/sageone_api_php_sample/stargazers","contributors_url":"https://api.github.com/repos/Sage/sageone_api_php_sample/contributors","subscribers_url":"https://api.github.com/repos/Sage/sageone_api_php_sample/subscribers","subscription_url":"https://api.github.com/repos/Sage/sageone_api_php_sample/subscription","commits_url":"https://api.github.com/repos/Sage/sageone_api_php_sample/commits{/sha}","git_commits_url":"https://api.github.com/repos/Sage/sageone_api_php_sample/git/commits{/sha}","comments_url":"https://api.github.com/repos/Sage/sageone_api_php_sample/comments{/number}","issue_comment_url":"https://api.github.com/repos/Sage/sageone_api_php_sample/issues/comments{/number}","contents_url":"https://api.github.com/repos/Sage/sageone_api_php_sample/contents/{+path}","compare_url":"https://api.github.com/repos/Sage/sageone_api_php_sample/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Sage/sageone_api_php_sample/merges","archive_url":"https://api.github.com/repos/Sage/sageone_api_php_sample/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Sage/sageone_api_php_sample/downloads","issues_url":"https://api.github.com/repos/Sage/sageone_api_php_sample/issues{/number}","pulls_url":"https://api.github.com/repos/Sage/sageone_api_php_sample/pulls{/number}","milestones_url":"https://api.github.com/repos/Sage/sageone_api_php_sample/milestones{/number}","notifications_url":"https://api.github.com/repos/Sage/sageone_api_php_sample/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Sage/sageone_api_php_sample/labels{/name}","releases_url":"https://api.github.com/repos/Sage/sageone_api_php_sample/releases{/id}","deployments_url":"https://api.github.com/repos/Sage/sageone_api_php_sample/deployments","created_at":"2016-02-10T13:44:47Z","updated_at":"2016-06-01T14:22:41Z","pushed_at":"2016-07-22T08:46:14Z","git_url":"git://github.com/Sage/sageone_api_php_sample.git","ssh_url":"git@github.com:Sage/sageone_api_php_sample.git","clone_url":"https://github.com/Sage/sageone_api_php_sample.git","svn_url":"https://github.com/Sage/sageone_api_php_sample","homepage":null,"size":14,"stargazers_count":4,"watchers_count":4,"language":"PHP","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":5,"mirror_url":null,"open_issues_count":1,"forks":5,"open_issues":1,"watchers":4,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/Sage/sageone_api_php_sample/pulls/4"},"html":{"href":"https://github.com/Sage/sageone_api_php_sample/pull/4"},"issue":{"href":"https://api.github.com/repos/Sage/sageone_api_php_sample/issues/4"},"comments":{"href":"https://api.github.com/repos/Sage/sageone_api_php_sample/issues/4/comments"},"review_comments":{"href":"https://api.github.com/repos/Sage/sageone_api_php_sample/pulls/4/comments"},"review_comment":{"href":"https://api.github.com/repos/Sage/sageone_api_php_sample/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/Sage/sageone_api_php_sample/pulls/4/commits"},"statuses":{"href":"https://api.github.com/repos/Sage/sageone_api_php_sample/statuses/e7f8f8055c045ee07a90fca90c4f7d72be18d0a0"}}}}
{"actor":{"display_login":"fejao"}}