X-REST 1.50是一款针对XOOPS 2.x系列的REST API。它也适用于较早版本的Xoops,直到Xoops 2.5版。它提供了一个全功能的REST API,支持JSON、XML和序列化响应。它使用其他API的标准插件集以及这个API,以提供对网站上API的流畅解决方案,这些插件与Chronolabs的所有其他API兼容。你可能熟悉如Google、Twitter、Facebook等网站的REST API,这只是同样的东西,但允许在您的网站上执行API操作。

REST API上有两个保留变量,如下:xrestplugin与outputmode。

要调用REST API函数,您必须知道插件的文件名,比如说它叫plugin.php,那么以下调用将调用API上的函数。./xrest/plugin/?var1=example1&var2=example2或对于XML响应,您将调用./xrest/plugin/xml/?var1=example1&var2=example2,当然对于PHP序列化,您可以调用./xrest/plugin/serial/?var1=example1&var2=example2 - 您也可以向API POST,您可以在以下文件夹调用插件函数 http://yoursite.com/modules/xrest/plugin/,在那里插件中的变量var1和var2使用cURL或其他系统头信息发出。在这个示例中,变量xrestplugin将等于plugin。您可以通过指定outputmode=xml(xml输出)、outputmode=serial(PHP序列化输出)和标准(不指定输出为json)来更改输出模式,其中JSON是默认值。

特性


系统要求



其他文件由: wishcraft

MyAlbum-p (2012/03/13)
Flowplayer (2012/03/13)
UI 选项卡 (2012/03/13)
性感 (2012/03/13)
基准 (2012/03/13)
Maquee 1.03 (2012/03/13)
XQuiz (2012/03/13)
IRC 1.02 (2011/08/10)
TwitterBomb 1.12 (2011/08/10)
Prochatrooms 7.0 (2011/05/08)
会员 1.02 (2011/02/06)
网络摄像头 1.09 (2011/02/04)
Xpayment 1.18 (2011/01/21)
XinCodes 1.02 (2010/12/15)
日期 1.45 (2010/11/08)
X-Center (2010/09/29)
X-cURL (2010/07/16)

评论由作者拥有。我们不对其内容负责。
user

 Re: X-REST API


文件未找到

 
user

 Re: X-REST API


您可以在这里找到它。

 


Login

Top Module Downloads

Who's Online

223 user(s) are online (21 user(s) are browsing Module Repository)


Members: 0


Guests: 223


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Aug 31
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!