此接口适用于查询任意表数据。
一、接口URL
/index.php?c=api&m=data2&auth=授权认证码¶m=list查询标签
二、HTTP请求方式
GET
三、返回JSON数据
| 返回值字段 | 介绍
|
|---|
| msg | 返回信息或错误提示文字
|
| code | 状态码:1正确,0失败
|
| total | 分页时的总页数 |
| return | 返回结果的数组集合 |
自定义返回数据变量:https://abc.htmltoo.com/thread-45521.htm
四、用法举例
1、调用news模块的全部文章列表数据
http://www.fc2.com/index.php?c=api&m=data2&auth=472869ef85d15227acb937eac8d89243¶m=list action=module module=news
2、调用自定义sql标签
http://www.fc2.com/index.php?c=api&m=data2&auth=472869ef85d15227acb937eac8d89243¶m=list action=sql sql='select * from dr_member'
签名:这个人很懒,什么也没有留下!