PremiumizeMeAPI
Description
A simple JS-Wrapper for the official PremiumizeMe-API.
Features
- Includes all official API-Calls
- Works with NodeJS Version 12.4.0 or higher
- Uses Promises to return the json data
- Supports .nzb and .torrent files to create a transfer
- Authentication through an API-Key
Install
npm install premiumize-me-api
Usage
Node
const PremiumizeMeAPI = let testAPI = "YOUR_API_KEY";
getFolderList(String folder_id)
testAPI.getFolderList(folder_id).then(console.log);
The result for the getFolderList()
command looks like this:
createFolder(String folder_name, String parent_id)
testAPI.createFolder(folder_name, parent_id).then(console.log)
The result for the createFolder()
command looks like this:
renameFolder(String folder_id, String folder_name)
testAPI.renameFolder(folder_id, folder_name).then(console.log)
The result for the renameFolder()
command looks like this:
pasteToFolder(String folder_id, String|String[] toPasteFolderIds, String|String[] toPasteFileIds)
testAPI.pasteToFolder(folder_id, toPasteFolderIds, toPasteFileIds).then(console.log);
The result for the pasteToFolder()
command looks like this:
deleteFolder(String folder_id)
testAPI.deleteFolder(folder_id).then(console.log);
The result for the deleteFolder()
command looks like this:
uploadToFolder(String folder_id)
testAPI.uploadToFolder(folder_id).then(console.log);
The result for the uploadToFolder()
command looks like this:
deleteFile(String file_id)
testAPI.deleteFile(file_id).then(console.log);
The result for the deleteFile()
command looks like this:
renameFile(String file_id, String file_name)
testAPI.renameFile(file_id, file_name).then(console.log);
The result for the renameFile()
command looks like this:
fetchFileDetails(String file_id)
testAPI.fetchFileDetails(file_id).then(console.log);
The result for the fetchFileDetails()
command looks like this:
createTransfer(String|ReadStream src_address_file, String folder_id)
testAPI.createTransfer(src_address_file, folder_id).then(console.log);
The result for the createTransfer()
command looks like this:
createDirectDownload(String src_address)
testAPI.createDirectDownload(src_address).then(console.log);
The result for the createDirectDownload()
command looks like this:
getTransferList()
testAPI.getTransferList().then(console.log);
The result for the getTransferList()
command looks like this:
clearTransferList()
testAPI.clearTransferList().then(console.log);
The result for the clearTransferList()
command looks like this:
deleteTransfer(String transfer_id)
testAPI.deleteTransfer(transfer_id).then(console.log);
The result for the deleteTransfer()
command looks like this:
getAccountInfo()
testAPI.getAccountInfo().then(console.log);
The result for the getAccountInfo()
command looks like this:
createZipDownload(String|String[] file_id, String|String[] folder_id)
testAPI.createZipDownload(file_id, folder_id).then(console.log);
The result for the createZipDownload()
command looks like this:
checkHosterAvailability(String|String[] src_address)
testAPI.checkHosterAvailability(src_address).then(console.log);
The result for the checkHosterAvailability()
command looks like this:
getServiceList()
testAPI.getServiceList().then(console.log);
The result for the getServiceList()
command looks like this: