Options
All
  • Public
  • Public/Protected
  • All
Menu

A connection to a Plex server

Hierarchy

  • ServerConnection

Index

Constructors

Properties

Methods

Constructors

constructor

Properties

parent

parent: Parent

uri

uri: string

Methods

fetch

  • fetch(path: string, options?: RequestOptions): Promise<any>
  • Fetch a path on this server as JSON. If the response is not JSON, it will return a promise of the response.

    Parameters

    • path: string
    • Default value options: RequestOptions = {}

    Returns Promise<any>

getAuthenticatedUrl

  • getAuthenticatedUrl(path: string, params?: Params): string
  • Given a path, return a fully qualified URL Includes the X-Plex-Token parameter in the URL

    Parameters

    • path: string
    • Default value params: Params = {}

    Returns string

getUrl

  • getUrl(path: string, params?: Params): string
  • Given a path, return a fully qualified URL

    Parameters

    • path: string
    • Default value params: Params = {}

    Returns string

headers

  • headers(): object

Legend

  • Module
  • Object literal
  • Variable
  • Function
  • Function with type parameter
  • Index signature
  • Type alias
  • Type alias with type parameter
  • Enumeration
  • Enumeration member
  • Property
  • Method
  • Interface
  • Interface with type parameter
  • Constructor
  • Property
  • Method
  • Index signature
  • Class
  • Class with type parameter
  • Constructor
  • Property
  • Method
  • Accessor
  • Index signature
  • Inherited constructor
  • Inherited property
  • Inherited method
  • Inherited accessor
  • Protected property
  • Protected method
  • Protected accessor
  • Private property
  • Private method
  • Private accessor
  • Static property
  • Static method

Generated using TypeDoc