Changeset 11850 for extensions/PiwigoLib/TestPiwigoLib/Form1.cs
- Timestamp:
- Jul 29, 2011, 6:05:05 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
extensions/PiwigoLib/TestPiwigoLib/Form1.cs
r7149 r11850 4 4 using Com.Piwigo.Lib.IService; 5 5 using Com.Piwigo.Lib.DTO; 6 using System.Collections.Generic; 7 using System.IO; 6 8 7 9 … … 23 25 UriBuilder urib = new UriBuilder(); 24 26 urib.Host = tbServer.Text; 25 urib.Path = " phpwebgallery/ws.php";27 urib.Path = "/ws.php"; 26 28 urib.Scheme = "http://"; 27 29 … … 60 62 //List<PwgCategory> lstCat = PwgServiceProvider.Instance.PwgCategoriesService.GetAdminListOfCategory(); 61 63 62 //Int32 newid = 0; 63 //String msg = String.Empty; 64 //Boolean rc = PwgServiceProvider.Instance.PwgCategoriesService.AddCategory("test_cat", 1, ref newid, ref msg); 64 Int32 newid = 0; 65 String msg = String.Empty; 66 Boolean rc; 67 // rc = PwgServiceProvider.Instance.PwgCategoriesService.AddCategory("test_cat", 1, ref newid, ref msg); 68 //List<PwgCategory> lstCat = PwgServiceProvider.Instance.PwgCategoriesService.GetAdminListOfCategory(); 65 69 //Console.WriteLine(String.Format("newid : {0} message : {1}", newid,msg)); 66 70 //rc = PwgServiceProvider.Instance.PwgCategoriesService.UpdateCategoryInfo(newid, "test2", "rename cat"); 71 //Boolean rc = PwgServiceProvider.Instance.PwgCategoriesService.DeleteCategory(newid, sess.SecurityToken, PwgCategoryPhotoDeletionModeEnum.None); 72 //rc = PwgServiceProvider.Instance.PwgCategoriesService.MoveCategory(new List<Int32>() { newid }, PwgCategory.RootCategoryId, sess.SecurityToken); 67 73 68 PwgImageRate imgRate = PwgServiceProvider.Instance.PwgImagesService.RateImage(1, 5); 74 //lstCat = PwgServiceProvider.Instance.PwgCategoriesService.GetAdminListOfCategory(); 75 76 FileInfo fi = new FileInfo("C:\\Users\\bayral\\Downloads\\49133_1636405570_2648232_n.jpg"); 77 rc = PwgServiceProvider.Instance.PwgImagesService.addImageByMultiPartForm(fi, null, 1, "benoit", "byarl", "test upload", 0, null); 78 79 //PwgImageRate imgRate = PwgServiceProvider.Instance.PwgImagesService.RateImage(1, 5); 69 80 70 81 sess = PwgServiceProvider.Instance.PwgSessionService.Logout();
Note: See TracChangeset
for help on using the changeset viewer.