//[TestMethod] public void UpdateMemberTest(int tagId) { var accessToken = AccessTokenContainer.GetToken(_corpId); var result = MailListApi.UpdateTag(accessToken, tagId, "ceshi2"); Assert.IsNotNull(result); Assert.IsTrue(result.errcode == ReturnCode.请求成功); }
public JsonResult renameTag(string Id, string tagName) { string accessToken = GetToken(); MailListApi.UpdateTag(accessToken, Int32.Parse(Id), tagName); WeChatCommonService.ClearDepartmentTagMapCache(this.AccountManageID); return(Json(doJson(null), JsonRequestBehavior.AllowGet)); }
public JsonResult renameTag(string Id, string tagName) { string accessToken = GetToken(); MailListApi.UpdateTag(accessToken, Int32.Parse(Id), tagName); return(Json(doJson(null), JsonRequestBehavior.AllowGet)); }
public QyJsonResult WX_UpdateTag(JH_Auth_Role Model) { QyJsonResult Ret = new QyJsonResult(); if (Qyinfo.IsUseWX == "Y") { int bqid = Int32.Parse(Model.WXBQCode.ToString()); Ret = MailListApi.UpdateTag(GetToken(), bqid, Model.RoleName); } return(Ret); }