商品详情页内容.md
16.1 KB
1、提供给商品详情页的接口
提供给商品详情页的接口, 响应内容总数和详情页内容封面图=app.grass.simpleProductArticle
请求参数
参数名称 | 参数类型 | 可否为空 | 示例 | 默认值 | 备注 |
---|---|---|---|---|---|
uid | Integer | 是 | 1 | 1 | 用户uid |
productSkn | Integer | 否 | 商品skn | ||
productType | Integer | 否 | 商品类型, 1 有货商品 2 ufo商品 |
响应
code为200即为成功。 响应JSON格式如下所示:
{
"alg": "SALT_MD5",
"code": 200,
"data": {
"list": [
{
"articleId": 1410330,
"coverImage": "https://imgsocial.yohobuy.com/grassImg/2019/10/16/15/018bfd9c38db7c9c81724f47abf8fd4856.jpg?imageView2/{mode}/w/{width}/h/{height}",
"dataType": 1,
"identityAuthStatus": "N",
"imageHeight": "1080",
"imageWidth": "1080",
"sort": 1 /1 笔记 、4 视频
},
{
"articleId": 1410318,
"coverImage": "https://imgsocial.yohobuy.com/grassImg/2019/10/14/09/0141add6b074cdb9181132f90d7616ea06.jpg?imageView2/{mode}/w/{width}/h/{height}",
"dataType": 1,
"identityAuthStatus": "N",
"imageHeight": "1080",
"imageWidth": "1080",
"sort": 1
},
{
"articleId": 1410314,
"coverImage": "https://imgsocial.yohobuy.com/grassImg/2019/10/12/18/01dfee87d6d045e718806b0d69393a4f01.jpg?imageView2/{mode}/w/{width}/h/{height}",
"dataType": 1,
"identityAuthStatus": "N",
"imageHeight": "1080",
"imageWidth": "1080",
"sort": 1
},
{
"articleId": 141054,
"coverImage": "https://imgsocial.yohobuy.com/grassImg/2019/05/14/16/01bfbf15cea3eeabce5a880090c6ac0fc1.jpg?imageView2/{mode}/w/{width}/h/{height}",
"dataType": 1,
"identityAuthStatus": "N",
"imageHeight": "1080",
"imageWidth": "1080",
"sort": 1
},
{
"articleId": 140846,
"coverImage": "http://img12.static.yhbimg.com/grassImg/2019/04/25/10/02a95099a09d901966f1b806c70af3db7a.jpg?imageView2/{mode}/w/{width}/h/{height}",
"dataType": 1,
"identityAuthStatus": "N",
"imageHeight": "400",
"imageWidth": "400",
"sort": 1
},
{
"articleId": 140740,
"coverImage": "http://img10.static.yhbimg.com\\grassImg/2019/03/14/10/01eeb4e419c8e3026bf223ce3e9adbbe4a.jpg?imageView2/{mode}/w/{width}/h/{height}",
"dataType": 1,
"identityAuthStatus": "N",
"imageHeight": "1",
"imageWidth": "1",
"sort": 1
},
{
"articleId": 140434,
"coverImage": "http://img11.static.yhbimg.com/grassImg/2019/03/12/16/01029a6b1926c8b765d89c0685a57689af.933452.jpg?imageView2/{mode}/w/{width}/h/{height}",
"dataType": 1,
"identityAuthStatus": "N",
"imageHeight": "1334",
"imageWidth": "750",
"sort": 1
},
{
"articleId": 140418,
"coverImage": "http://img10.static.yhbimg.com/grassImg/2019/03/12/14/01a1aeb8c1520766753de5834eab5ec009.jpg?imageView2/{mode}/w/{width}/h/{height}",
"dataType": 1,
"identityAuthStatus": "N",
"imageHeight": "400",
"imageWidth": "400",
"sort": 1
}
],
"total": 8
},
"md5": "f6319404019248097fa09a0aac559665",
"message": "操作成功"
}
2、全部内容接口
全部内容接口, 响应同瀑布流(app.grass.productArticleList)
请求参数
参数名称 | 参数类型 | 可否为空 | 示例 | 默认值 | 备注 |
---|---|---|---|---|---|
uid | Integer | 是 | 1 | 1 | 用户uid |
productSkn | Integer | 否 | 商品skn | ||
productType | Integer | 否 | 商品类型, 1 有货商品 2 ufo商品 | ||
page | Integer | 否 | 1 | 1 | 页码 |
limit | Integer | 否 | 1 | 10 | 每页显示条数 |
lastedTime | String | 是 | "1548905701041" | null | 第一次请求或者刷新列表时不传, 接口会返回此字段,后续分页请求带上该字段值 |
响应
code为200即为成功。 响应JSON格式如下所示:
{
"code": 200,
"data":
{
"lastedTime": "1551085098434",
"list": [
{
"articleId": 140090,
"articleType": 1,
"authStatus": 1,
"authorHeadIco": "http://img11.static.yhbimg.com/yhb-img01/2016/07/05/13/017ec560b82c132ab2fdb22f7cf6f42b83.png?imageView/{mode}/w/{width}/h/{height}",
"authorName": "",
"authorType": 1,
"authorUid": 500031928,
"content": "童可可恶露饿了",
"copyright": "原创",
"coverImage": "http://img10.static.yhbimg.com/grassImg/2019/02/25/16/01ecf220f172f485f3dea1a25ca20367b4.jpg?imageView2/{mode}/w/{width}/h/{height}",
"dataType": 1,
"favoriteCount": 3,
"hasFavor": "N",
"hasPraise": "N",
"hasPraised": "N",
"identityAuthStatus": "N",
"imageHeight": "1488",
"imageWidth": "1984",
"isTop": 0,
"isTopicTop": 0,
"praiseCount": 66,
"publishTime": 1551085098434,
"publishTimeStr": "2019-02-25 16:58:18",
"recommendFlag": 1,
"sort": 1
},
{
"articleId": 140088,
"articleType": 1,
"authStatus": 1,
"authorHeadIco": "http://img11.static.yhbimg.com/yhb-img01/2016/07/05/13/017ec560b82c132ab2fdb22f7cf6f42b83.png?imageView/{mode}/w/{width}/h/{height}",
"authorName": "",
"authorType": 1,
"authorUid": 500031928,
"content": "恶露饿了吧服了饿了不了不可听觉哭的图册打他扶额酷不酷答复现阿轲不饿补补嘟啊嘟嘴阿轲不测特鲁大师扶额可苦可乐不塌可恶咳咳咳他不特鲁可疼了八路乐途客服了附近不测特KTV的跨服不发扶她饿不阿拉嘟啊嘟刻苦啊特特他不阿德不测他的啊服了太绝了剧毒快乐同乐同乐福不不不侧踏扶她饿不饿不服测测AK补虐卡特拒绝路哭了多久补聚聚推荐!阿拉饿了他啊嘟嘟嘟特服阿轲不饿特步侧部肚肚饿绝句发了饿了不饿不饿不额绝句剧毒吐的绝句福不可特特哭了吐了咳咳咳特鲁绝JOJO裤头LOL饿酷酷哒特特路饿不饿不饿略略略虐了热略略略夸他落楼哦觉咯图恩透露了6天了噜服了剧毒┗┃・ ■ ・┃┛不可吐了军绿路疼哭了略读付款了屠夫额可痛苦了童可可路8",
"copyright": "原创",
"coverImage": "http://img11.static.yhbimg.com/grassImg/2019/02/25/15/016f0e54d55ea6be2c3d68e11e214bd013.jpg?imageView2/{mode}/w/{width}/h/{height}",
"dataType": 1,
"favoriteCount": 1,
"hasFavor": "N",
"hasPraise": "N",
"hasPraised": "N",
"identityAuthStatus": "N",
"imageHeight": "1488",
"imageWidth": "1984",
"isTop": 0,
"isTopicTop": 0,
"praiseCount": 74,
"publishTime": 1551079205646,
"publishTimeStr": "2019-02-25 15:20:05",
"recommendFlag": 1,
"sort": 1
},
{
"articleId": 140086,
"articleType": 1,
"authStatus": 1,
"authorHeadIco": "http://img11.static.yhbimg.com/yhb-img01/2016/07/05/13/017ec560b82c132ab2fdb22f7cf6f42b83.png?imageView/{mode}/w/{width}/h/{height}",
"authorName": "",
"authorType": 1,
"authorUid": 500031928,
"content": "恶露饿了吧服了饿了不了不可听觉哭的图册打他扶额酷不酷答复现阿轲不饿补补嘟啊嘟嘴阿轲不测特鲁大师扶额可苦可乐不塌可恶咳咳咳他不特鲁可疼了八路乐途客服了附近不测特KTV的跨服不发扶她饿不阿拉嘟啊嘟刻苦啊特特他不阿德不测他的啊服了太绝了剧毒快乐同乐同乐福不不不侧踏扶她饿不饿不服测测AK补虐卡特拒绝路哭了多久补聚聚推荐!阿拉饿了他啊嘟嘟嘟特服阿轲不饿特步侧部肚肚饿绝句发了饿了不饿不饿不额绝句剧毒吐的绝句福不可特特哭了吐了咳咳咳特鲁绝JOJO裤头LOL饿酷酷哒特特路饿不饿不饿略略略虐了热略略略夸他落楼哦觉咯图恩透露了6天了噜服了剧毒┗┃・ ■ ・┃┛不可吐了军绿路疼哭了略读付款了屠夫额可痛苦了童可可路8",
"copyright": "原创",
"coverImage": "http://img10.static.yhbimg.com/grassImg/2019/02/25/15/01fc64ef7ed5e2acd2083fb90f4ce96b8b.jpg?imageView2/{mode}/w/{width}/h/{height}",
"dataType": 1,
"favoriteCount": 1,
"hasFavor": "N",
"hasPraise": "N",
"hasPraised": "N",
"identityAuthStatus": "N",
"imageHeight": "1488",
"imageWidth": "1984",
"isTop": 0,
"isTopicTop": 0,
"praiseCount": 68,
"publishTime": 1551079160575,
"publishTimeStr": "2019-02-25 15:19:20",
"recommendFlag": 1,
"sort": 1
},
{
"articleId": 140084,
"articleType": 1,
"authStatus": 1,
"authorHeadIco": "http://img11.static.yhbimg.com/yhb-img01/2016/07/05/13/017ec560b82c132ab2fdb22f7cf6f42b83.png?imageView/{mode}/w/{width}/h/{height}",
"authorName": "",
"authorType": 1,
"authorUid": 500031928,
"content": "恶露饿了吧服了饿了不了不可听觉哭的图册打他扶额酷不酷答复现阿轲不饿补补嘟啊嘟嘴阿轲不测特鲁大师扶额可苦可乐不塌可恶咳咳咳他不特鲁可疼了八路乐途客服了附近不测特KTV的跨服不发扶她饿不阿拉嘟啊嘟刻苦啊特特他不阿德不测他的啊服了太绝了剧毒快乐同乐同乐福不不不侧踏扶她饿不饿不服测测AK补虐卡特拒绝路哭了多久补聚聚推荐!阿拉饿了他啊嘟嘟嘟特服阿轲不饿特步侧部肚肚饿绝句发了饿了不饿不饿不额绝句剧毒吐的绝句福不可特特哭了吐了咳咳咳特鲁绝JOJO裤头LOL饿酷酷哒特特路饿不饿不饿略略略虐了热略略略夸他落楼哦觉咯图恩透露了6天了噜服了剧毒┗┃・ ■ ・┃┛不可吐了军绿路疼哭了略读付款了屠夫额可痛苦了童可可路8",
"copyright": "原创",
"coverImage": "http://img10.static.yhbimg.com/grassImg/2019/02/25/15/01c5617e0ff07544060216780172bb23be.jpg?imageView2/{mode}/w/{width}/h/{height}",
"dataType": 1,
"favoriteCount": 0,
"hasFavor": "N",
"hasPraise": "N",
"hasPraised": "N",
"identityAuthStatus": "N",
"imageHeight": "1984",
"imageWidth": "1488",
"isTop": 0,
"isTopicTop": 0,
"praiseCount": 21,
"publishTime": 1551079056499,
"publishTimeStr": "2019-02-25 15:17:36",
"recommendFlag": 1,
"sort": 1
},
{
"articleId": 140026,
"articleType": 1,
"authStatus": 1,
"authorHeadIco": "http://img11.static.yhbimg.com/yhb-img01/2016/07/05/13/017ec560b82c132ab2fdb22f7cf6f42b83.png?imageView/{mode}/w/{width}/h/{height}",
"authorName": "",
"authorType": 1,
"authorUid": 500031928,
"content": "花灯,中华门城堡",
"copyright": "原创",
"coverImage": "http://img10.static.yhbimg.com/grassImg/2019/02/25/10/015d0501b458d8e6fb31997f65eaac19d0.jpg?imageView2/{mode}/w/{width}/h/{height}",
"dataType": 1,
"favoriteCount": 1,
"hasFavor": "N",
"hasPraise": "N",
"hasPraised": "N",
"identityAuthStatus": "N",
"imageHeight": "1984",
"imageWidth": "1488",
"isTop": 0,
"isTopicTop": 0,
"praiseCount": 93,
"publishTime": 1551061952660,
"publishTimeStr": "2019-02-25 10:32:32",
"recommendFlag": 1,
"sort": 1
},
{
"articleId": 140024,
"articleType": 1,
"authStatus": 1,
"authorHeadIco": "http://img11.static.yhbimg.com/yhb-img01/2016/07/05/13/017ec560b82c132ab2fdb22f7cf6f42b83.png?imageView/{mode}/w/{width}/h/{height}",
"authorName": "",
"authorType": 1,
"authorUid": 500031928,
"content": "花他特略略略略了额略略特",
"copyright": "原创",
"coverImage": "http://img10.static.yhbimg.com/grassImg/2019/02/25/10/01b8c270bc6fe5cc94a04e4eb760c1bef8.jpg?imageView2/{mode}/w/{width}/h/{height}",
"dataType": 1,
"favoriteCount": 1,
"hasFavor": "N",
"hasPraise": "N",
"hasPraised": "N",
"identityAuthStatus": "N",
"imageHeight": "1488",
"imageWidth": "1984",
"isTop": 0,
"isTopicTop": 0,
"praiseCount": 89,
"publishTime": 1551061283654,
"publishTimeStr": "2019-02-25 10:21:23",
"recommendFlag": 1,
"sort": 1
}
],
"pageNo": 1,
"pageSize": 10,
"totalCount": 6,
"totalPage": 1,
"viewModel": 1
},
"message": "success"
}
3、全部图片接口- 闲鱼H5调用
全部图片接口 (app.grass.productArticleListOnlyImage)
请求参数
参数名称 | 参数类型 | 可否为空 | 示例 | 默认值 | 备注 |
---|---|---|---|---|---|
productSkn | Integer | 否 | 商品skn | ||
productType | Integer | 否 | 商品类型, 1 有货商品 2 ufo商品 | ||
page | Integer | 是 | 1 | 1 | 页码 |
limit | Integer | 是 | 1 | 10 | 每页显示条数 |
articleId | Integer | 否 | 1 | 10 | 文章id |
注意,通用的头部没有列出。
请求示例
http://api-test3.dev.yohocorp.com/?app_version=6.9.17&business_line=yohobuy&method=app.grass.productArticleListOnlyImage&udid=861243048197754cd2de191342aa531&debug=XYZ&uid=500031572&client_type=android&productSkn=51063249&productType=1&fromXianYu=Y&articleId=1410492### 响应
code为200即为成功。
响应JSON格式如下所示:
{
"code": 200,
"data":
{
"list": [
{
"articleId": 1410330,
"contentData": "https://imgsocial.yohobuy.com/grassImg/2019/10/16/15/018bfd9c38db7c9c81724f47abf8fd4856.jpg?imageView2/{mode}/w/{width}/h/{height}",
"height": "1080",
"orderBy": 0,
"width": "1080"
},
{
"articleId": 1410318,
"contentData": "https://imgsocial.yohobuy.com/grassImg/2019/10/14/09/0141add6b074cdb9181132f90d7616ea06.jpg?imageView2/{mode}/w/{width}/h/{height}",
"height": "1080",
"orderBy": 0,
"width": "1080"
},
{
"articleId": 1410314,
"contentData": "https://imgsocial.yohobuy.com/grassImg/2019/10/12/18/01dfee87d6d045e718806b0d69393a4f01.jpg?imageView2/{mode}/w/{width}/h/{height}",
"height": "1080",
"orderBy": 0,
"width": "1080"
},
{
"articleId": 141054,
"contentData": "https://imgsocial.yohobuy.com/grassImg/2019/05/14/16/01bfbf15cea3eeabce5a880090c6ac0fc1.jpg?imageView2/{mode}/w/{width}/h/{height}",
"height": "1080",
"orderBy": 0,
"width": "1080"
},
{
"articleId": 141054,
"contentData": "https://imgsocial.yohobuy.com/grassImg/2019/05/14/16/01bb7bc7262d0d74f7ac8f0fb5de975d55.jpg?imageView2/{mode}/w/{width}/h/{height}",
"height": "1080",
"orderBy": 1,
"width": "1080"
},
{
"articleId": 140846,
"contentData": "http://img12.static.yhbimg.com/grassImg/2019/04/25/10/02a95099a09d901966f1b806c70af3db7a.jpg?imageView2/{mode}/w/{width}/h/{height}",
"height": "400",
"orderBy": 0,
"width": "400"
},
{
"articleId": 140846,
"contentData": "http://img12.static.yhbimg.com/grassImg/2019/04/25/10/02e2642424bb93d338cb51d7cc8a4ac6c7.jpg?imageView2/{mode}/w/{width}/h/{height}",
"height": "500",
"orderBy": 1,
"width": "500"
},
{
"articleId": 140846,
"contentData": "http://img13.static.yhbimg.com/grassImg/2019/04/25/10/02735a5f5d91a0f027f7abe25f6e949c74.jpg?imageView2/{mode}/w/{width}/h/{height}",
"height": "500",
"orderBy": 2,
"width": "500"
},
{
"articleId": 140740,
"contentData": "http://img10.static.yhbimg.com\\grassImg/2019/03/14/10/01eeb4e419c8e3026bf223ce3e9adbbe4a.jpg?imageView2/{mode}/w/{width}/h/{height}",
"height": "1",
"orderBy": 0,
"width": "1"
},
{
"articleId": 140434,
"contentData": "https://imgsocial.yohobuy.com/grassImg/2019/03/12/16/01029a6b1926c8b765d89c0685a57689af.933452.jpg?imageView2/{mode}/w/{width}/h/{height}",
"height": "1334",
"orderBy": 0,
"width": "750"
}
],
"pageNo": 1,
"pageSize": 10,
"totalCount": 11,
"totalPage": 2
},
"message": "success"
}