Пример #1
0
        public static CorpTag Create(string name)
        {
            TkDebug.AssertArgumentNullOrEmpty(name, "name", null);

            CorpTag data = new CorpTag
            {
                Name = name
            };
            string url = WeCorpUtil.GetCorpUrl(WeCorpConst.CREATE_TAG,
                                               WeixinSettings.Current.CorpUserManagerSecret);

            return(WeUtil.PostToUri(url, data.WriteJson(WeConst.WRITE_SETTINGS), data));
        }
Пример #2
0
        public static CorpTag Create(string name)
        {
            TkDebug.AssertArgumentNullOrEmpty(name, "name", null);

            CorpTag data = new CorpTag
            {
                Name = name
            };
            string url = WeCorpUtil.GetCorpUrl(WeCorpConst.CREATE_TAG,
                WeixinSettings.Current.CorpUserManagerSecret);
            return WeUtil.PostToUri(url, data.WriteJson(WeConst.WRITE_SETTINGS), data);
        }