跳转到内容
返回官网

设置商家的推送消息

设置商家的推送消息

一、请求参数

POST https://kf.fw199.com/gateway/partner/seller/update/msgconfig

参数名类型说明示例
appidString合作伙伴AppIduwkahf@jfs92
timestampString当前时间戳
seller_nickString商家账号kingdo
sysidString如不清楚请联系客服!100
eventsString消息编码 ,多个消息编码用英文逗号隔开,每次请求都是全量覆盖。如果传入空串,则关掉商家的消息。
signString接口签名如何计算生成见示例代码

二、请求示例代码

Java

@Test
public void UpdateSellerMsgConfig() throws Exception {
String seller_nick = "xxxxx";
//业务参数
Map<String, String> data = new HashMap<String, String>();
data.put("appid", Config.AppId);
Long timestamp = System.currentTimeMillis() / 1000;
data.put("timestamp", timestamp.toString());
data.put("seller_nick", seller_nick);
data.put("events","xxx");
data.put("sysid","xxx");
// 签名
data.put("sign", Utils.Sign(data,Config.AppSecret));
// 调用服务API
doHttpRequest(Config.PartnerSellerSubscribeUrl ,data);
}

三、返回结果

{
"code": 0,
"message": "ok",
"data": "更新配置成功",
"trace_id": "3ba9ab68-76c8-4488-bf5a-a4d932193461"
}

说明: code为0表示成功,非0为失败,message会包含失败原因