Beispiel #1
0
 /// <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));
 }
Beispiel #2
0
 /// <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));
 }
Beispiel #3
0
        /// <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));
        }
Beispiel #4
0
 /// <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));
 }