public void XGTestTagsDevice() { QQXGProvider qqxg = new QQXGProvider(); XGPushTagsDeviceParam xgp = new XGPushTagsDeviceParam(); 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 = "XGTestTagsDevice", Content = "XGTestTagsDevice", Vibrate = 1, Ring = 1 }; xgp.Tags_list = new System.Collections.Generic.List <string>(); xgp.Tags_list.Add("nature"); xgp.Tags_op = "OR"; //POSTopenapi.xg.qq.com/v2/push/all_deviceaccess_id=2100025233timestamp=1399859926valid_time=6006ae193c85570ad1cc8fc9540560093b1 XGResult <XGPushResult> a = qqxg.PushTagsDevice(xgp); string a1 = a.Err_msg; }