{"id":144646,"date":"2011-02-01T08:00:00","date_gmt":"2011-02-01T08:00:00","guid":{"rendered":"https:\/\/www.weixiaoduo.com\/plugins\/2024\/02\/22\/remote-api\/"},"modified":"2011-02-23T21:01:00","modified_gmt":"2011-02-23T21:01:00","slug":"remote-api","status":"publish","type":"post","link":"https:\/\/www.weixiaoduo.com\/plugins\/remote-api\/","title":{"rendered":"Remote API"},"content":{"rendered":"<p>A basic use case for this plugin would be lazy loading content segments or performing cross-blog actions.<br \/>\nIt includes a simple example for lazy loading widgets, but is mainly aimed for developers who like to built on top of this functionality.<\/p>\n<p>Features:<\/p>\n<ul>\n<li>Url Format in form of <code>http:\/\/<blogname>\/<server_entry_key>\/<request_string>\/<server_format_key>\/<format><\/code> in order to allow server side caching of requests without setting up a huge set of rewrite rules. The request string contains all request parameters<\/li>\n<li>Variable response formats. Comes with xml and json bundled in response.php but can be extended to your needs<\/li>\n<li>Exceptions with custom exception handler are used throughout the classes to allow error feedback in the requested response format.<\/li>\n<\/ul>\n<p>Please have a look at the inline documentation starting from <code>remote-api.php<\/code>. To get a sense of the usage have a look at the examples<\/p>\n<h3>Lazy Loading Widget Example<\/h3>\n<p>The Lazy Loading Widget example is a basic use case for this script. It\u2019s UI is still not very tuned, but should give an impression on what can be done with this remote-api.<\/p>\n<p>When you visit your widget administration at <code>\/wp-admin\/widgets.php<\/code> you\u2019ll notice a widget called \u201cRemote_API_Lazy_Widget\u201d. Drag it to one of your sidebars where you would like to have some asynchronously loaded widget appear and give it a Title. Then reload the widgets.php page.<\/p>\n<p>A new sidebar should appear in which you can drop other widgets. The widgets you\u2019ll drop in this sidebar will be loaded asynchronously via a ajax request in place of the placeholder widget.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>A set of extendable classes that allow the creation of a remote API.<\/p>\n","protected":false},"author":65,"featured_media":334062,"comment_status":"open","ping_status":"","sticky":false,"template":"","format":"standard","meta":{"slim_seo":{"title":"Remote API - \u8587\u6653\u6735\u63d2\u4ef6\u76ee\u5f55","description":"A set of extendable classes that allow the creation of a remote API."},"footnotes":""},"categories":[1],"tags":[461,719,38646,38647,8244],"class_list":["post-144646","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-uncategorized","tag-api","tag-lazy-loading","tag-lazy-widget","tag-remote-access","tag-remote-api"],"_links":{"self":[{"href":"https:\/\/www.weixiaoduo.com\/plugins\/wp-json\/wp\/v2\/posts\/144646","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.weixiaoduo.com\/plugins\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.weixiaoduo.com\/plugins\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.weixiaoduo.com\/plugins\/wp-json\/wp\/v2\/users\/65"}],"replies":[{"embeddable":true,"href":"https:\/\/www.weixiaoduo.com\/plugins\/wp-json\/wp\/v2\/comments?post=144646"}],"version-history":[{"count":0,"href":"https:\/\/www.weixiaoduo.com\/plugins\/wp-json\/wp\/v2\/posts\/144646\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.weixiaoduo.com\/plugins\/wp-json\/wp\/v2\/media\/334062"}],"wp:attachment":[{"href":"https:\/\/www.weixiaoduo.com\/plugins\/wp-json\/wp\/v2\/media?parent=144646"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.weixiaoduo.com\/plugins\/wp-json\/wp\/v2\/categories?post=144646"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.weixiaoduo.com\/plugins\/wp-json\/wp\/v2\/tags?post=144646"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}