コード例 #1
0
    protected void Page_Load(object sender, EventArgs e)
    {
        string apikKey   = "";
        string secretKey = "";
        string timer_id  = "277341666258968557";

        Push_Tags_Mod ptm    = new Push_Tags_Mod(apikKey, timer_id, "{\"title\":\"胶圈产品部通知:\",\"description\":\"今天下午3点开会商讨销售方案!\"}");
        Push_Tags     pt     = new Push_Tags(secretKey, ptm);
        string        result = pt.PushMessage();

        Response.Write(result);
    }
コード例 #2
0
    protected void Page_Load(object sender, EventArgs e)
    {
        string apikKey   = "";
        string secretKey = "";
        string tag       = "ball";

        Notice_Android_Mod dam    = new Notice_Android_Mod("今天股市", "熊市,熊出没人注意!");
        string             json   = JsonConvert.SerializeObject(dam);
        Push_Tags_Mod      ptd    = new Push_Tags_Mod(apikKey, tag, json, (int)Baidu_Helper.Message_Type.Notice);
        Push_Tags          pa     = new Push_Tags(secretKey, ptd);
        string             result = pa.PushMessage();

        Response.Write(result);
    }