Class MyPlexResource

This object represents resources connected to your Plex server that can provide content such as Plex Media Servers, iPhone or Android clients, etc.

Constructors

Properties

TAG: string = 'Device'
accessToken: string

This resources accesstoken

account: MyPlexAccount
clientIdentifier: string

Unique ID for this resource

connections: ResourceConnection[]

List of !:class!:~myplex.ResourceConnection objects for this resource

createdAt: Date

Timestamp this resource first connected to your server

device: string

Best guess on the type of device this is (PS, iPhone, Linux, etc)

home: boolean

Unknown

lastSeenAt: Date

Timestamp this resource last connected

name: string

Descriptive name of this resource

owned: boolean

True if this resource is one of your own (you logged into it)

platform: string

OS the resource is running (Linux, Windows, Chrome, etc.)

platformVersion: string

Version of the platform

presence: boolean

True if the resource is online

product: string

Plex product (Plex Media Server, Plex for iOS, Plex Web, etc.)

productVersion: string

Version of the product.

provides: string

List of services this resource provides (client, server, player, pubsub-player, etc.)

synced: boolean

Unknown (possibly True if the resource has synced content?)

key: string = 'https://plex.tv/api/v2/resources?includeHttps=1&includeRelay=1'

Methods

  • Parameters

    • ssl: boolean = null
    • Optionaltimeout: number

    Returns Promise<PlexServer>

  • Remove this device from your account

    Returns Promise<void>