Publish消息时,指定notification_title和notification_body即可。
重要提示:
为了确保能收到通知栏提醒,必须在手机的系统设置里确认,该app的通知栏提醒为“允许”状态。
http://rest-hangzhou.goeasy.io/publish
如需通过https发送,将http改为https即可
目前仅支持杭州区域,新加坡区域暂时不支持,敬请期待
Post
名称 | 必要 | 描述 |
---|---|---|
appkey | 是 | 服务端请使用common key |
channel | 是 | channel |
content | 是 | 您要发送的消息内容 |
notification_title | 否 | 通知栏提醒的标题 |
notification_body | 否 | 通知栏提醒的内容 |
GoEasy goEasy = new GoEasy( "http://rest-hangzhou.goeasy.io", "my_appkey");
goEasy.publish("my_channel", "Hello, GoEasy!","notification_title","notification_body");
开发者也可以通过使用Postman等Rest工具,来调试REST API。