Title: Remote API
Author: Thorsten Ott
Published: <strong>2011 年 2 月 1 日</strong>
Last modified: 2011 年 2 月 23 日

---

搜索插件

**该插件尚未通过WordPress的最新3个主要版本进行测试**。 当与较新版本的WordPress一起
使用时，可能不再受到维护或支持，并且可能会存在兼容性问题。

![](https://s.w.org/plugins/geopattern-icon/remote-api.svg)

# Remote API

 作者：[Thorsten Ott](https://profiles.wordpress.org/tott/)

[下载](https://downloads.wordpress.org/plugin/remote-api.zip)

 * [详情](https://cn.wordpress.org/plugins/remote-api/#description)
 * [评价](https://cn.wordpress.org/plugins/remote-api/#reviews)
 * [开发进展](https://cn.wordpress.org/plugins/remote-api/#developers)

 [支持](https://wordpress.org/support/plugin/remote-api/)

## 描述

A basic use case for this plugin would be lazy loading content segments or performing
cross-blog actions.
 It includes a simple example for lazy loading widgets, but 
is mainly aimed for developers who like to built on top of this functionality.

Features:

 * Url Format in form of `http://<blogname>/<server_entry_key>/<request_string>/
   <server_format_key>/<format>` 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
 * Variable response formats. Comes with xml and json bundled in response.php but
   can be extended to your needs
 * Exceptions with custom exception handler are used throughout the classes to allow
   error feedback in the requested response format.

Please have a look at the inline documentation starting from `remote-api.php`. To
get a sense of the usage have a look at the examples

### Lazy Loading Widget Example

The Lazy Loading Widget example is a basic use case for this script. It’s UI is 
still not very tuned, but should give an impression on what can be done with this
remote-api.

When you visit your widget administration at `/wp-admin/widgets.php` you’ll notice
a widget called “Remote_API_Lazy_Widget”. 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.

A new sidebar should appear in which you can drop other widgets. The widgets you’ll
drop in this sidebar will be loaded asynchronously via a ajax request in place of
the placeholder widget.

## 屏幕截图

 * [[
 * Widget admin interface showing the widget (left), the placeholder widget in the
   primary sidebar (top-right) and the resulting sidebar / dropzone for the placeholder
   widget (bottom-right)

## 评价

此插件暂无评价。

## 贡献者及开发者

「Remote API」是开源软件。 以下人员对此插件做出了贡献。

贡献者

 *   [ Thorsten Ott ](https://profiles.wordpress.org/tott/)
 *   [ Automattic ](https://profiles.wordpress.org/automattic/)

[帮助将「Remote API」翻译成简体中文。](https://translate.wordpress.org/projects/wp-plugins/remote-api)

### 对开发感兴趣吗?

您可以[浏览代码](https://plugins.trac.wordpress.org/browser/remote-api/)，查看[SVN仓库](https://plugins.svn.wordpress.org/remote-api/)，
或通过[RSS](https://plugins.trac.wordpress.org/log/remote-api/?limit=100&mode=stop_on_copy&format=rss)
订阅[开发日志](https://plugins.trac.wordpress.org/log/remote-api/)。

## 更新日志

#### 0.2

 * Add support for full stops (.) in server parameters and switch to `remote.api`
   as default url to avoid conflicts with page names.
 * Switching to hash_hmac instead of crypt for request format validation string.

#### 0.1

 * Basic implementation

## 额外信息

 *  版本 **0.2**
 *  最后更新：**15 年前**
 *  活跃安装数量 **10+**
 *  WordPress 版本 ** 3.0 或更高版本 **
 *  已测试的最高版本为 **3.04**
 *  语言
 * [English (US)](https://wordpress.org/plugins/remote-api/)
 * 标签
 * [api](https://cn.wordpress.org/plugins/tags/api/)[Lazy Loading](https://cn.wordpress.org/plugins/tags/lazy-loading/)
   [remote access](https://cn.wordpress.org/plugins/tags/remote-access/)[remote API](https://cn.wordpress.org/plugins/tags/remote-api/)
 *  [高级视图](https://cn.wordpress.org/plugins/remote-api/advanced/)

## 评级

尚未提交反馈。

[Your review](https://wordpress.org/support/plugin/remote-api/reviews/#new-post)

[查看全部评论](https://wordpress.org/support/plugin/remote-api/reviews/)

## 贡献者

 *   [ Thorsten Ott ](https://profiles.wordpress.org/tott/)
 *   [ Automattic ](https://profiles.wordpress.org/automattic/)

## 支持

有话要说吗？是否需要帮助？

 [查看支持论坛](https://wordpress.org/support/plugin/remote-api/)