1
0
Fork 0
mirror of https://github.com/Yetangitu/ampache synced 2025-10-05 02:39:47 +02:00

Add missing Plex get_users_account function

This commit is contained in:
Afterster 2014-03-04 23:31:27 +01:00
parent ae792e2611
commit 284cd23bb6

View file

@ -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'];
}
}