Options
All
  • Public
  • Public/Protected
  • All
Menu

Class JDownloaderClient

Hierarchy

Index

Constructors

constructor

  • new JDownloaderClient(email: string, password: string, appKey?: string, apiVer?: number): JDownloaderClient

Methods

Protected callDevice

  • callDevice(query: string, deviceId: string, params?: object): Promise<any>
  • Call the device with an action

    Parameters

    • query: string

      The query to make to the device

    • deviceId: string

      The ID of the device

    • Optional params: object

      The parameters to the query

    Returns Promise<any>

Protected checkIfConnected

  • checkIfConnected(): void

connect

  • connect(): Promise<void>
  • Connect to MyJDownloader with the credentils provided in the constructor

    Returns Promise<void>

disconnect

  • disconnect(): Promise<void>

downloadsQueryLinks

  • List links in the downloads section

    Official docs

    Parameters

    • deviceId: string

      The ID of the device

    • Default value options: ILinkQuery = {}

    Returns Promise<IDownloadLink[]>

downloadsQueryPackages

getDirectConnectionInfos

linkGrabberAddLinks

linkGrabberQueryLinks

  • List links in the link grabber section

    Official docs

    Parameters

    • deviceId: string

      The ID of the device

    • Default value options: ICrawledLinkQuery = {}

    Returns Promise<ICrawledLink[]>

listDevices

  • listDevices(): Promise<IDevice[]>

reconnect

  • reconnect(): Promise<void>
  • Reconnects to MyJDownloader with the credentils provided in the constructor

    Returns Promise<void>

Generated using TypeDoc