public void PostImgToImboTest() { string url = @"https://img.websosanh.vn/users/wss/images/1KVlyFMDkU9r"; string x = ImboService.PostImgToImboChangeBackgroundTransference(url, "wss_write", "123websosanh@195", "wss", @"http://192.168.100.34", 40000); Assert.Greater(x.Length, 10); }
public void DownloadImageProductWithImboServerTest() { string url = @"http://shopdepmoingay.com/images/gianhang/item/item_s12326709.png?d=1"; string x = ImboService.PostImageToImbo(url, "wss_write", "123websosanh@195", "wss", @"https://172.22.1.226", 443); Assert.Greater(x.Length, 10); }
public static bool DelteImage(string publicKey, string privateKey, string imageId, string userName, string host, int port) { try { ImboService.DeleteImg(publicKey, privateKey, imageId, userName, host, port); } catch (Exception ex) { Log.Error(imageId + ":" + ex.Message); return(false); } return(true); }