接口路径(新):http://api.okayapi.com/api/App/Market_Minimoments/PostMoment
接口路径(旧):http://api.okayapi.com/?s=App.Market_Minimoments.PostMoment
接口描述: 接口超市-迷你朋友圈-发布朋友圈,使用前请先安装迷你朋友圈插件。
Parameter | Type | Required | Default | Note | Description |
---|---|---|---|---|---|
HTTP_APPKEY | String | Required | MIN: 32 | Common Put Your APPKEY | |
uuid | String | Required | MIN: 32;MAX: 32 | UUID,全局唯一用户ID | |
token | String | Required | MIN: 64;MAX: 64 | 会话凭证 | |
moment_content | String | Optaion | 发布的内容 | ||
moment_nickname | String | Required | MAX: 100 | 朋友圈用户名 | |
moment_access | Int | Required | MIN: 0;MAX: 2 | 朋友圈的权限 | |
moment_url | String | Optaion | 朋友圈的跳转链接 | ||
moment_picture1 | String | Optaion | 朋友圈的图片1链接 | ||
moment_picture2 | String | Optaion | 朋友圈的图片2链接 | ||
moment_picture3 | String | Optaion | 朋友圈的图片3链接 | ||
moment_picture4 | String | Optaion | 朋友圈的图片4链接 | ||
moment_picture5 | String | Optaion | 朋友圈的图片5链接 | ||
moment_picture6 | String | Optaion | 朋友圈的图片6链接 | ||
moment_picture7 | String | Optaion | 朋友圈的图片7链接 | ||
moment_picture8 | String | Optaion | 朋友圈的图片8链接 | ||
moment_picture9 | String | Optaion | 朋友圈的图片9链接 | ||
moment_lat | String | Optaion | 朋友圈的纬度 | ||
moment_lng | String | Optaion | 朋友圈的经度 | ||
moment_place | String | Optaion | 朋友圈的位置描述 | ||
more_data | ArrayJSON Format | Optaion | 额外需要添加的数据,即客户端自定义添加的额外字段,需要JSON编码后传递。格式:data={"字段名1":"字段值1","字段名2":"字段值2"...},系统保留表字段(id, uuid, add_time, update_time, ext_data)将会被忽略。JSON在线解析及格式化验证 |
请求:
{OKAYAPI_API_HOST}/?s=App.Market_Minimoments.postMoment&app_key={你的app_key}&sign={动态签名}&uuid={uuid}&token={token}&moment_nickname={朋友圈发布者}&moment_content={朋友圈内容}&moment_access={朋友圈查看权限}&moment_url={朋友圈跳转链接}&moment_picture1={朋友圈图片1}
返回:
{
"ret": 200,
"data": {
"err_code": 0,
"err_msg": "",
"id": 38
},
"msg": "小白开放接口:App.Market_Minimoments.postMoment"
}
<?php
// 引入文件
require_once dirname(__FILE__) . '/OkayApiClient.php';
// 调用小白开放接口
$uuid='6C227C5775E547105BBD3D49756C850A';
$token='7550CABB8135AE8726D65F41E7279E616B77971FAA9AB9D2A212A50CEF69EFD1';
$rs = OkayApiClient::request('App.Market_Minimoments.postMoment',array('uuid'=>$uuid,'token'=>$token,
'nickname'=>'test','content'=>'发朋友圈啦','access'=>'0','url'=>'http://api.okayapi.com/docs.php'));
// 输出结果
print_r($rs);
/*
Array
(
[ret] => 200
[data] => Array
(
[err_code] => 0
[err_msg] =>
[id] => 26
)
[msg] => 小白开放接口:App.Market_Minimoments.postMoment
)
*/
KEY | Type | Description |
---|---|---|
err_code | Int | 操作码,0表示成功,正数表示业务失败场景,负数表示系统失败场景 |
err_msg | String | 错误提示信息,err_code非0时参考此提示信息 |
id | Int | 新发表的朋友圈ID |
接口路径(新):http://api.okayapi.com/api/App/Market_Minimoments/ShowMoment
接口路径(旧):http://api.okayapi.com/?s=App.Market_Minimoments.ShowMoment
接口描述: 接口超市-迷你朋友圈-查看朋友圈,使用前请先安装迷你朋友圈插件。
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 |
请求:
{OKAYAPI_API_HOST}/?s=App.Market_Minimoments.showMoment&app_key={你的app_key}&sign={动态签名}&lastid={上次查看的id}&perpage={每次显示多少条}&uuid={uuid}&token={token}
返回:
{
"ret": 200,
"data": {
"err_code": 0,
"err_msg": "",
"total": 28,
"items": [
{
"id": 1,
"moment_nickname": "sHuXnHs",
"moment_content": "第一条朋友圈",
"moment_url": null,
"moment_createtime": "2019-02-15 16:40:35",
"moment_like": "3",
"moment_picture1": null,
"moment_picture2": null,
"moment_picture3": null,
"moment_picture4": null,
"moment_picture5": null,
"moment_picture6": null,
"moment_picture7": null,
"moment_picture8": null,
"moment_picture9": null,
"moment_lat": null,
"moment_lng": null,
"moment_place": null
}
]
},
"msg": "小白开放接口:App.Market_Minimoments.showMoment"
}
<?php
// 引入文件
require_once dirname(__FILE__) . '/OkayApiClient.php';
// 调用小白开放接口
$uuid='6C227C5775E547105BBD3D49756C850A';
$token='7550CABB8135AE8726D65F41E7279E616B77971FAA9AB9D2A212A50CEF69EFD1';
$rs = OkayApiClient::request('App.Market_Minimoments.showMoment',array('uuid'=>$uuid,'token'=>$token,'lastid'=>'10','perpage'=>'2'));
// 输出结果
print_r($rs);
/*
Array
(
[ret] => 200
[data] => Array
(
[err_code] => 0
[err_msg] =>
[total] => 22
[items] => Array
(
[0] => Array ( [id] => 9 [moment_nickname]=>sHuXnHs [moment_content] => 我在发朋友圈 [moment_url] => [moment_createtime] => 2019-02-15 20:18:34 [moment_like] => 0 [moment_picture1]=> [moment_picture2]=> [moment_picture3]=> [moment_picture4]=> [moment_picture5]=> [moment_picture6]=> [moment_picture7]=> [moment_picture8]=> [moment_picture9]=> [moment_lat]=> [moment_lng)=> [moment_place]=> )
[1] => Array ( [id] => 8 [moment_nickname]=>sHuXnHs [moment_content] => 我在发朋友圈 [moment_url] => [moment_createtime] => 2019-02-15 20:18:34 [moment_like] => 0 [moment_picture1]=> [moment_picture2]=> [moment_picture3]=> [moment_picture4]=> [moment_picture5]=> [moment_picture6]=> [moment_picture7]=> [moment_picture8]=> [moment_picture9]=> [moment_lat]=> [moment_lng)=> [moment_place]=> )
)
)
[msg] => 小白开放接口:App.Market_Minimoments.showMoment
)
*/
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://api.okayapi.com/api/App/Market_Minimoments/DeleteMoment
接口路径(旧):http://api.okayapi.com/?s=App.Market_Minimoments.DeleteMoment
接口描述: 接口超市-迷你朋友圈-删除朋友圈,使用前请先安装迷你朋友圈插件。
Parameter | Type | Required | Default | Note | Description |
---|---|---|---|---|---|
HTTP_APPKEY | String | Required | MIN: 32 | Common Put Your APPKEY | |
uuid | String | Required | MIN: 32;MAX: 32 | UUID,全局唯一用户ID | |
token | String | Required | MIN: 64;MAX: 64 | 会话凭证 | |
id | String | Required | 朋友圈id |
请求:
{OKAYAPI_API_HOST}/?s=App.Market_Minimoments.deleteMoment&app_key={你的app_key}&sign={动态签名}&uuid={uuid}&token={token}&id={删除的朋友圈id}
返回:
{
"ret": 200,
"data": {
"err_code": 0,
"err_msg": ""
},
"msg": "小白开放接口:App.Market_Minimoments.deleteMoment"
}
<?php
// 引入文件
require_once dirname(__FILE__) . '/OkayApiClient.php';
// 调用小白开放接口
$uuid='6C227C5775E547105BBD3D49756C850A';
$token='7550CABB8135AE8726D65F41E7279E616B77971FAA9AB9D2A212A50CEF69EFD1';
$rs = OkayApiClient::request('App.Market_Minimoments.deleteMoment',array('uuid'=>$uuid,'token'=>$token,'id'=>'26'));
// 输出结果
print_r($rs);
/*
Array
(
[ret] => 200
[data] => Array
(
[err_code] => 0
[err_msg] =>
)
[msg] => 小白开放接口:App.Market_Minimoments.deleteMoment
)
*/
KEY | Type | Description |
---|---|---|
err_code | Int | 操作码,0表示成功,正数表示业务失败场景,负数表示系统失败场景 |
err_msg | String | 错误提示信息,err_code非0时参考此提示信息 |
接口路径(新):http://api.okayapi.com/api/App/Market_Minimoments/GiveLike
接口路径(旧):http://api.okayapi.com/?s=App.Market_Minimoments.GiveLike
接口描述: 接口超市-迷你朋友圈-朋友圈点赞,使用前请先安装迷你朋友圈插件。
Parameter | Type | Required | Default | Note | Description |
---|---|---|---|---|---|
HTTP_APPKEY | String | Required | MIN: 32 | Common Put Your APPKEY | |
id | String | Required | 朋友圈id |
请求:
{OKAYAPI_API_HOST}/?s=App.Market_Minimoments.giveLike&app_key={你的app_key}&sign={动态签名}&uuid={uuid}&token={token}&id={点赞的朋友圈id}
返回:
{
"ret": 200,
"data": {
"err_code": 0,
"err_msg": ""
},
"msg": "小白开放接口:App.Market_Minimoments.giveLike"
}
<?php
// 引入文件
require_once dirname(__FILE__) . '/OkayApiClient.php';
// 调用小白开放接口
$rs = OkayApiClient::request('App.Market_Minimoments.giveLike',array('id'=>'25'));
// 输出结果
print_r($rs);
/*
Array
(
[ret] => 200
[data] => Array
(
[err_code] => 0
[err_msg] =>
)
[msg] => 小白开放接口:App.Market_Minimoments.giveLike
)
*/
// 调用小白开放接口,id不存在(已删除)
$rs1 = OkayApiClient::request('App.Market_Minimoments.giveLike',array('id'=>'26'));
// 输出结果
print_r($rs1);
/*
Array
(
[ret] => 200
[data] => Array
(
[err_code] => 1
[err_msg] => 该朋友圈id不存在
)
[msg] => 小白开放接口:App.Market_Minimoments.giveLike
)
*/
KEY | Type | Description |
---|---|---|
err_code | Int | 操作码,0表示成功,正数表示业务失败场景,负数表示系统失败场景 |
err_msg | String | 错误提示信息,err_code非0时参考此提示信息 |
接口路径(新):http://api.okayapi.com/api/App/Market_Minimoments/GetMyMoment
接口路径(旧):http://api.okayapi.com/?s=App.Market_Minimoments.GetMyMoment
接口描述: 接口超市-迷你朋友圈-获取我的朋友圈,使用前请先安装迷你朋友圈插件。
Parameter | Type | Required | Default | Note | Description |
---|---|---|---|---|---|
HTTP_APPKEY | String | Required | MIN: 32 | Common Put Your APPKEY | |
uuid | String | Required | MIN: 32;MAX: 32 | UUID,全局唯一用户ID | |
token | String | Required | MIN: 64;MAX: 64 | 会话凭证 | |
page | Int | Optaion | 1 | MIN: 1 | 第几页 |
perpage | Int | Optaion | 20 | MIN: 1;MAX: 100 | 分页数量 |
more_select | ArraySeperated with , | Optaion | 需要返回的更多字段,例如客户端额外添加的自定义字段和小白系统字段。如:more_select=id,uuid |
请求:
{OKAYAPI_API_HOST}/?s=App.Market_Minimoments.getMyMoment&app_key={你的app_key}&sign={动态签名}&page={第几页}&perpage={每次显示多少条}&uuid={uuid}&token={token}
返回:
{
"ret": 200,
"data": {
"err_code": 0,
"err_msg": "",
"total": 13,
"items": [
{
"id": 38,
"moment_nickname": "test",
"moment_content": "发朋友圈啦",
"moment_url": "http://api.okayapi.com/docs.php",
"moment_createtime": "2019-02-20 00:02:01",
"moment_like": "0",
"moment_picture1": null,
"moment_picture2": null,
"moment_picture3": null,
"moment_picture4": null,
"moment_picture5": null,
"moment_picture6": null,
"moment_picture7": null,
"moment_picture8": null,
"moment_picture9": null,
"moment_lat": null,
"moment_lng": null,
"moment_place": null
},
{
"id": 37,
"moment_nickname": "test",
"moment_content": "发朋友圈啦",
"moment_url": "http://api.okayapi.com/docs.php",
"moment_createtime": "2019-02-18 10:27:10",
"moment_like": "0",
"moment_picture1": null,
"moment_picture2": null,
"moment_picture3": null,
"moment_picture4": null,
"moment_picture5": null,
"moment_picture6": null,
"moment_picture7": null,
"moment_picture8": null,
"moment_picture9": null,
"moment_lat": null,
"moment_lng": null,
"moment_place": null
},
{
"id": 36,
"moment_nickname": "test",
"moment_content": "发朋友圈啦",
"moment_url": "http://api.okayapi.com/docs.php",
"moment_createtime": "2019-02-18 10:26:50",
"moment_like": "0",
"moment_picture1": null,
"moment_picture2": null,
"moment_picture3": null,
"moment_picture4": null,
"moment_picture5": null,
"moment_picture6": null,
"moment_picture7": null,
"moment_picture8": null,
"moment_picture9": null,
"moment_lat": null,
"moment_lng": null,
"moment_place": null
},
{
"id": 35,
"moment_nickname": "test",
"moment_content": "发朋友圈啦",
"moment_url": "http://api.okayapi.com/docs.php",
"moment_createtime": "2019-02-18 10:17:32",
"moment_like": "0",
"moment_picture1": null,
"moment_picture2": null,
"moment_picture3": null,
"moment_picture4": null,
"moment_picture5": null,
"moment_picture6": null,
"moment_picture7": null,
"moment_picture8": null,
"moment_picture9": null,
"moment_lat": null,
"moment_lng": null,
"moment_place": null
}
]
},
"msg": "小白开放接口:App.Market_Minimoments.getMyMoment"
}
<?php
// 引入文件
require_once dirname(__FILE__) . '/OkayApiClient.php';
// 调用小白开放接口
$uuid='6C227C5775E547105BBD3D49756C850A';
$token='7550CABB8135AE8726D65F41E7279E616B77971FAA9AB9D2A212A50CEF69EFD1';
$rs = OkayApiClient::request('App.Market_Minimoments.getMyMoment',array('uuid'=>$uuid,'token'=>$token,'page'=>'1','perpage'=>'2'));
// 输出结果
print_r($rs);
/*
Array
(
[ret] => 200
[data] => Array
(
[err_code] => 0
[err_msg] =>
[total] => 2
[items] => Array
(
[0] => Array ( [id] => 2 [moment_nickname]=>sHuXnHs [moment_content] => 第二条朋友圈 [moment_url] => [moment_createtime] => 2019-02-15 19:27:35 [moment_like] => 0 [moment_picture1]=> [moment_picture2]=> [moment_picture3]=> [moment_picture4]=> [moment_picture5]=> [moment_picture6]=> [moment_picture7]=> [moment_picture8]=> [moment_picture9]=> [moment_lat]=> [moment_lng)=> [moment_place]=> )
[1] => Array ( [id] => 1 [moment_nickname]=>sHuXnHs [moment_content] => 第一条朋友圈 [moment_url] => [moment_createtime] => 2019-02-15 16:40:35 [moment_like] => 3 [moment_picture1]=> [moment_picture2]=> [moment_picture3]=> [moment_picture4]=> [moment_picture5]=> [moment_picture6]=> [moment_picture7]=> [moment_picture8]=> [moment_picture9]=> [moment_lat]=> [moment_lng)=> [moment_place]=> )
)
)
[msg] => 小白开放接口:App.Market_Minimoments.getMyMoment
)
*/
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://api.okayapi.com/api/App/Market_Minimoments/SearchMoment
接口路径(旧):http://api.okayapi.com/?s=App.Market_Minimoments.SearchMoment
接口描述: 接口超市-迷你朋友圈-搜索朋友圈,根据搜索条件搜索朋友圈。注意,游客只能搜索权限为“全部”的朋友圈,登录用户可额外搜索“登陆可见”,会员自己可额外搜索“仅自己可见”的。使用前请先安装迷你朋友圈插件。
Parameter | Type | Required | Default | Note | Description |
---|---|---|---|---|---|
HTTP_APPKEY | String | Required | MIN: 32 | Common Put Your APPKEY | |
moment_nickname | String | Optaion | 昵称,精确匹配。注意,如果搜索指定的昵称,将不会显示当前登录用户的朋友圈,并且只会显示该昵称下开放的朋友圈。 | ||
moment_content | String | Optaion | 朋友圈内容,支持模糊匹配 | ||
moment_place | String | Optaion | 位置描述,支持模糊匹配 | ||
min_moment_like | Int | Optaion | 0 | MIN: 0 | 最小点赞数 |
max_moment_like | Int | Optaion | 0 | MIN: 0 | 最大点赞数,为0时不过滤。区间判断原则:前等后不等。即小于且不等于最大值。 |
min_moment_lat | Float | Optaion | 0.0 | 最小纬度 | |
max_moment_lat | Float | Optaion | 0.0 | 最小纬度,为0时不过滤。区间判断原则:前等后不等。即小于且不等于最大值。 | |
min_moment_lng | Float | Optaion | 0.0 | 最小经度 | |
max_moment_lng | Float | Optaion | 0.0 | 最小经度,为0时不过滤。区间判断原则:前等后不等。即小于且不等于最大值。 | |
min_moment_createtime | Date | Optaion | 0 | 开始发布时间,格式时间戳,如:1565518810,为空时不过滤。 | |
max_moment_createtime | Date | Optaion | 0 | 结束发布时间,格式为时间戳,为空时不过滤。区间判断原则:前等后不等。即小于且不等于结束时间。 | |
more_select | ArraySeperated with , | Optaion | 需要返回的更多字段,例如客户端额外添加的自定义字段和小白系统字段。如:more_select=id,uuid | ||
page | Int | Optaion | 1 | MIN: 1 | 第几页 |
perpage | Int | Optaion | 20 | MIN: 1;MAX: 1000 | 分页数量 |
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 | 返回的更多的字段 |
Power by OkayAPI.com Contact us (WA: okayapi OR Email: chanzonghuang@gmail.com).
Timezone: America/New_York May/09/2025 03:21:40