Authorizations
Headers
Available options:
application/json, application/xml Example:
Example:
Example:
Example:
Example:
Example:
Example:
Example:
Example:
Example:
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->authentication->getSourceConnectionInformation(
source: 'server://client-identifier'
);
if ($response->statusCode === 200) {
// handle response
}{
"MediaContainer": {
"identifier": "<string>",
"offset": 123,
"size": 123,
"totalSize": 123,
"Device": {
"accessToken": "<string>",
"clientIdentifier": "<string>",
"Connection": [
{
"address": "<string>",
"local": true,
"port": 123,
"protocol": "<string>",
"relay": true,
"uri": "<string>"
}
],
"name": "<string>"
}
}
}If a caller requires connection details and a transient token for a source that is known to the server, for example a cloud media provider or shared PMS, then this endpoint can be called. This endpoint is only accessible with either an admin token or a valid transient token generated from an admin token.
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->authentication->getSourceConnectionInformation(
source: 'server://client-identifier'
);
if ($response->statusCode === 200) {
// handle response
}{
"MediaContainer": {
"identifier": "<string>",
"offset": 123,
"size": 123,
"totalSize": 123,
"Device": {
"accessToken": "<string>",
"clientIdentifier": "<string>",
"Connection": [
{
"address": "<string>",
"local": true,
"port": 123,
"protocol": "<string>",
"relay": true,
"uri": "<string>"
}
],
"name": "<string>"
}
}
}application/json, application/xml Show child attributes
Was this page helpful?