Пример #1
0
 /// <summary>
 /// 根据OpenID列表群发
 /// </summary>
 public static string Send(string access_token, string postData)
 {
     return(HttpRequestUtil.PostUrl(string.Format("https://api.weixin.qq.com/cgi-bin/message/mass/send?access_token={0}", access_token), postData));
 }
Пример #2
0
 /// <summary>
 /// 上传图文消息素材返回media_id
 /// </summary>
 public static string UploadNews(string access_token, string postData)
 {
     return(HttpRequestUtil.PostUrl(string.Format("https://api.weixin.qq.com/cgi-bin/media/uploadnews?access_token={0}", access_token), postData));
 }
Пример #3
0
 /// <summary>
 /// 创建菜单
 /// </summary>
 public static string CreateMenu2(string access_token, string menuJsonStr)
 {
     return(HttpRequestUtil.PostUrl(string.Format("https://api.weixin.qq.com/cgi-bin/menu/create?access_token={0}", access_token), menuJsonStr));
 }