{"id":31615,"date":"2014-09-13T01:55:48","date_gmt":"2014-09-13T01:55:48","guid":{"rendered":"https:\/\/wordpress.org\/plugins-wp\/json-rest-api-shortcode\/"},"modified":"2015-12-24T07:21:26","modified_gmt":"2015-12-24T07:21:26","slug":"json-rest-api-shortcode","status":"publish","type":"plugin","link":"https:\/\/nn.wordpress.org\/plugins\/json-rest-api-shortcode\/","author":7709599,"comment_status":"closed","ping_status":"closed","template":"","meta":{"version":"2.0.9","stable_tag":"2.0.9","tested":"4.4.34","requires":"3.4.2","requires_php":"","requires_plugins":"","header_name":"SJF WP API Shortcode","header_author":"Scott Fennell","header_description":"","assets_banners_color":"a4a098","last_updated":"2015-12-24 07:21:26","external_support_url":"","external_repository_url":"","donate_link":"","header_plugin_uri":"http:\/\/scottfennell.org\/2014\/09\/08\/wordpress-json-rest-api-shortcode-tutorial\/","header_author_uri":"http:\/\/scottfennell.org","rating":0,"author_block_rating":0,"active_installs":0,"downloads":1589,"num_ratings":0,"support_threads":0,"support_threads_resolved":0,"author_block_count":0,"sections":["description","installation","faq","changelog"],"tags":[],"upgrade_notice":[],"ratings":{"1":0,"2":0,"3":0,"4":0,"5":0},"assets_icons":{"icon-128x128.jpg":{"filename":"icon-128x128.jpg","revision":"1237725","resolution":"128x128","location":"assets","width":128,"height":128},"icon-256x256.jpg":{"filename":"icon-256x256.jpg","revision":"1237725","resolution":"256x256","location":"assets","width":256,"height":256}},"assets_banners":{"banner-1544x500.jpg":{"filename":"banner-1544x500.jpg","revision":"1237755","resolution":"1544x500","location":"assets","width":1544,"height":500},"banner-772x250.jpg":{"filename":"banner-772x250.jpg","revision":"1237755","resolution":"772x250","location":"assets","width":772,"height":250}},"assets_blueprints":{},"all_blocks":[],"tagged_versions":["1.0.4","2.0","2.0.1","2.0.9"],"block_files":[],"assets_screenshots":{"screenshot-1.png":{"filename":"screenshot-1.png","revision":"1237722","resolution":"1","location":"assets","width":700,"height":894}},"screenshots":{"1":"This screen shot shows the result of using the shortcode to fire an API request."}},"plugin_section":[],"plugin_tags":[38691,2300],"plugin_category":[],"plugin_contributors":[],"plugin_business_model":[],"class_list":["post-31615","plugin","type-plugin","status-publish","hentry","plugin_tags-json-rest-api-shortcode","plugin_tags-wp-api","plugin_committers-scofennellgmailcom"],"banners":{"banner":"https:\/\/ps.w.org\/json-rest-api-shortcode\/assets\/banner-772x250.jpg?rev=1237755","banner_2x":"https:\/\/ps.w.org\/json-rest-api-shortcode\/assets\/banner-1544x500.jpg?rev=1237755","banner_rtl":false,"banner_2x_rtl":false},"icons":{"svg":false,"icon":"https:\/\/ps.w.org\/json-rest-api-shortcode\/assets\/icon-128x128.jpg?rev=1237725","icon_2x":"https:\/\/ps.w.org\/json-rest-api-shortcode\/assets\/icon-256x256.jpg?rev=1237725","generated":false},"screenshots":[{"src":"https:\/\/ps.w.org\/json-rest-api-shortcode\/assets\/screenshot-1.png?rev=1237722","caption":"This screen shot shows the result of using the shortcode to fire an API request."}],"raw_content":"<!--section=description-->\n<p>Activate this plugin and use the shortcode [wp_api] in a post or page.  It takes a few different arguments that are documented in the plugin source code.<\/p>\n\n<!--section=installation-->\n<p>This section describes how to install the plugin and get it working.<\/p>\n <ol>\n<li>Upload <code>json-rest-api-shortcode<\/code> folder to the <code>\/wp-content\/plugins\/<\/code> directory<\/li>\n<li>Activate the plugin through the 'Plugins' menu in WordPress<\/li>\n<li>Activate this plugin and use the shortcode [wp_api] in a post or page.  It takes a few different arguments that are documented in the plugin source code.<\/li>\n<\/ol>\n\n<!--section=faq-->\n<h4>Does my blog need the JSON REST API plugin in order for this plugin to work?<\/h4>\n <p>Until the JSON REST API is merged into core, yes.<\/p>\n <h4>If I use this plugin to ping a remote blog, does the remote blog need the JSON REST API?<\/h4>\n <p>Yes.<\/p>\n <h4>If I use this plugin to ping a remote blog, does the remote blog need to allow CORS?<\/h4>\n <p>Yes.  One fantastic way to do this is to use this plugin on the remote blog:  https:\/\/wordpress.org\/plugins\/wp-cors\/<\/p>\n <h4>Do I need to be careful when I use this plugin?  Can it send real traffic and execute real database queries, including CRUD?<\/h4>\n <p>Yes.<\/p>\n\n<!--section=changelog-->\n<h4>2.0.9<\/h4>\n <ul>\n<li>Updated for new version of API.<\/li>\n<\/ul>\n <h4>2.0.1<\/h4>\n <ul>\n<li>Better console logging.<\/li>\n<\/ul>\n <h4>2.0<\/h4>\n <ul>\n<li>Total rewrite for code cleanup and also to support v2 of the WP API.<\/li>\n<\/ul>\n <h4>1.0.4<\/h4>\n <ul>\n<li>Include auth data in debug output.<\/li>\n<\/ul>\n <h4>1.0.3<\/h4>\n <ul>\n<li>Fix bug with passing nonce for cookie auth.<\/li>\n<\/ul>\n <h4>1.0.2<\/h4>\n <ul>\n<li>Refactor duplicate code into methods.<\/li>\n<\/ul>\n <h4>1.0.1<\/h4>\n <ul>\n<li>Refactor plugin to use WP Ajax API &amp; WP HTTP API.<\/li>\n<\/ul>\n <h4>1.0<\/h4>\n <ul>\n<li>Initial Release<\/li>\n<\/ul>","raw_excerpt":"Activate this plugin and use the shortcode [wp_api] in a post or page.  It takes a few different arguments that are documented in the plugin source co &hellip;","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/nn.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin\/31615","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/nn.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin"}],"about":[{"href":"https:\/\/nn.wordpress.org\/plugins\/wp-json\/wp\/v2\/types\/plugin"}],"replies":[{"embeddable":true,"href":"https:\/\/nn.wordpress.org\/plugins\/wp-json\/wp\/v2\/comments?post=31615"}],"author":[{"embeddable":true,"href":"https:\/\/nn.wordpress.org\/plugins\/wp-json\/wporg\/v1\/users\/scofennellgmailcom"}],"wp:attachment":[{"href":"https:\/\/nn.wordpress.org\/plugins\/wp-json\/wp\/v2\/media?parent=31615"}],"wp:term":[{"taxonomy":"plugin_section","embeddable":true,"href":"https:\/\/nn.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_section?post=31615"},{"taxonomy":"plugin_tags","embeddable":true,"href":"https:\/\/nn.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_tags?post=31615"},{"taxonomy":"plugin_category","embeddable":true,"href":"https:\/\/nn.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_category?post=31615"},{"taxonomy":"plugin_contributors","embeddable":true,"href":"https:\/\/nn.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_contributors?post=31615"},{"taxonomy":"plugin_business_model","embeddable":true,"href":"https:\/\/nn.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_business_model?post=31615"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}