예제 #1
0
 public static BaseRequest Delte(string id, string name)
 {
     return((BaseRequest)HtmlService.PostJson <BaseRequest>(new Uri("https://www.premiumize.me/api/item/rename"), $"id={id}&name={name}"));
 }
예제 #2
0
 public static BaseRequest Delte(string id)
 {
     return((BaseRequest)HtmlService.PostJson <BaseRequest>(new Uri("https://www.premiumize.me/api/item/delete"), $"id={id}"));
 }
예제 #3
0
 public static BaseRequest Paste(string target_id, List <string> files = null, List <string> folders = null)
 {
     return((BaseRequest)HtmlService.PostJson <BaseRequest>(new Uri("https://www.premiumize.me/api/folder/paste"), $"files={files.ToString()}&folders={folders.ToString()}&target_id={target_id}"));
 }
예제 #4
0
 public static AccountRequest Info()
 {
     return((AccountRequest)HtmlService.PostJson <AccountRequest>(new Uri("https://www.premiumize.me/api/account/info")));
 }
예제 #5
0
 public static FolderRequest List(string id = "", bool?includebreadcrumbs = null)
 {
     return((FolderRequest)HtmlService.GetJson <FolderRequest>(new Uri("https://www.premiumize.me/api/folder/list" + $"?id={id}&includebreadcrumbs={includebreadcrumbs}")));
 }
예제 #6
0
 public static CreateFolderRequest Create(string name, string parent_id = "")
 {
     return((CreateFolderRequest)HtmlService.PostJson <CreateFolderRequest>(new Uri("https://www.premiumize.me/api/folder/create"), $"name={name}&parent_id={parent_id}"));
 }
예제 #7
0
 public static TransferRequest List()
 {
     return((TransferRequest)HtmlService.GetJson <TransferRequest>(new Uri("https://www.premiumize.me/api/transfer/list")));
 }
예제 #8
0
 public static TransferRequest2 Create2(string src)
 {
     return((TransferRequest2)HtmlService.PostJson <TransferRequest2>(new Uri("https://www.premiumize.me/api/transfer/create"), $"src={src}"));
 }
예제 #9
0
 public static BaseRequest ClearFinished()
 {
     return((BaseRequest)HtmlService.PostJson <BaseRequest>(new Uri("https://www.premiumize.me/api/transfer/clearfinished")));
 }