Plex
Get Companions Data
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 Companions Data
Get Companions Data
GET
/
companions
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->getCompanionsData(
);
if ($response->responseBodies !== null) {
// handle response
}
[
{
"identifier": "tv.plex.sonos",
"baseURL": "https://sonos.plex.tv",
"title": "Sonos",
"linkURL": "https://sonos.plex.tv/link",
"provides": "client,player",
"token": "<string>"
}
]
Authorizations
Plex Authentication Token
Response
200
application/json
Companions 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->getCompanionsData(
);
if ($response->responseBodies !== null) {
// handle response
}
[
{
"identifier": "tv.plex.sonos",
"baseURL": "https://sonos.plex.tv",
"title": "Sonos",
"linkURL": "https://sonos.plex.tv/link",
"provides": "client,player",
"token": "<string>"
}
]