pixeldrainjs
Version:
A NodeJS Wrapper for the pixeldrain.com API
34 lines (33 loc) • 951 B
TypeScript
import { PixeldrainFileInformation } from "../interfaces/file/fileinterfaces";
import { PixeldrainFileUploadOptions } from "../interfaces/file/fileuploadinterfaces";
import { List } from "../interfaces/list/listinterfaces";
export declare class PixeldrainService {
APIKey: string;
readonly BASE_URL = "https://pixeldrain.com/api";
private authorizationHeader;
constructor(APIKey?: string);
/**
* uploadFile
*/
uploadFile(file: PixeldrainFileUploadOptions): Promise<string>;
/**
* deleteFile
*/
deleteFile(fileID: string): Promise<void>;
/**
* fileInfo
*/
getFileInfo(fileID: string): Promise<PixeldrainFileInformation>;
/**
* downloadFile
*/
downloadFile(path: string, id: string): Promise<void>;
/**
* createList
*/
createList(list: List): Promise<string>;
/**
* listInformation
*/
getListInformation(listID: string): void;
}