用户工具

站点工具


侧边栏

推送接口

推送接口


1、推送列表

接口名称

pushes/list

请求方式

post

请求参数

参数名称 参数类型 是否必填 说明
memberId int 会员id
noticeTypestring消息类型:systemPush 系统 ,logisticsInfo :物流消息,others其他推送信息,spread佣金接口
pageSizeint每页数量 默认为50
pageint页数

返回值

名称 类型 说明
items data 数据
_links data 分页信息
_meta data 查询数据信息

items数据说明

名称 类型 说明
notice_type string 类型
member_id int 会员ID
send_timestring添加时间
is_readint是否已读
messagestring内容
titlestring标题
extrastring额外信息 type类型:(1 外链 2 会议 3 讲师 4 场地 【 'teacher_invite':邀请讲师 ,'space_invite':邀请场地 'meeting_online':会议上线通知,'teacher_auth_succ':讲师审核成功,'teacher_auth_false':讲师审核失败,'shop_auth_succ':网店审核成功,'shop_auth_false':网店审核失败,'smrz_auth_succ':实名认证成功,'smrzr_auth_succ':实名认证失败 ,‘space_auth_succ’:场地审核成功,‘space_auth_false’:‘场地审核失败’ ,‘teacher_invite_succ’:'讲师同意邀请',‘space_invite_succ’:'场地同意邀请' ,‘orderBack’订单返现 ,'registerBack'注册返现】 'convertible_remind' 【兑换提醒】) jump:跳转内容 pic 图片
orderInfoarray
 [orderInfo] => Array
                        (
                            [id] => 255   订单id
                            [buycount] => 1   订单购买数量
                            [product_name] =>  aaaaaa
                            [pic] => http://pic.8dage.net/data/uploadfile/images/1/20160606/68c9f3456e.jpg
                            [status] => 2  订单状态 
                            [expressType] => 128  快递id
                            [expressCode] => 123456789  快递编号
                            [expressName] => 韵达快递
                        )

2、设置已读

接口名称

  pushes/set-read

请求方式

post

请求参数

参数名称 参数类型 是否必填 说明
memberId int会员id
pushIds string 未读推送的id组合

返回值

名称 类型 说明
result bool 返回结果 success 成功 error 失败
message string 返回信息

3、返回最新的单条

接口名称

  pushes/get-news

请求方式

post

请求参数

参数名称 参数类型 是否必填 说明
memberId int会员id

返回值

名称 类型 说明
result bool 返回结果 success 成功 error 失败
message string 返回信息
data json
推送接口.txt · 最后更改: 2017/06/01 13:59 (外部编辑)