K吧

获取K吧列表

接口调用说明:

GET https://lxapi.lexiangla.com/cgi-bin/v1/teams

参数说明:

支持分页参数和排序:(通用说明?

参数 是否必须 默认值 说明
sort -created_at 排序参数,支持created_at顺序或倒序,默认倒序

SDK封装方法使用示例:

$Lxapi = new \Lexiangla\Openapi\Api(AppKey, AppSecret);
$response = $Lxapi->get('surveys', [
    'page'=> 1,
    'per_page' => 3,
    //'sort' => 'created_at',
]);

响应document

200 OK 状态码
{
    "data": [
        {
            "type": "team", 
            "id": "uuid1", 
            "attributes": {
                "name": "动漫吧", 
                "code": "k100022"
            }
        }, 
        {
            "type": "team", 
            "id": "uuid2", 
            "attributes": {
                "name": "追剧吧", 
                "code": "k100020"
            }
        }, 
        {
            "type": "team", 
            "id": "uuid3", 
            "attributes": {
                "name": "推理吧", 
                "code": "k100019"
            }
        }
    ], 
    "links": {
        "first": "https://lxapi.lexiangla.com/cgi-bin/v1/teams?page=1", 
        "last": "https://lxapi.lexiangla.com/cgi-bin/v1/teams?page=1", 
        "prev": null, 
        "next": null
    }, 
    "meta": {
        "current_page": 1, 
        "from": 1, 
        "last_page": 1, 
        "path": "https://lxapi.lexiangla.com/cgi-bin/v1/teams", 
        "per_page": 20, 
        "to": 3, 
        "total": 3
    }
}