Plex
Get list of friends of the user logged in
Server
Media
Butler
Plex
Library
- GETGet Hash Value
- GETGet Recently Added
- GETGet All Libraries
- GETGet library details
- DELDelete library section
- GETGet library items
- GETGet all media of library
- GETRefresh Metadata Of The Library
- GETSearch library
- GETGet Genres of library media
- GETGet Countries of library media
- GETGet Actors of library media
- GETSearch All Libraries
- GETGet Media Metadata
- GETGet Items Children
- GETGet Top Watched Content
- GETGet On Deck
Watchlist
Playlists
Authentication
Sessions
Plex
Get list of friends of the user logged in
Get friends of provided auth token.
GET
/
friends
declare(strict_types=1);
require 'vendor/autoload.php';
use LukeHagar\Plex_API;
$sdk = Plex_API\PlexAPI::builder()
->setSecurity(
'<YOUR_API_KEY_HERE>'
)
->build();
$response = $sdk->plex->getUserFriends(
);
if ($response->friends !== null) {
// handle response
}
[
{
"email": "username@email.com",
"friendlyName": "exampleUser",
"home": true,
"id": 0,
"restricted": false,
"sharedServers": [],
"sharedSources": [],
"status": "accepted",
"thumb": "https://plex.tv/users/7d1916e0d8f6e76b/avatar?c=1694481578",
"title": "username123",
"username": "username123",
"uuid": "7d1916e0d8f6e76b"
}
]
Authorizations
Plex Authentication Token
Response
200
application/json
Friends Data
The response is of type object[]
.
declare(strict_types=1);
require 'vendor/autoload.php';
use LukeHagar\Plex_API;
$sdk = Plex_API\PlexAPI::builder()
->setSecurity(
'<YOUR_API_KEY_HERE>'
)
->build();
$response = $sdk->plex->getUserFriends(
);
if ($response->friends !== null) {
// handle response
}
[
{
"email": "username@email.com",
"friendlyName": "exampleUser",
"home": true,
"id": 0,
"restricted": false,
"sharedServers": [],
"sharedSources": [],
"status": "accepted",
"thumb": "https://plex.tv/users/7d1916e0d8f6e76b/avatar?c=1694481578",
"title": "username123",
"username": "username123",
"uuid": "7d1916e0d8f6e76b"
}
]