Optional
username: stringYour MyPlex username
Optional
password: stringYour MyPlex password
Optional
token: stringToken used to access this client.
timeout in seconds on initial connect to myplex
Optional
server: PlexServernot often available
Optional
authenticationauth token for user by plex
Optional
certificateUnknown
Optional
emailYour current Plex email address
Optional
entitlementsList of devices your allowed to use with this account
Optional
guestUnknown
Optional
homeUnknown
Optional
homeUnknown
Optional
idYour Plex account ID
Optional
localeYour Plex locale
Optional
mailingOptional
mailingYour current mailing list status.
Optional
maxUnknown
Optional
passwordYour MyPlex password
Optional
queueEmail address to add items to your Watch Later
queue.
Optional
restrictedUnknown
Optional
scrobbleDescription
Optional
servernot often available
Optional
subscriptionTrue if your subsctiption is active
Optional
subscriptionList of features allowed on your subscription
Optional
subscriptionName of subscription plan
Optional
subscriptionString representation of subscriptionActive
Optional
thumbURL of your account thumbnail
timeout in seconds on initial connect to myplex
Optional
titleUnknown. - Looks like an alias for username
Optional
tokenToken used to access this client.
Optional
usernameYour MyPlex username
Optional
uuidUnknown
Static
keyReturns a new :class:~server.PlexServer
or :class:~client.PlexClient
object.
Often times there is more than one address specified for a server or client.
This function will prioritize local connections before remote and HTTPS before HTTP.
After trying to connect to all available addresses for this resource and
assuming at least one connection was successful, the PlexServer object is built and returned.
Name to match against.
Optional
clientId: stringclientIdentifier to match against.
Returns a list of all :class:~plexapi.myplex.MyPlexDevice
objects connected to the server.
Main method used to handle HTTPS requests to the Plex client. This method helps by encoding the response to utf-8 and parsing the returned XML into and ElementTree object. Returns None if no data exists in the response. TODO: use headers
Optional
headers: anyOptional
username: stringOptional
password: stringReturns the :class:~plexapi.myplex.MyPlexResource
that matches the name specified.
Static
getThis follows the outline described in https://forums.plex.tv/t/authenticating-with-plex/609370
to fetch a token and potentially compromise username and password. To use first call getWebLogin()
and present the returned uri to a user to go to, then await webLoginCheck()
. If you pass in a
forwardUrl
, then send the user to the returned uri, and when a request comes in on the passed in
url, then await webLoginCheck()
.
Static
webPass in the webLogin
object obtained from getWebLogin()
and this will poll Plex to see if
the user agreed. It returns a connected MyPlexAccount
or throws an error.
MyPlex account and profile information. This object represents the data found Account on the myplex.tv servers at the url https://plex.tv/users/account. You may create this object directly by passing in your username & password (or token). There is also a convenience method provided at :class:
~plexapi.server.PlexServer.myPlexAccount()
which will create and return this object.