pyload

0.1.2 • Public • Published

Unofficial pyload API SDK for Nodejs

Install

If you just want to use pyload, you should use this command:

npm install pyload # OR yarn add pyload

Example Usage

const Pyload = require("pyload");

const py = new Pyload('https://py.f97.xyz')

await py.login({
  username: 'admin',
  password: 'password'
})

const types = await py.getAccountTypes()

Documentation

  • [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)

Package Sidebar

Install

npm i pyload

Weekly Downloads

6

Version

0.1.2

License

MIT

Unpacked Size

19.9 kB

Total Files

26

Last publish

Collaborators

  • f97