github 地址
说明
java 服务器端集成 华为推送 工具包
使用
示例
SendClient sender = new SendClient("clientSecret","clientId");
Payload payload = Payload.newInstance()
.addMsg(Message.newInstance()
.addType(MessageType.PASSTHROUGH)
.addBody("测试推送content", "测试推送title")
.addAction(ActionType.URL, "https://www.baidu.com")
.build())
.addExt(Ext.newInstance()
.addCustomize(map)
.build())
.build();
sender.push(new String[] { "targets" }, payload);
网友评论