集成云信推送

This commit is contained in:
易焱
2019-06-11 20:50:30 +08:00
parent 345586e911
commit 55c3718489
2 changed files with 123 additions and 3 deletions
@@ -1,5 +1,6 @@
package com.ifish7.mq.push;
import com.alibaba.fastjson.JSONObject;
import com.aliyuncs.DefaultAcsClient;
import com.aliyuncs.exceptions.ClientException;
import com.aliyuncs.http.FormatType;
@@ -76,4 +77,11 @@ public class AliyunPushApiTest {
}
}
@Test
public void testSendMsg() {
AliyunPushApi pushApi = new AliyunPushApi("","","");
JSONObject jsonObject = pushApi.sendMsg("20731", "网易云信推送测试!");
System.out.println(jsonObject.toJSONString());
}
}