@@ -0,0 +1,1578 @@
+package xingge;%0A%0Aimport com.tencent.xinge.ClickAction;%0Aimport com.tencent.xinge.Message;%0Aimport com.tencent.xinge.Style;%0Aimport com.tencent.xinge.XingeApp;%0Aimport com.tencent.xinge.TimeInterval;%0Aimport org.json.JSONObject;%0A%0Aimport java.util.Map;%0Aimport java.util.HashMap;%0A%0A/**%0A * @author : cpc%0A * @description : %E8%85%BE%E8%AE%AF%E4%BF%A1%E9%B8%BD%E6%9C%8D%E5%8A%A1%E7%AB%AF%E6%B5%8B%E8%AF%95%0A * @date : 2015/12/3%0A */%0Apublic class Xingge %7B%0A%0A    //QQ%E7%94%B3%E8%AF%B7%E5%BA%94%E7%94%A8%E4%B8%AD%E5%BA%94%E7%94%A8%E9%85%8D%E7%BD%AE%E4%B8%AD%0A    public static String secretKey = %224ecdf92000b5a8de10ee59fddb4108f7%22;%0A    //QQ%E7%94%B3%E8%AF%B7%E8%8E%B7%E5%BE%97%E7%9A%84%E5%AE%89%E5%8D%93%E5%AE%89%E8%A3%85%E5%8C%85%E5%AE%89%E8%A3%85%E5%90%8E%E8%8E%B7%E5%BE%97%0A    public static String token = %223be07c5903200c164457badba7346b05d285e54c%22;%0A    //QQ%E7%94%B3%E8%AF%B7%E5%BA%94%E7%94%A8%E4%B8%AD%E5%BA%94%E7%94%A8%E9%85%8D%E7%BD%AE%E4%B8%ADaccessId%0A    public static long accessId = 2100168968;%0A%0A    public static void main(String%5B%5D args) %7B%0A        XingeApp xinge = new XingeApp(accessId, secretKey);%0A        Message message1 = new Message();%0A        message1.setType(Message.TYPE_NOTIFICATION);%0A        Style style = new Style(1);%0A        style = new Style(3,1,0,1,0);%0A        ClickAction action = new ClickAction();%0A        action.setActionType(ClickAction.TYPE_URL);%0A        action.setUrl(%22http://xg.qq.com%22);%0A        Map%3CString, Object%3E custom = new HashMap%3CString, Object%3E();%0A        custom.put(%22key1%22, %22value1%22);%0A        custom.put(%22key2%22, 2);%0A        message1.setTitle(%22%E6%B5%8B%E8%AF%95%E6%A0%87%E9%A2%98%22);%0A        message1.setContent(%22%E5%86%85%E5%AE%B9%E6%B5%8B%E8%AF%95%22);%0A        message1.setStyle(style);%0A        message1.setAction(action);%0A        message1.setCustom(custom);%0A        TimeInterval acceptTime1 = new TimeInterval(0,0,23,59);%0A        message1.addAcceptTime(acceptTime1);%0A        JSONObject ret = xinge.pushAllDevice(0, message1);%0A        System.out.println(ret);%0A    %7D%0A%7D%0A

添加腾讯信鸽服务器端测试，并添加相应的jar包