多应用+插件架构,代码干净,二开方便,首家独创一键云编译技术,文档视频完善,免费商用码云13.8K 广告
### 接口名称 Works/worksList ### 接口描述 案例列表 ### 演示地址 `http://URL/Works/worksList` ### 输入参数 ~~~ (string) oauth_token (必填) (string) oauth_token_secret (必填) (int)status (选填,作品类型;0公开;1私密,默认0) (int) count,分页显示时,指定每页显示条数(默认20) (int) source_id (选填,最后一条资源的id) ~~~ 输出结果: ~~~ { "status": 1, "list": [ { "works_id": "28", "title": "作品标题", "logo": "http://demo-coutuan123.b0.upaiyun.com/2015/0430/11/55419c5432fb2.jpg", "content": "作品内容", "attach_ids": "845,846", "uid": "1", "service_id": "61", "active_time": "4294967295", "category_id": "2", "address": "北京海淀", "collect_count": 5, "price": 10000, "status": "0", "share_count": "0", "service_title": "婚庆", "uname": "你猜猜T", "face": "http://demo-coutuan123.b0.upaiyun.com/avatar/c4/ca/42/original.jpg!small.avatar.jpg?v1434019465", "occupation_id": "1", "occupation_name": "婚礼策划", "logo_id": "123", "category_name": "婚纱摄影", "share_url": "http://192.168.1.154/index.php?app=microshop&mod=ServiceWorks&act=worksDetail&works_id=28", "attachs": [ { "id": "845", "url": "http://demo-coutuan123.b0.upaiyun.com/2015/0530/17/5569858f26c4f.png" }, { "id": "846", "url": "http://demo-coutuan123.b0.upaiyun.com/2015/0602/09/556d06f3eee7b.png" } ] }, { "works_id": "27", "title": "作品标题", "logo": "http://demo-coutuan123.b0.upaiyun.com/2015/0430/11/55419c5432fb2.jpg", "content": "作品内容", "attach_ids": "845,846", "uid": "1", "service_id": "2", "active_time": "4294967295", "category_id": "2", "address": "北京海淀", "collect_count": 0, "price": 10000, "status": "0", "service_title": null, "uname": "你猜猜T", "face": "http://demo-coutuan123.b0.upaiyun.com/avatar/c4/ca/42/original.jpg!small.avatar.jpg?v1434019465", "occupation_id": "1", "occupation_name": "婚礼策划", "logo_id": "123", "category_name": "婚纱摄影", "share_url": "http://192.168.1.154/index.php?app=microshop&mod=ServiceWorks&act=worksDetail&works_id=27", "attachs": [ { "id": "845", "url": "http://demo-coutuan123.b0.upaiyun.com/2015/0530/17/5569858f26c4f.png" }, { "id": "846", "url": "http://demo-coutuan123.b0.upaiyun.com/2015/0602/09/556d06f3eee7b.png" } ] }, { "works_id": "26", "title": "作品标题", "logo": "http://demo-coutuan123.b0.upaiyun.com/2015/0430/11/55419c5432fb2.jpg", "content": "作品内容", "attach_ids": "845,846", "uid": "1", "service_id": "2", "active_time": "4294967295", "category_id": "2", "address": "北京海淀", "collect_count": 0, "price": 10000, "status": "1", "service_title": null, "uname": "你猜猜T", "face": "http://demo-coutuan123.b0.upaiyun.com/avatar/c4/ca/42/original.jpg!small.avatar.jpg?v1434019465", "occupation_id": "1", "occupation_name": "婚礼策划", "logo_id": "123", "category_name": "婚纱摄影", "share_url": "http://192.168.1.154/index.php?app=microshop&mod=ServiceWorks&act=worksDetail&works_id=26", "attachs": [ { "id": "845", "url": "http://demo-coutuan123.b0.upaiyun.com/2015/0530/17/5569858f26c4f.png" }, { "id": "846", "url": "http://demo-coutuan123.b0.upaiyun.com/2015/0602/09/556d06f3eee7b.png" } ] } ] } 失败 { "status": 0, "msg": "请先登录" } ~~~ ### 字段说明 ~~~ works_id 作品id/资源id title 作品标题 logo 作品封面 logo_id 封面id content 作品描述 service_id 服务id active_time 活动时间 address 活动地点 category_id 分类id category_name 分类名称 share_url 分享的URL collect_count 点赞次数 price 价格 status 状态 uid 用户uid uname 用户昵称 face 用户头像 attachs 作品图片信息 { id 图片id url 图片地址 } ~~~