Пример #1
0
        /// <summary>
        /// 标签操作
        /// </summary>
        /// <param name="userId">用户id</param>
        /// <param name="tag">标签名</param>
        /// <param name="method">方法名</param>
        /// <param name="result"></param>
        /// <param name="message"></param>
        private void TagOperation(string userId, string tag, string method, ref string result, ref string message)
        {
            BaiduPush Bpush    = new BaiduPush("POST");
            TimeSpan  ts       = (DateTime.UtcNow - new DateTime(1970, 1, 1, 0, 0, 0));
            uint      unixTime = (uint)ts.TotalSeconds;
            string    apiKey   = SysFunction.GetConfigValue("ApiKey");

            TagOptions tOpts = new TagOptions(method, apiKey, userId, tag, unixTime);

            message = Bpush.SetTag(tOpts);
            result  = "0";
        }
Пример #2
0
 public string SetTag(TagOptions opts)
 {
     return(Submit <TagOptions>(opts));
 }