Exemple #1
0
        public void XGTestSingleAccount()
        {
            QQXGProvider             qqxg = new QQXGProvider();
            XGPushSingleAccountParam xgp  = new XGPushSingleAccountParam();

            xgp.Timestamp  = null;
            xgp.Valid_time = 600; //600;
            xgp.Sign       = null;
            //============测试DEMO==============
            //xgp.Access_id = 2100025233;
            //xgp.Access_Key = "ARQ4CB14Q92X";
            //xgp.Secret_Key = "6ae193c85570ad1cc8fc9540560093b1";
            //============测试DEMO==============
            xgp.Access_id = 2100025346;
            //xgp.Access_Key = "AUP1I5W741WJ";
            xgp.Secret_Key   = "f2391810bc98c0d7435ec7c96b8f524f";
            xgp.Message_type = 1;
            xgp.Message      = new NotifyMessage()
            {
                Title   = "XGTestSingleAccount",
                Content = "XGTestSingleAccount",
                Vibrate = 1,
                Ring    = 1
            };
            xgp.Account = "ffff";
            //POSTopenapi.xg.qq.com/v2/push/all_deviceaccess_id=2100025233timestamp=1399859926valid_time=6006ae193c85570ad1cc8fc9540560093b1
            XGResult <string> a = qqxg.PushSingleAccount(xgp);
        }