예제 #1
0
        public static MediaInfo UploadVideoForMess(UploadVideoInfo videoInfo, string access_token)
        {
            var url = "https://file.api.weixin.qq.com/cgi-bin/media/uploadvideo?access_token=";

            url = url + access_token;
            var json = Util.HttpPost2(url, Util.ToJson(videoInfo));

            if (json.IndexOf("errcode") > 0)
            {
                var mi = new MediaInfo();
                mi.error = Util.JsonTo <ReturnCode>(json);
                return(mi);
            }
            else
            {
                return(Util.JsonTo <MediaInfo>(json));
            }
        }
예제 #2
0
파일: WeiXin.cs 프로젝트: Cold1986/GanXian
 public static MediaInfo UploadVideoForMess(UploadVideoInfo videoInfo)
 {
     CheckGlobalCredential();
     return(UploadVideoForMess(videoInfo, AppID, AppSecret));
 }