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