protected void Page_Load(object sender, EventArgs e)
    {
        string apiKey = "";
        string secretKey = "";

        Push_All_Mod psdm = new Push_All_Mod(apiKey, "{\"title\":\"胶圈技术部通知:\",\"description\":\"今天开源中国邀请大家去研讨会!\"}");
        Push_All pa = new Push_All(secretKey, psdm);
        string result = pa.PushMessage();
        Response.Write(result);
    }
    protected void Page_Load(object sender, EventArgs e)
    {
        string apiKey    = "";
        string secretKey = "";

        Push_All_Mod psdm   = new Push_All_Mod(apiKey, "{\"title\":\"胶圈技术部通知:\",\"description\":\"今天开源中国邀请大家去研讨会!\"}");
        Push_All     pa     = new Push_All(secretKey, psdm);
        string       result = pa.PushMessage();

        Response.Write(result);
    }
Ejemplo n.º 3
0
        protected void btn_Send_Click(object sender, EventArgs e)
        {
            string apikKey   = PubSql.ApiKey;
            string secretKey = PubSql.SecretKey;

            Notice_Android_Mod dam  = new Notice_Android_Mod(txtTitle.Value, txtContent.Value);
            string             json = JsonConvert.SerializeObject(dam);
            Push_All_Mod       pam  = new Push_All_Mod(apikKey, json, (int)Baidu_Helper.Message_Type.Notice, 1);
            Push_All           pa   = new Push_All(secretKey, pam);

            txtResponse.Value = pa.PushMessage();
        }
    protected void Page_Load(object sender, EventArgs e)
    {
        string apikKey = "";
        string secretKey = "";

        Notice_Android_Mod dam = new Notice_Android_Mod("交通事故", "王府井大街出现塞车,大家请绕路回家");
        string json = JsonConvert.SerializeObject(dam);
        Push_All_Mod pam = new Push_All_Mod(apikKey, json, (int)Baidu_Helper.Message_Type.Notice);
        Push_All pa = new Push_All(secretKey, pam);
        string result = pa.PushMessage();
        Response.Write(result);
    }
Ejemplo n.º 5
0
    protected void Page_Load(object sender, EventArgs e)
    {
        string apikKey   = "";
        string secretKey = "";

        Notice_Android_Mod dam    = new Notice_Android_Mod("交通事故", "王府井大街出现塞车,大家请绕路回家");
        string             json   = JsonConvert.SerializeObject(dam);
        Push_All_Mod       pam    = new Push_All_Mod(apikKey, json, (int)Baidu_Helper.Message_Type.Notice);
        Push_All           pa     = new Push_All(secretKey, pam);
        string             result = pa.PushMessage();

        Response.Write(result);
    }