OkayAPI Docs
API Params
Parameter | Type | Required | Default | Note | Description |
---|---|---|---|---|---|
HTTP_APPKEY | String | Required | MIN: 32 | Common Put Your APPKEY | |
uuid | String | Optaion | MIN: 32;MAX: 32 | UUID,全局唯一用户ID | |
token | String | Optaion | MIN: 64;MAX: 64 | 会话凭证 | |
lastid | Int | Optaion | MIN: 2 | 上次最后阅读的id,默认从最开始一条加载 | |
perpage | Int | Optaion | 20 | MIN: 1;MAX: 100 | 分页数量 |
more_select | ArraySeperated with , | Optaion | 需要返回的更多字段,例如客户端额外添加的自定义字段和小白系统字段。如:more_select=id,uuid |
API Debug
KEY | REQUIRED | VALUE |
---|---|---|
app_key | *Required | |
uuid | Option | |
token | Option | |
lastid | Option | |
perpage | Option | |
more_select | Option |
API Response
KEY | Type | Description |
---|---|---|
err_code | Int | 操作码,0表示成功,正数表示业务失败场景,负数表示系统失败场景 |
err_msg | String | 错误提示信息,err_code非0时参考此提示信息 |
total | Int | 可见朋友圈条数 |
items | Array | 朋友圈列表 |
items[].id | Int | 朋友圈id |
items[].nickname | String | 朋友圈发布者名称 |
items[].moment_content | String | 朋友圈的内容 |
items[].moment_url | String | 朋友圈跳转链接 |
items[].moment_createtime | String | 朋友圈发表时间 |
items[].moment_like | Int | 朋友圈点赞数 |
items[].moment_picture1 | String | 朋友圈图片1 |
items[].moment_picture2 | String | 朋友圈图片2 |
items[].moment_picture3 | String | 朋友圈图片3 |
items[].moment_picture4 | String | 朋友圈图片4 |
items[].moment_picture5 | String | 朋友圈图片5 |
items[].moment_picture6 | String | 朋友圈图片6 |
items[].moment_picture7 | String | 朋友圈图片7 |
items[].moment_picture8 | String | 朋友圈图片8 |
items[].moment_picture9 | String | 朋友圈图片9 |
items[].moment_lat | String | 朋友圈发布纬度 |
items[].moment_lng | String | 朋友圈发布经度 |
items[].moment_place | String | 朋友圈位置描述 |
items[].moreSelect | string/int | 返回的更多的字段 |
HTTP Response Code
HTTP Status Code | Description |
---|---|
Http Status = 200 | Success |
Http Status = 400 | Illegal-Params |
Http Status = 401 | Illegal-Token |
Http Status = 402 | IP-Banned |
Http Status = 404 | API-NOT-Exsits |
Http Status = 406 | Illegal-APPKEY |
Http Status = 407 | APPKEY-Expired-Out |
Http Status = 408 | APPKEY-Busy |
Http Status = 409 | Illegal-Sign |
Http Status = 413 | API-Traffic-NOT-Enough |
Http Status = 415 | API-LOCKED |
Http Status = 500 | Internal-Server-Error |