/// <summary> /// 上传图文消息素材返回media_id /// </summary> public static string UploadNews(string access_token, string postData) { return(HttpUtitls.PostUrl(string.Format("https://api.weixin.qq.com/cgi-bin/media/uploadnews?access_token={0}", access_token), postData)); }
/// <summary> /// 根据OpenID列表群发 /// </summary> public static string Send(string access_token, string postData) { return(HttpUtitls.PostUrl(string.Format("https://api.weixin.qq.com/cgi-bin/message/mass/send?access_token={0}", access_token), postData)); }
/// <summary> /// 创建菜单 /// </summary> /// <param name="access_token"></param> /// <param name="Companyid"></param> /// <returns></returns> public static string CreateMenu(string access_token, Guid Companyid) { string menuJsonStr = WXApiJson.GetMenuJsonStr(Companyid); return(HttpUtitls.PostUrl(string.Format("https://api.weixin.qq.com/cgi-bin/menu/create?access_token={0}", access_token), menuJsonStr)); }
/// <summary> /// 获取永久素材 /// </summary> /// <param name="access_token"></param> /// <param name="postData"></param> /// <returns></returns> public static string Material_get(string access_token, string postData) { return(HttpUtitls.PostUrl(string.Format("https://api.weixin.qq.com/cgi-bin/material/get_material?access_token={0}", access_token), postData)); }