集成云信推送
This commit is contained in:
@@ -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());
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user