Esempio n. 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}"));
 }
Esempio n. 2
0
 public static BaseRequest Delte(string id)
 {
     return((BaseRequest)HtmlService.PostJson <BaseRequest>(new Uri("https://www.premiumize.me/api/item/delete"), $"id={id}"));
 }
Esempio n. 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}"));
 }
Esempio n. 4
0
 public static AccountRequest Info()
 {
     return((AccountRequest)HtmlService.PostJson <AccountRequest>(new Uri("https://www.premiumize.me/api/account/info")));
 }
Esempio n. 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}")));
 }
Esempio n. 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}"));
 }
Esempio n. 7
0
 public static TransferRequest List()
 {
     return((TransferRequest)HtmlService.GetJson <TransferRequest>(new Uri("https://www.premiumize.me/api/transfer/list")));
 }
Esempio n. 8
0
 public static TransferRequest2 Create2(string src)
 {
     return((TransferRequest2)HtmlService.PostJson <TransferRequest2>(new Uri("https://www.premiumize.me/api/transfer/create"), $"src={src}"));
 }
Esempio n. 9
0
 public static BaseRequest ClearFinished()
 {
     return((BaseRequest)HtmlService.PostJson <BaseRequest>(new Uri("https://www.premiumize.me/api/transfer/clearfinished")));
 }