예제 #1
0
        /// <summary>
        ///
        /// </summary>
        /// <param name="tagId"></param>
        /// <param name="tagname"></param>
        /// <param name="access_token"></param>
        /// <returns></returns>
        public CreateTagResult CreateTag(string access_token, int tagId, string tagname)
        {
            var tag = new CreateTagRequest {
                tagid = tagId, tagname = tagname
            };

            return(CreateTag(access_token, tag));
        }
예제 #2
0
        /// <summary>
        /// 创建标签
        /// </summary>
        /// <param name="tag"></param>
        /// <param name="access_token"></param>
        /// <returns></returns>
        public CreateTagResult CreateTag(string access_token, CreateTagRequest tag)
        {
            string url = string.Format("{0}tag/create?access_token={1}", baseUrl, access_token);

            return(HttpHelper.HttpPost.GetJsonResult <CreateTagRequest, CreateTagResult>(url, tag));
        }