public void DownloadTest() { UploadTest(); var a = new AccessToken("wxe621f4e5e90b13cd", "7cb56e5b6bd302ddb73c4f76a9ec26a2"); var m = new MediaManager(a); m.Download(mediaId, "C:/1.jpg"); }
public void UploadTest() { var a = new AccessToken("wx52544b324318b38d", "a8b7e285bbae296f8bbb77e0bf518b1b"); var m = new MediaManager(a); var mediaId = m.Upload(@"C:\Users\maishu\Pictures\100.jpg", MediaType.Image); Assert.IsNotNull(mediaId); Console.WriteLine(mediaId); this.mediaId = mediaId; }