1.七牛授权接口
url
http://apitest.bjwogan.com/?action=qiniuAuth&memberId=1
返回结果
{
"data": {
"auth": "DArVEOjX4q3t5saEPiNGFiCcae67OztjKq6SR7ZG:QWOhFT9NyVuKtbeSq771vLplvlw=:eyJzY29wZSI6IndvZ2FuIiwiZGVhZGxpbmUiOjE0NjU4MDYwMzB9"
},
"status": 1,
"info": "ok"
}
2.悬赏单发布接口
url
http://apitest.bjwogan.com/?action=saveOneMediaOrder&scope=1&words=words&labels=a&address=address&lng=1&lat=1&money=1&publisher=1&deadline=1999-10-01%2012:21:21
参数
`
private int id;
/**
* 0 全国 , 1周边用户
*/
private int scope;
/**
* 描述
*/
private String words;
/**
* 图片路径 以逗号隔开
*/
private String imgs;
/**
* 标签 以逗号隔开
*/
private String labels;
/**
* 发单地址
*/
private String address;
/**
* 纬度
*/
private float lat;
/**
* 经度
*/
private float lng;
/**
* 赏金 整数
*/
private int money;
/**
* 截止时间
*/
private Date deadline;
/**
* 是否已支付
*/
private short hasPaied;
/**
* 发布悬赏人id
*/
private int publisher; (或者传 memberId 两个参数选其一,有memberId的话以memberId为准)
districtId (地区id)
`
返回结果
{"data":{"mediaOrderId":33},"status":1,"info":"ok"}
3.我的标签接口
url
http://apitest.bjwogan.com/?action=memberLabel&memberId=1
返回结果
说明
hotLabels 热门标签;privateLabels 我的标签
{
"data": {
"hotLabels": [
{
"id": 9,
"content": "不开心"
},
{
"id": 2,
"content": "我也唱一首老汪的歌"
},
{
"id": 4,a
"content": "我要上热门"
},
{
"id": 3,
"content": "晒晒我的端午节"
},
{
"id": 7,
"content": "秒问秒答"
},
{
"id": 6,
"content": "考虑考虑咯"
},
{
"id": 5,
"content": "边玩边瘦"
},
{
"id": 8,
"content": "逗乐"
},
{
"id": 1,
"content": "高考向前冲"
}
],
"privateLabels": [
"aaa",
"aaaaaaaaaa"
]
},
"status": 1,
"info": "ok"
}
4.个人添加标签接口
url
http://apitest.bjwogan.com/?action=insertLabel&memberId=1&label=%E4%BD%A0%E5%A5%BD%E5%90%97
参数
memberId 会员id,label 标签
返回结果
{"data":1,"status":1,"info":"ok"}
5.悬赏单视图接口
url
http://localhost:8080/wogan/?action=getOneMediaOrder&mediaOrderId=1& memberId=1
参数
mediaOrderId 悬赏单id,memberId
返回结果
hasFocused 是否关注 1是 否 "hasPublished":4 0是没发过,大于0 是发过
{
"data": {
"id": 7,
"scope": 0,
"words": "aaa",
"imgs": null,
"labels": "a,b",
"address": null,
"lat": 0,
"lng": 0,
"money": 1,
"deadline": null,
"hasPaied": 1,
"publisher": 1,
"createTime": 1465800291000,
"nickname": "微爱吴江行",
"portrait": "/2015-09-10/bpqiipwuah.jpg",
"hasFocused":1,
"hasPublished":4
},
"status": 1,
"info": "ok"
}
6.新首页视图接口(无悬赏)
url
http://localhost:8080/wogan/?action=mainPageOrderView&memberId=1
参数
page 页码 ,pageSize 一页几个 ,memberId 会员id
返回结果
说明
status 0 不可接,1可接, sex 1 男 ,2 女
{
"data": [
{
"id": 1000,
"lat": 39.763054,
"lng": 116.33138,
"publisher": 10,
"money": 0,
"publishTime": 1435208867,
"deadline": 1435208858,
"subscriber": 0,
"words": "你看",
"imgs": ",,,",
"status": 0,
"nickname": "华华",
"portrait": "/2015-10-10/opxalybflt.jpg",
"sex":1
}
],
"status": 1,
"info": "ok"
}
7.删除动态接口
url
http://apitest.bjwogan.com/?action=deleteDynamic&dynamicId=2
返回结果
{"data":1,"status":1,"info":"ok"}
8.获取热门标签接口
url
http://localhost:8080/wogan/?action=jdLabels&memberId=1
返回结果
{
"data": [
{
"id": 9,
"content": "不开心"
}
],
"status": 1,
"info": "ok"
}
9.动态排行接口
url
http://localhost:8080/wogan/?action=dynamicViewRank&mediaOrderId=7
返回结果
id 动态id, memberId 会员id, createTime 创建世界, words 动态内容, imgUrls 动态图片URL,多个以逗号隔开 videoUrl 动态视频URL videoPictureUrl 视频缩略图URL mediaOrderId 悬赏单id praise 赞个数 nickname 昵称 portrait 头像url rank 排名 money 分得的钱 hasPraised 0 没 ,1 赞过
{
"data": [
{
"id": 4,
"memberId": 2,
"createTime": 1467772919000,
"words": "1",
"imgUrls": "http://phototest.bjwogan.com/image//2015-11-26/fhqqedgubl.jpg",
"videoUrl": "",
"videoPictureUrl": "",
"mediaOrderId": 1,
"praise": 7,
"nickname": "未命名",
"portrait": "http://phototest.bjwogan.com/image/uploadfiles/58.png",
"rank": 1,
"labels": "",
"money": 30.000002,
"hasPraised": 0
},
],
"status": 1,
"info": "ok"
}
10.所有动态接口
url
http://localhost:8080/wogan/?action=dynamicViewAll&mediaOrderId=7
返回结果
{
"data": [
{
"id": 2,
"memberId": 2,
"createTime": 1465980797000,
"words": "hello",
"imgUrls": "2",
"videoUrl": "2",
"videoPictureUrl": "2",
"mediaOrderId": 7,
"praise": 2,
"nickname": "未命名",
"portrait": "uploadfiles/58.png"
},
{
"id": 1,
"memberId": 1,
"createTime": 1465978102000,
"words": "你好",
"imgUrls": "1",
"videoUrl": "1",
"videoPictureUrl": "1",
"mediaOrderId": 7,
"praise": 1,
"nickname": "微爱吴江行",
"portrait": "/2015-09-10/bpqiipwuah.jpg"
}
],
"status": 1,
"info": "ok"
}
11.动态详情接口
url
http://apitest.bjwogan.com/?action=dynamicView&dynamicId=1&memberId=1
返回结果
{
"data": {
"id": 1,
"memberId": 1,
"createTime": 1467448602000,
"words": "1",
"imgUrls": "http://phototest.bjwogan.com/image//2015-11-26/fhqqedgubl.jpg",
"videoUrl": "",
"videoPictureUrl": "",
"mediaOrderId": 1,
"praise": 2,
"nickname": "微爱吴江行",
"portrait": "/2015-09-10/bpqiipwuah.jpg",
"rank": 0,
"labels": "a,b",
"hasPraised": 0
},
"status": 1,
"info": "ok"
}
12.收藏悬赏单接口
url
http://localhost:8080/wogan/?action=collectMedia&mediaId=1&memberId=10
返回结果
{"data":1,"status":1,"info":"ok"}
13.取消收藏悬赏单接口
url
http://localhost:8080/wogan/?action=deleteCollectMedia&mediaId=1&memberId=10
返回结果
{"data":1,"status":1,"info":"ok"}
14.收藏悬赏单列表接口
url
http://localhost:8080/wogan/?action=collectMediaOrderView&memberId=1
返回结果
{
"data": [
{
"id": 1,
"scope": 1,
"words": null,
"imgs": null,
"labels": null,
"address": null,
"lat": 1,
"lng": 1,
"money": 1,
"deadline": 1468378047000,
"hasPaied": 1,
"publisher": 1,
"status": 0,
"createTime": 1465786047000,
"nickname": "微爱吴江行",
"portrait": "/2015-09-10/bpqiipwuah.jpg",
"hasFocused": 0
}
],
"status": 1,
"info": "ok"
}
15.删除动态接口
url
http://localhost:8080/wogan/?action=deleteDynamic&dynamicId=1
返回结果
{"data":1,"status":1,"info":"ok"}
16.主页接口(含悬赏单)
url
http://apitest.bjwogan.com/?action=mainPage&memberId=17598
返回结果
{
"data": [
{
"mediaOrderId": 0,
"orderId": 11,
"lat": 39.763042,
"lng": 116.33123,
"publisher": 2272,
"money": 10,
"type": 2,
"scope": 0,
"createTime": 1467706390000,
"deadline": 1467707590000,
"hasPaied": 1,
"nickname": "Zero",
"portrait": "http://phototest.bjwogan.com/image//2016-03-20/quvbzoujxk.jpg",
"subscriber": 0,
"status": 0,
"words": null,
"imgs": null
}
],
"status": 1,
"info": "ok"
}
17.我参与的悬赏接口
url
http://localhost:8080/wogan/?action=joinedMediaOrderView&memberId=2
参数
page 页码 ,pageSize 一页几个 ,memberId 会员id
返回结果
{
"data": [
{
"id": 5, (动态id)
"memberId": 0,
"createTime": null,
"words": "1",(悬赏单内容)
"imgUrls": "http://phototest.bjwogan.com/image//2015-11-26/fhqqedgubl.jpg", (动态图片)
"videoUrl": "", (动态视频)
"videoPictureUrl": "", (动态视频截图)
"mediaOrderId": 2, (悬赏单id)
"praise": 0,
"nickname": "",
"portrait": "",
"rank": 2, (排名)
"labels": "",
"money": 0.25, (奖金)
"hasPraised": 0
}
],
"status": 1,
"info": "ok"
}
18.我发布的悬赏接口
url
http://localhost:8080/wogan/?action=publishedMediaOrderView&memberId=1
参数
page 页码 ,pageSize 一页几个 ,memberId 会员id
返回结果
{
"data": [
{
"dynamicCount":0,
"dynamicViewList": [
{
"id": 2,
"memberId": 2,
"createTime": 1465980797000,
"words": "hello",
"imgUrls": "2",
"videoUrl": "2",
"videoPictureUrl": "2",
"mediaOrderId": 7,
"praise": 2,
"nickname": "未命名",
"portrait": "uploadfiles/58.png"
},
{
"id": 1,
"memberId": 1,
"createTime": 1465978102000,
"words": "你好",
"imgUrls": "1",
"videoUrl": "1",
"videoPictureUrl": "1",
"mediaOrderId": 7,
"praise": 1,
"nickname": "微爱吴江行",
"portrait": "/2015-09-10/bpqiipwuah.jpg"
}
],
"mediaOrderView": {
"id": 7,
"scope": 0,
"words": "aaa",
"imgs": "1",
"labels": "a,b",
"address": "1",
"lat": 0,
"lng": 0,
"money": 1,
"deadline": 1468378047000,
"hasPaied": 1,
"publisher": 1,
"status": 0,
"createTime": 1465800548000,
"nickname": null,
"portrait": null,
"hasFocused": 0
}
}
],
"status": 1,
"info": "ok"
}
19.点赞接口
url
http://apitest.bjwogan.com/?action=dynamicPraise&dynamicId=1&memberId=2
返回结果(中间是正确返回结果,其它是错误提示)
{"data":null,"status":0,"info":"所属悬赏活动已结束"}
{"data":1,"status":1,"info":"ok"}
{"data":null,"status":0,"info":"已赞过"}
20.获取所有行业接口
url
http://apitest.bjwogan.com/?action=getAllTrade
{"data":[{"id":1,"tradeName":"家政","tradeIcon":null},{"id":2,"tradeName":"跑腿","tradeIcon":null}],"status":1,"info":"ok"}
21.申请成为金牌商家/活儿宝接口
url
http://apitest.bjwogan.com/?action=goToGold&memberId=1&type=1&serviceImg=http://123.com&serviceName=fafea&serviceDetail=feaf&tradeId=1&about=fagdsfa7&businessNo=123456789&businessImg=http://fff.com&realName=刘鑫&cardNo=333333333&cardFace=fdasfdsafdsaf&cardCon=feasfes
{"data":1,"status":1,"info":"ok"}
22.获取附近金牌商家/活儿宝接口
url
http://apitest.bjwogan.com/?action=getNearGoldObj&lat=31.166801&lon=120.694046&type=1&page=1&pageSize=10
{
"data": [
{
"id": 0,
"totalCommentedStar": 8,
"memberId": 2,
"tradeId": null,
"serviceImg": "http://phototest.bjwogan.com/img/orderImg/201607/2087b94a92ce4fd498ebfa50850777df.jpg",
"serviceName": "匿名",
"businessNo": null,
"businessImg": null,
"cardNo": null,
"cardFace": null,
"cardCon": null,
"state": null,
"type": null,
"realName": "破罐子一",
"nickname": "未命名",
"about": "明",
"portrait": "uploadfiles/58.png",
"tradeName": "家政",
"serviceDetail": "给您",
"sex": 1,
"updateTime": null
}],
"status": 1,
"info": "ok"
}
23.举报接口
url
http://apitest.bjwogan.com/?action=report&type=1&id=2
参数
type 举报类型 类型: 1 悬赏单子,2 动态 id 悬赏id 或者 动态id
{"data":1,"status":1,"info":"ok"}
24.查询金牌商家/活儿宝申请进度
url
http://apitest.bjwogan.com/wogan/?action=getGoldVerify&memberId=1
参数
id; memberId 用户ID serviceImg 服务图片 serviceName 服务名称 businessNo 营业执照编号 businessImg 营业执照 cardNo 身份证号 cardFace 身份证正面 cardCon 身份证反面 state 默认0为申请中,1为申请通过,2为拒绝申请,3为锁定,4为解锁 type 默认为1,1为金牌商家,2为金牌活儿宝 realName 真实姓名 about 关于自己介绍 portrait 头像 tradeName 行业名称 serviceDetail 服务详情 sex 1男2女 tradeId 行业id
{
"data": {
"id": 1,
"memberId": 1,
"serviceImg": "http://media.babilama.com/FtucMN8GApP7QD9NPkEaNaRI-2C4",
"serviceName": "fafea",
"businessNo": "123456789",
"businessImg": "http://media.babilama.com/FtucMN8GApP7QD9NPkEaNaRI-2C4",
"cardNo": "333333333",
"cardFace": "fdasfdsafdsafcardCon=feasfes",
"cardCon": null,
"state": 1,
"type": 1,
"realName": "刘鑫",
"about": "fagdsfa7",
"portrait": null,
"tradeName": "家政",
"serviceDetail": "feaf",
"sex": 1,
"tradeId":1
},
"status": 1,
"info": "ok"
}
25.取消点赞接口
url
http://apitest.bjwogan.com/?action=dynamicPraiseCancel&dynamicId=1&memberId=1
返回结果(中间是正确返回结果,其它是错误提示)
{"data":1,"status":1,"info":"ok"}
26.活宝商家资料重新编辑接口
url
http://apitest.bjwogan.com/?action=updateGoldObj&serviceName=hello&id=1
返回结果
{"data":1,"status":1,"info":"ok"}
27.活宝商家撤销接口
url
http://apitest.bjwogan.com/?action=goldCancel&memberId=1
返回结果
{"data":1,"status":1,"info":"ok"}
28.获取服务电话号码接口
url
http://apitest.bjwogan.com/?action=getServiceNum&districtId=1
参数
districtId 地区id
返回结果
{"data":"18911395145","status":1,"info":"ok"}