{"action":"created","comment":{"url":"https://api.github.com/repos/hideokamoto/wpapi-shortcodes-and-widgets/pulls/comments/48843345","id":48843345,"diff_hunk":"@@ -7,18 +7,21 @@ function get_badresponse($wp_api_posts){\n         $html .= \"{$wp_api_posts['response']['message']}</dd></dl>\";\r\n         return $html;\r\n     }\r\n-    \r\n+\r\n     function get_posts($wp_api_posts){\r\n         $html = '';\r\n         foreach ($wp_api_posts as $k => $v){\r\n-            $id = $v->ID;\r\n-            $title = $v->title;\r\n-            $link  = $v->link;\r\n-            $thumbnail = $v->featured_image->guid;\r\n-            $excerpt = $v->excerpt;\r\n+            $id = $v['id'];\r\n+            $title = $v['title']['rendered'];\r\n+            $link  = $v['link'];\r\n+            $excerpt = $v['excerpt']['rendered'];\r\n             $html .= \"<li><a href='{$link}'>\";\r\n-            if($thumbnail){$html .= \"<img src='{$thumbnail}'>\";}\r\n-            $html .=\"<h2 class='wpapi-title'>{$title}</h2>{$excerpt}</a></li>\";\r\n+\t\t\tif( isset( $v['_embedded']['https://api.w.org/featuredmedia'] ) && $v['_embedded']['https://api.w.org/featuredmedia'] ) {\r\n+\t\t\t\t$img_title = $v['_embedded']['https://api.w.org/featuredmedia'][0]['title']['rendered'];\r","path":"wpapi-class-content.php","position":22,"original_position":22,"commit_id":"b199b84382671530a08caf40ff20f61b2d65405d","original_commit_id":"b199b84382671530a08caf40ff20f61b2d65405d","user":{"login":"hideokamoto","id":6883571,"avatar_url":"https://avatars.githubusercontent.com/u/6883571?v=3","gravatar_id":"","url":"https://api.github.com/users/hideokamoto","html_url":"https://github.com/hideokamoto","followers_url":"https://api.github.com/users/hideokamoto/followers","following_url":"https://api.github.com/users/hideokamoto/following{/other_user}","gists_url":"https://api.github.com/users/hideokamoto/gists{/gist_id}","starred_url":"https://api.github.com/users/hideokamoto/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hideokamoto/subscriptions","organizations_url":"https://api.github.com/users/hideokamoto/orgs","repos_url":"https://api.github.com/users/hideokamoto/repos","events_url":"https://api.github.com/users/hideokamoto/events{/privacy}","received_events_url":"https://api.github.com/users/hideokamoto/received_events","type":"User","site_admin":false},"body":"__[code_sniffer]__\n* Spaces must be used to indent lines; tabs are not allowed","created_at":"2016-01-05T13:18:38Z","updated_at":"2016-01-05T13:18:38Z","html_url":"https://github.com/hideokamoto/wpapi-shortcodes-and-widgets/pull/1#discussion_r48843345","pull_request_url":"https://api.github.com/repos/hideokamoto/wpapi-shortcodes-and-widgets/pulls/1","_links":{"self":{"href":"https://api.github.com/repos/hideokamoto/wpapi-shortcodes-and-widgets/pulls/comments/48843345"},"html":{"href":"https://github.com/hideokamoto/wpapi-shortcodes-and-widgets/pull/1#discussion_r48843345"},"pull_request":{"href":"https://api.github.com/repos/hideokamoto/wpapi-shortcodes-and-widgets/pulls/1"}}},"pull_request":{"url":"https://api.github.com/repos/hideokamoto/wpapi-shortcodes-and-widgets/pulls/1","id":55090051,"html_url":"https://github.com/hideokamoto/wpapi-shortcodes-and-widgets/pull/1","diff_url":"https://github.com/hideokamoto/wpapi-shortcodes-and-widgets/pull/1.diff","patch_url":"https://github.com/hideokamoto/wpapi-shortcodes-and-widgets/pull/1.patch","issue_url":"https://api.github.com/repos/hideokamoto/wpapi-shortcodes-and-widgets/issues/1","number":1,"state":"open","locked":false,"title":"V2","user":{"login":"hideokamoto","id":6883571,"avatar_url":"https://avatars.githubusercontent.com/u/6883571?v=3","gravatar_id":"","url":"https://api.github.com/users/hideokamoto","html_url":"https://github.com/hideokamoto","followers_url":"https://api.github.com/users/hideokamoto/followers","following_url":"https://api.github.com/users/hideokamoto/following{/other_user}","gists_url":"https://api.github.com/users/hideokamoto/gists{/gist_id}","starred_url":"https://api.github.com/users/hideokamoto/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hideokamoto/subscriptions","organizations_url":"https://api.github.com/users/hideokamoto/orgs","repos_url":"https://api.github.com/users/hideokamoto/repos","events_url":"https://api.github.com/users/hideokamoto/events{/privacy}","received_events_url":"https://api.github.com/users/hideokamoto/received_events","type":"User","site_admin":false},"body":"","created_at":"2016-01-05T13:18:33Z","updated_at":"2016-01-05T13:18:38Z","closed_at":null,"merged_at":null,"merge_commit_sha":"5bc746962ea34f358e5e683811ab65bdfd48de7f","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/hideokamoto/wpapi-shortcodes-and-widgets/pulls/1/commits","review_comments_url":"https://api.github.com/repos/hideokamoto/wpapi-shortcodes-and-widgets/pulls/1/comments","review_comment_url":"https://api.github.com/repos/hideokamoto/wpapi-shortcodes-and-widgets/pulls/comments{/number}","comments_url":"https://api.github.com/repos/hideokamoto/wpapi-shortcodes-and-widgets/issues/1/comments","statuses_url":"https://api.github.com/repos/hideokamoto/wpapi-shortcodes-and-widgets/statuses/b199b84382671530a08caf40ff20f61b2d65405d","head":{"label":"hideokamoto:v2","ref":"v2","sha":"b199b84382671530a08caf40ff20f61b2d65405d","user":{"login":"hideokamoto","id":6883571,"avatar_url":"https://avatars.githubusercontent.com/u/6883571?v=3","gravatar_id":"","url":"https://api.github.com/users/hideokamoto","html_url":"https://github.com/hideokamoto","followers_url":"https://api.github.com/users/hideokamoto/followers","following_url":"https://api.github.com/users/hideokamoto/following{/other_user}","gists_url":"https://api.github.com/users/hideokamoto/gists{/gist_id}","starred_url":"https://api.github.com/users/hideokamoto/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hideokamoto/subscriptions","organizations_url":"https://api.github.com/users/hideokamoto/orgs","repos_url":"https://api.github.com/users/hideokamoto/repos","events_url":"https://api.github.com/users/hideokamoto/events{/privacy}","received_events_url":"https://api.github.com/users/hideokamoto/received_events","type":"User","site_admin":false},"repo":{"id":32392901,"name":"wpapi-shortcodes-and-widgets","full_name":"hideokamoto/wpapi-shortcodes-and-widgets","owner":{"login":"hideokamoto","id":6883571,"avatar_url":"https://avatars.githubusercontent.com/u/6883571?v=3","gravatar_id":"","url":"https://api.github.com/users/hideokamoto","html_url":"https://github.com/hideokamoto","followers_url":"https://api.github.com/users/hideokamoto/followers","following_url":"https://api.github.com/users/hideokamoto/following{/other_user}","gists_url":"https://api.github.com/users/hideokamoto/gists{/gist_id}","starred_url":"https://api.github.com/users/hideokamoto/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hideokamoto/subscriptions","organizations_url":"https://api.github.com/users/hideokamoto/orgs","repos_url":"https://api.github.com/users/hideokamoto/repos","events_url":"https://api.github.com/users/hideokamoto/events{/privacy}","received_events_url":"https://api.github.com/users/hideokamoto/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/hideokamoto/wpapi-shortcodes-and-widgets","description":"get WP-API's data, making original widget and shortcodes.","fork":false,"url":"https://api.github.com/repos/hideokamoto/wpapi-shortcodes-and-widgets","forks_url":"https://api.github.com/repos/hideokamoto/wpapi-shortcodes-and-widgets/forks","keys_url":"https://api.github.com/repos/hideokamoto/wpapi-shortcodes-and-widgets/keys{/key_id}","collaborators_url":"https://api.github.com/repos/hideokamoto/wpapi-shortcodes-and-widgets/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/hideokamoto/wpapi-shortcodes-and-widgets/teams","hooks_url":"https://api.github.com/repos/hideokamoto/wpapi-shortcodes-and-widgets/hooks","issue_events_url":"https://api.github.com/repos/hideokamoto/wpapi-shortcodes-and-widgets/issues/events{/number}","events_url":"https://api.github.com/repos/hideokamoto/wpapi-shortcodes-and-widgets/events","assignees_url":"https://api.github.com/repos/hideokamoto/wpapi-shortcodes-and-widgets/assignees{/user}","branches_url":"https://api.github.com/repos/hideokamoto/wpapi-shortcodes-and-widgets/branches{/branch}","tags_url":"https://api.github.com/repos/hideokamoto/wpapi-shortcodes-and-widgets/tags","blobs_url":"https://api.github.com/repos/hideokamoto/wpapi-shortcodes-and-widgets/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/hideokamoto/wpapi-shortcodes-and-widgets/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/hideokamoto/wpapi-shortcodes-and-widgets/git/refs{/sha}","trees_url":"https://api.github.com/repos/hideokamoto/wpapi-shortcodes-and-widgets/git/trees{/sha}","statuses_url":"https://api.github.com/repos/hideokamoto/wpapi-shortcodes-and-widgets/statuses/{sha}","languages_url":"https://api.github.com/repos/hideokamoto/wpapi-shortcodes-and-widgets/languages","stargazers_url":"https://api.github.com/repos/hideokamoto/wpapi-shortcodes-and-widgets/stargazers","contributors_url":"https://api.github.com/repos/hideokamoto/wpapi-shortcodes-and-widgets/contributors","subscribers_url":"https://api.github.com/repos/hideokamoto/wpapi-shortcodes-and-widgets/subscribers","subscription_url":"https://api.github.com/repos/hideokamoto/wpapi-shortcodes-and-widgets/subscription","commits_url":"https://api.github.com/repos/hideokamoto/wpapi-shortcodes-and-widgets/commits{/sha}","git_commits_url":"https://api.github.com/repos/hideokamoto/wpapi-shortcodes-and-widgets/git/commits{/sha}","comments_url":"https://api.github.com/repos/hideokamoto/wpapi-shortcodes-and-widgets/comments{/number}","issue_comment_url":"https://api.github.com/repos/hideokamoto/wpapi-shortcodes-and-widgets/issues/comments{/number}","contents_url":"https://api.github.com/repos/hideokamoto/wpapi-shortcodes-and-widgets/contents/{+path}","compare_url":"https://api.github.com/repos/hideokamoto/wpapi-shortcodes-and-widgets/compare/{base}...{head}","merges_url":"https://api.github.com/repos/hideokamoto/wpapi-shortcodes-and-widgets/merges","archive_url":"https://api.github.com/repos/hideokamoto/wpapi-shortcodes-and-widgets/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/hideokamoto/wpapi-shortcodes-and-widgets/downloads","issues_url":"https://api.github.com/repos/hideokamoto/wpapi-shortcodes-and-widgets/issues{/number}","pulls_url":"https://api.github.com/repos/hideokamoto/wpapi-shortcodes-and-widgets/pulls{/number}","milestones_url":"https://api.github.com/repos/hideokamoto/wpapi-shortcodes-and-widgets/milestones{/number}","notifications_url":"https://api.github.com/repos/hideokamoto/wpapi-shortcodes-and-widgets/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/hideokamoto/wpapi-shortcodes-and-widgets/labels{/name}","releases_url":"https://api.github.com/repos/hideokamoto/wpapi-shortcodes-and-widgets/releases{/id}","created_at":"2015-03-17T12:48:31Z","updated_at":"2015-03-31T14:21:53Z","pushed_at":"2016-01-05T13:18:33Z","git_url":"git://github.com/hideokamoto/wpapi-shortcodes-and-widgets.git","ssh_url":"git@github.com:hideokamoto/wpapi-shortcodes-and-widgets.git","clone_url":"https://github.com/hideokamoto/wpapi-shortcodes-and-widgets.git","svn_url":"https://github.com/hideokamoto/wpapi-shortcodes-and-widgets","homepage":"","size":25,"stargazers_count":0,"watchers_count":0,"language":"PHP","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"base":{"label":"hideokamoto:master","ref":"master","sha":"f47d990dd1d9681d53eaee246bc7756228b864dc","user":{"login":"hideokamoto","id":6883571,"avatar_url":"https://avatars.githubusercontent.com/u/6883571?v=3","gravatar_id":"","url":"https://api.github.com/users/hideokamoto","html_url":"https://github.com/hideokamoto","followers_url":"https://api.github.com/users/hideokamoto/followers","following_url":"https://api.github.com/users/hideokamoto/following{/other_user}","gists_url":"https://api.github.com/users/hideokamoto/gists{/gist_id}","starred_url":"https://api.github.com/users/hideokamoto/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hideokamoto/subscriptions","organizations_url":"https://api.github.com/users/hideokamoto/orgs","repos_url":"https://api.github.com/users/hideokamoto/repos","events_url":"https://api.github.com/users/hideokamoto/events{/privacy}","received_events_url":"https://api.github.com/users/hideokamoto/received_events","type":"User","site_admin":false},"repo":{"id":32392901,"name":"wpapi-shortcodes-and-widgets","full_name":"hideokamoto/wpapi-shortcodes-and-widgets","owner":{"login":"hideokamoto","id":6883571,"avatar_url":"https://avatars.githubusercontent.com/u/6883571?v=3","gravatar_id":"","url":"https://api.github.com/users/hideokamoto","html_url":"https://github.com/hideokamoto","followers_url":"https://api.github.com/users/hideokamoto/followers","following_url":"https://api.github.com/users/hideokamoto/following{/other_user}","gists_url":"https://api.github.com/users/hideokamoto/gists{/gist_id}","starred_url":"https://api.github.com/users/hideokamoto/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hideokamoto/subscriptions","organizations_url":"https://api.github.com/users/hideokamoto/orgs","repos_url":"https://api.github.com/users/hideokamoto/repos","events_url":"https://api.github.com/users/hideokamoto/events{/privacy}","received_events_url":"https://api.github.com/users/hideokamoto/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/hideokamoto/wpapi-shortcodes-and-widgets","description":"get WP-API's data, making original widget and shortcodes.","fork":false,"url":"https://api.github.com/repos/hideokamoto/wpapi-shortcodes-and-widgets","forks_url":"https://api.github.com/repos/hideokamoto/wpapi-shortcodes-and-widgets/forks","keys_url":"https://api.github.com/repos/hideokamoto/wpapi-shortcodes-and-widgets/keys{/key_id}","collaborators_url":"https://api.github.com/repos/hideokamoto/wpapi-shortcodes-and-widgets/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/hideokamoto/wpapi-shortcodes-and-widgets/teams","hooks_url":"https://api.github.com/repos/hideokamoto/wpapi-shortcodes-and-widgets/hooks","issue_events_url":"https://api.github.com/repos/hideokamoto/wpapi-shortcodes-and-widgets/issues/events{/number}","events_url":"https://api.github.com/repos/hideokamoto/wpapi-shortcodes-and-widgets/events","assignees_url":"https://api.github.com/repos/hideokamoto/wpapi-shortcodes-and-widgets/assignees{/user}","branches_url":"https://api.github.com/repos/hideokamoto/wpapi-shortcodes-and-widgets/branches{/branch}","tags_url":"https://api.github.com/repos/hideokamoto/wpapi-shortcodes-and-widgets/tags","blobs_url":"https://api.github.com/repos/hideokamoto/wpapi-shortcodes-and-widgets/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/hideokamoto/wpapi-shortcodes-and-widgets/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/hideokamoto/wpapi-shortcodes-and-widgets/git/refs{/sha}","trees_url":"https://api.github.com/repos/hideokamoto/wpapi-shortcodes-and-widgets/git/trees{/sha}","statuses_url":"https://api.github.com/repos/hideokamoto/wpapi-shortcodes-and-widgets/statuses/{sha}","languages_url":"https://api.github.com/repos/hideokamoto/wpapi-shortcodes-and-widgets/languages","stargazers_url":"https://api.github.com/repos/hideokamoto/wpapi-shortcodes-and-widgets/stargazers","contributors_url":"https://api.github.com/repos/hideokamoto/wpapi-shortcodes-and-widgets/contributors","subscribers_url":"https://api.github.com/repos/hideokamoto/wpapi-shortcodes-and-widgets/subscribers","subscription_url":"https://api.github.com/repos/hideokamoto/wpapi-shortcodes-and-widgets/subscription","commits_url":"https://api.github.com/repos/hideokamoto/wpapi-shortcodes-and-widgets/commits{/sha}","git_commits_url":"https://api.github.com/repos/hideokamoto/wpapi-shortcodes-and-widgets/git/commits{/sha}","comments_url":"https://api.github.com/repos/hideokamoto/wpapi-shortcodes-and-widgets/comments{/number}","issue_comment_url":"https://api.github.com/repos/hideokamoto/wpapi-shortcodes-and-widgets/issues/comments{/number}","contents_url":"https://api.github.com/repos/hideokamoto/wpapi-shortcodes-and-widgets/contents/{+path}","compare_url":"https://api.github.com/repos/hideokamoto/wpapi-shortcodes-and-widgets/compare/{base}...{head}","merges_url":"https://api.github.com/repos/hideokamoto/wpapi-shortcodes-and-widgets/merges","archive_url":"https://api.github.com/repos/hideokamoto/wpapi-shortcodes-and-widgets/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/hideokamoto/wpapi-shortcodes-and-widgets/downloads","issues_url":"https://api.github.com/repos/hideokamoto/wpapi-shortcodes-and-widgets/issues{/number}","pulls_url":"https://api.github.com/repos/hideokamoto/wpapi-shortcodes-and-widgets/pulls{/number}","milestones_url":"https://api.github.com/repos/hideokamoto/wpapi-shortcodes-and-widgets/milestones{/number}","notifications_url":"https://api.github.com/repos/hideokamoto/wpapi-shortcodes-and-widgets/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/hideokamoto/wpapi-shortcodes-and-widgets/labels{/name}","releases_url":"https://api.github.com/repos/hideokamoto/wpapi-shortcodes-and-widgets/releases{/id}","created_at":"2015-03-17T12:48:31Z","updated_at":"2015-03-31T14:21:53Z","pushed_at":"2016-01-05T13:18:33Z","git_url":"git://github.com/hideokamoto/wpapi-shortcodes-and-widgets.git","ssh_url":"git@github.com:hideokamoto/wpapi-shortcodes-and-widgets.git","clone_url":"https://github.com/hideokamoto/wpapi-shortcodes-and-widgets.git","svn_url":"https://github.com/hideokamoto/wpapi-shortcodes-and-widgets","homepage":"","size":25,"stargazers_count":0,"watchers_count":0,"language":"PHP","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/hideokamoto/wpapi-shortcodes-and-widgets/pulls/1"},"html":{"href":"https://github.com/hideokamoto/wpapi-shortcodes-and-widgets/pull/1"},"issue":{"href":"https://api.github.com/repos/hideokamoto/wpapi-shortcodes-and-widgets/issues/1"},"comments":{"href":"https://api.github.com/repos/hideokamoto/wpapi-shortcodes-and-widgets/issues/1/comments"},"review_comments":{"href":"https://api.github.com/repos/hideokamoto/wpapi-shortcodes-and-widgets/pulls/1/comments"},"review_comment":{"href":"https://api.github.com/repos/hideokamoto/wpapi-shortcodes-and-widgets/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/hideokamoto/wpapi-shortcodes-and-widgets/pulls/1/commits"},"statuses":{"href":"https://api.github.com/repos/hideokamoto/wpapi-shortcodes-and-widgets/statuses/b199b84382671530a08caf40ff20f61b2d65405d"}}}}