If you just want to use pyload, you should use this command:
npm install pyload # OR yarn add pyload
const Pyload = require("pyload");
const py = new Pyload('https://py.f97.xyz')
await py.login({
username: 'admin',
password: 'password'
})
const types = await py.getAccountTypes()
- [x]
constructor
- [ ] addFiles(pid, links)
- [x]
addPackage
- [ ] call(info)
- [ ] changePassword(user, oldpw, newpw)
- [ ] checkAndAddPackages(links[, dest])
- [ ] checkAuth(username, password[, remoteip])
- [x]
checkOnlineStatus
- [ ] checkOnlineStatusContainer(urls, container, data)
- [x]
checkURLs
- [ ] deleteFiles(fids)
- [ ] deleteFinished()
- [ ] deletePackages(pids)
- [x]
freeSpace
- [x]
generateAndAddPackages
- [ ] generatePackages(links)
- [x]
getAccountTypes
- [ ] getAccounts(refresh)
- [x]
getAllInfo
- [x]
getAllUserData
- [ ] getCaptchaTask([exclusive])
- [ ] getCaptchaTaskStatus(tid)
- [x]
getCollector
- [x]
getCollectorData
- [ ] getConfig()
- [ ] getConfigDict()
- [ ] getConfigValue(category, option[, section])
- [ ] getEvents(uuid)
- [ ] getFileData(fid)
- [ ] getFileOrder(pid)
- [x]
getInfoByPlugin
- [ ] getLog([offset])
- [ ] getPackageData(pid)
- [ ] getPackageInfo(pid)
- [ ] getPackageOrder(destination)
- [ ] getPluginConfig()
- [ ] getPluginConfigDict()
- [ ] getQueue()
- [ ] getQueueData()
- [ ] getServerVersion()
- [ ] getServices()
- [x]
getUserData
- [ ] hasService(plugin, func)
- [ ] isAuthorized(func, userdata)
- [ ] isCaptchaWaiting()
- [ ] isTimeDownload()
- [ ] isTimeReconnect()
- [ ] kill()
- [x]
login
- [ ] moveFiles(fids, pid)
- [ ] movePackage(destination, pid)
- [ ] orderFile(fid, position)
- [ ] orderPackage(pid, position)
- [x]
parseURLs
- [ ] pauseServer()
- [ ] pollResults(rid)
- [ ] pullFromQueue(pid)
- [ ] pushToQueue(pid)
- [ ] recheckPackage(pid)
- [ ] removeAccount(plugin, account)
- [ ] restart()
- [ ] restartFailed()
- [ ] restartFile(fid)
- [ ] restartPackage(pid)
- [ ] setCaptchaResult(tid, result)
- [ ] setConfigValue(category, option, value[, ...])
- [ ] setPackageData(pid, data)
- [ ] setPackageName(pid, name)
- [ ] setUserPermission(user, permission, role)
- [x]
statusDownloads
- [ ] statusServer()
- [ ] stopAllDownloads()
- [ ] stopDownloads(fids)
- [ ] togglePause()
- [ ] toggleReconnect()
- [ ] unpauseServer()
- [ ] updateAccount(plugin, account[, password, ...])
- [ ] uploadContainer(filename, data)