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