Authorizations
Response
200 - application/json
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->server->getMediaProviders(
xPlexToken: 'CV5xoxjTpFKUzBTShsaf'
);
if ($response->object !== null) {
// handle response
}{
"MediaContainer": {
"identifier": "<string>",
"offset": 123,
"size": 123,
"totalSize": 123,
"allowCameraUpload": true,
"allowChannelAccess": true,
"allowMediaDeletion": true,
"allowSharing": true,
"allowSync": true,
"allowTuners": true,
"backgroundProcessing": true,
"certificate": true,
"companionProxy": true,
"countryCode": "<string>",
"diagnostics": "<string>",
"eventStream": true,
"friendlyName": "<string>",
"hubSearch": true,
"itemClusters": true,
"livetv": 7,
"machineIdentifier": "<any>",
"mediaProviders": true,
"multiuser": true,
"musicAnalysis": 2,
"myPlex": true,
"myPlexMappingState": "<any>",
"myPlexSigninState": "<any>",
"myPlexSubscription": true,
"myPlexUsername": "<string>",
"offlineTranscode": "<any>",
"ownerFeatures": "<string>",
"platform": "<string>",
"platformVersion": "<string>",
"pluginHost": true,
"pushNotifications": true,
"readOnlyLibraries": true,
"streamingBrainABRVersion": 123,
"streamingBrainVersion": 123,
"sync": true,
"transcoderActiveVideoSessions": 123,
"transcoderAudio": true,
"transcoderLyrics": true,
"transcoderPhoto": true,
"transcoderSubtitles": true,
"transcoderVideo": true,
"transcoderVideoBitrates": "<any>",
"transcoderVideoQualities": "<string>",
"transcoderVideoResolutions": "<any>",
"updatedAt": 123,
"updater": true,
"version": "<string>",
"voiceSearch": true,
"Feature": [
{
"Directory": [
{
"title": "<string>",
"type": "<string>",
"art": "<string>",
"content": true,
"filter": "<string>",
"hasPrefs": true,
"hasStoreServices": true,
"hubKey": "<string>",
"identifier": "<string>",
"key": "<string>",
"lastAccessedAt": 123,
"Pivot": [
{
"title": "<string>",
"type": "<string>",
"context": "<string>",
"id": "<string>",
"key": "<string>",
"symbol": "<string>"
}
],
"share": 123,
"thumb": "<string>",
"titleBar": "<string>"
}
],
"key": "<string>",
"type": "<string>"
}
],
"protocols": "<string>",
"title": "<string>",
"types": "<string>"
}
}Get the list of all available media providers for this PMS. This will generally include the library provider and possibly EPG if DVR is set up.
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->server->getMediaProviders(
xPlexToken: 'CV5xoxjTpFKUzBTShsaf'
);
if ($response->object !== null) {
// handle response
}{
"MediaContainer": {
"identifier": "<string>",
"offset": 123,
"size": 123,
"totalSize": 123,
"allowCameraUpload": true,
"allowChannelAccess": true,
"allowMediaDeletion": true,
"allowSharing": true,
"allowSync": true,
"allowTuners": true,
"backgroundProcessing": true,
"certificate": true,
"companionProxy": true,
"countryCode": "<string>",
"diagnostics": "<string>",
"eventStream": true,
"friendlyName": "<string>",
"hubSearch": true,
"itemClusters": true,
"livetv": 7,
"machineIdentifier": "<any>",
"mediaProviders": true,
"multiuser": true,
"musicAnalysis": 2,
"myPlex": true,
"myPlexMappingState": "<any>",
"myPlexSigninState": "<any>",
"myPlexSubscription": true,
"myPlexUsername": "<string>",
"offlineTranscode": "<any>",
"ownerFeatures": "<string>",
"platform": "<string>",
"platformVersion": "<string>",
"pluginHost": true,
"pushNotifications": true,
"readOnlyLibraries": true,
"streamingBrainABRVersion": 123,
"streamingBrainVersion": 123,
"sync": true,
"transcoderActiveVideoSessions": 123,
"transcoderAudio": true,
"transcoderLyrics": true,
"transcoderPhoto": true,
"transcoderSubtitles": true,
"transcoderVideo": true,
"transcoderVideoBitrates": "<any>",
"transcoderVideoQualities": "<string>",
"transcoderVideoResolutions": "<any>",
"updatedAt": 123,
"updater": true,
"version": "<string>",
"voiceSearch": true,
"Feature": [
{
"Directory": [
{
"title": "<string>",
"type": "<string>",
"art": "<string>",
"content": true,
"filter": "<string>",
"hasPrefs": true,
"hasStoreServices": true,
"hubKey": "<string>",
"identifier": "<string>",
"key": "<string>",
"lastAccessedAt": 123,
"Pivot": [
{
"title": "<string>",
"type": "<string>",
"context": "<string>",
"id": "<string>",
"key": "<string>",
"symbol": "<string>"
}
],
"share": 123,
"thumb": "<string>",
"titleBar": "<string>"
}
],
"key": "<string>",
"type": "<string>"
}
],
"protocols": "<string>",
"title": "<string>",
"types": "<string>"
}
}Show child attributes
Was this page helpful?