diff --git a/lib/class/plex_api.class.php b/lib/class/plex_api.class.php index 67d0c279..afb04caa 100644 --- a/lib/class/plex_api.class.php +++ b/lib/class/plex_api.class.php @@ -887,4 +887,15 @@ class Plex_Api } } } + + protected static function get_users_account($authtoken='') + { + if (empty($authtoken)) { + $authtoken = Plex_XML_Data::getMyPlexAuthToken(); + } + + $action = 'users/account?auth_token=' . $authtoken; + $res = self::myPlexRequest($action); + return $res['xml']; + } }