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

---

搜尋外掛

這個外掛**並未在最新的 3 個 WordPress 主要版本上進行測試**。開發者可能不再對這個
外掛進行維護或提供技術支援，並可能會與更新版本的 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://tw.wordpress.org/plugins/remote-api/#description)
 * [使用者評論](https://tw.wordpress.org/plugins/remote-api/#reviews)
 * [開發資訊](https://tw.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 或更新版本 **
 *  已測試相容的 WordPress 版本 **3.04**
 *  語言
 * [English (US)](https://wordpress.org/plugins/remote-api/)
 * 標籤:
 * [api](https://tw.wordpress.org/plugins/tags/api/)[Lazy Loading](https://tw.wordpress.org/plugins/tags/lazy-loading/)
   [remote access](https://tw.wordpress.org/plugins/tags/remote-access/)[remote API](https://tw.wordpress.org/plugins/tags/remote-api/)
 *  [進階檢視](https://tw.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/)