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)); } }
public static MediaInfo UploadVideoForMess(UploadVideoInfo videoInfo) { CheckGlobalCredential(); return(UploadVideoForMess(videoInfo, AppID, AppSecret)); }