POST
好友/朋友圈

获取朋友圈列表

POSThttps://api.xingyapi.com/api/friend/getSnsList

接口用途

用于获取朋友圈列表。

请求说明

请求体使用 JSON 格式。设备相关接口通过 instance_guid 指定设备实例;其他字段说明见参数表。

返回说明

统一响应信封 {ok, code, message, request_id, data};code=0 表示成功,业务数据在 data 字段。

请求参数

字段类型说明
instance_guid必填string星云实例标识(inst_xxxx),标识本次操作的账号
maxIdinteger分页游标或上一页最后一条朋友圈标识;首次查询通常传 0。
limitinteger单次返回数量上限。

请求示例

{
  "instance_guid": "inst_xxxxxxxx",
  "maxId": 0,
  "limit": 5
}

响应字段

字段类型说明
(数组)array结果列表,元素结构如下
[].sidstring朋友圈动态唯一标识。
[].authorVidnumber朋友圈作者用户标识。
[].seqnumber数据序号或版本序列。
[].timenumber服务端响应时间。
[].contentstring朋友圈正文或媒体内容。
[].postIdstring朋友圈发布记录标识。
[].isDeleteboolean动态是否已删除。
[].updateTimenumber更新时间戳。
[].taskSidnumber朋友圈任务标识。
[].visibleTypenumber可见范围类型。
[].poiInfoobject地理位置信息。
[].typenumber类型编号或类型标识;具体枚举以所在对象为准。
[].notifyTimenumber通知时间戳。
[].notifyVidnumber通知对象用户标识。

响应示例

{
  "ok": true,
  "code": 0,
  "message": "success",
  "request_id": "nb_xxxxxxxx",
  "data": [
    {
      "sid": "7667160465557328100",
      "authorVid": 1688858348844282,
      "seq": 1785149906806,
      "time": 1785149906,
      "content": "测下1008",
      "postId": "CAQQ0vOc0wYY+unVz5+AgAMg3e/1zwg=",
      "isDelete": false,
      "updateTime": 1785149906806,
      "taskSid": 0,
      "visibleType": 0,
      "poiInfo": {
        "poiName": "",
        "longitude": "0",
        "latitude": "0",
        "poiId": "",
        "city": "",
        "address": "",
        "country": ""
      },
      "type": 1,
      "notifyTime": 0,
      "notifyVid": 0
    },
    {
      "sid": "7664927572370492494",
      "authorVid": 1688858348844282,
      "seq": 1784630020901,
      "time": 1784630020,
      "content": "测下1",
      "likeList": [
        {
          "vid": 1688858348844282,
          "time": 1010666574
        }
      ],
      "postId": "CAQQhJb90gYY+unVz5+AgAMg06zJ1Qw=",
      "isDelete": false,
      "updateTime": 1784633023291,
      "deleteCommentList": [
        {
          "commentid": 3,
          "fromId": 1688858348844282,
          "sid": "7664927572370492494",
          "time": 1784630322,
          "postid": "CAQQsZj90gYY+unVz5+AgAMgl9vM7gg=",
          "comment": "评论内容1",
          "flag": 3
        }
      ],
      "taskSid": 0,
      "visibleType": 0,
      "poiInfo": {
        "poiName": "",
        "longitude": "0",
        "latitude": "0",
        "poiId": "",
        "city": "",
        "address": "",
        "country": ""
      },
      "type": 1,
      "notifyTime": 0,
      "notifyVid": 0
    },
    {
      "sid": "7660061829184441038",
      "authorVid": 1688858348844282,
      "seq": 1783497126421,
      "time": 1783497126,
      "content": "测下1",
      "postId": "CAQQpYO40gYY+unVz5+AgAMgh7HY6wg=",
      "isDelete": false,
      "updateTime": 1783497126421,
      "taskSid": 0,
      "visibleType": 0,
      "poiInfo": {
        "poiName": "",
        "longitude": "0",
        "latitude": "0",
        "poiId": "",
        "city": "",
        "address": "",
        "country": ""
      },
      "type": 1,
      "notifyTime": 0,
      "notifyVid": 0
    },
    {
      "sid": "7658115100604424498",
      "authorVid": 1688858348844282,
      "seq": 1783043868822,
      "time": 1783043868,
      "content": "测下1",
      "postId": "CAQQnK6c0gYY+unVz5+AgAMg3eaL7A8=",
      "isDelete": false,
      "updateTime": 1783043868822,
      "taskSid": 0,
      "visibleType": 0,
      "poiInfo": {
        "poiName": "",
        "longitude": "0",
        "latitude": "0",
        "poiId": "",
        "city": "",
        "address": "",
        "country": ""
      },
      "type": 1,
      "notifyTime": 0,
      "notifyVid": 0
    },
    {
      "sid": "7658106842289935926",
      "authorVid": 1688858348844282,
      "seq": 1783041945014,
      "time": 1783041945,
      "content": "测下1",
      "postId": "CAQQmJ+c0gYY+unVz5+AgAMgq/Tunws=",
      "isDelete": false,
      "updateTime": 1783041945014,
      "taskSid": 0,
      "visibleType": 0,
      "poiInfo": {
        "poiName": "",
        "longitude": "0",
        "latitude": "0",
        "poiId": "",
        "city": "",
        "address": "",
        "country": ""
      },
      "type": 1,
      "notifyTime": 0,
      "notifyVid": 0
    }
  ]
}

返回接口目录 · 请求规范 · 错误码

在线调试

在控制台中在线测试 API 接口无需编码,快速验证接口效果。

基础信息

Base URL复制
https://api.xingyapi.com
API Key复制
X-Nebula-Key: <API Key>
Content-Type
application/json

联系客服

客服微信二维码
微信号:xingyunbot
扫码或搜索微信号,添加客服获取支持