mirror of
https://github.com/Yetangitu/ampache
synced 2025-10-05 10:49:37 +02:00
Add missing Plex get_users_account function
This commit is contained in:
parent
ae792e2611
commit
284cd23bb6
1 changed files with 11 additions and 0 deletions
|
@ -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'];
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue