mirror of
https://github.com/LukeHagar/plexphp.git
synced 2025-12-06 04:20:51 +00:00
ci: regenerated with OpenAPI Doc , Speakeasy CLI 1.267.2
This commit is contained in:
@@ -1,12 +1,12 @@
|
||||
lockVersion: 2.0.0
|
||||
id: 01a51eb2-5d90-4a24-b154-68e491d02c36
|
||||
management:
|
||||
docChecksum: a91eaf9ec1e6a3a6f4bf0571f5b18bae
|
||||
docChecksum: 7a43cd3413d535205cfaee20a4b6a250
|
||||
docVersion: 0.0.3
|
||||
speakeasyVersion: 1.257.1
|
||||
generationVersion: 2.308.2
|
||||
releaseVersion: 0.4.1
|
||||
configChecksum: cfb95ef489f6ef2529809593e458e410
|
||||
speakeasyVersion: 1.267.2
|
||||
generationVersion: 2.312.1
|
||||
releaseVersion: 0.4.2
|
||||
configChecksum: 6e2b8f25832e186ecade9d4cbadba1d7
|
||||
repoURL: https://github.com/LukeHagar/plexphp.git
|
||||
repoSubDirectory: .
|
||||
installationURL: https://github.com/LukeHagar/plexphp
|
||||
|
||||
@@ -12,7 +12,7 @@ generation:
|
||||
auth:
|
||||
oAuth2ClientCredentialsEnabled: false
|
||||
php:
|
||||
version: 0.4.1
|
||||
version: 0.4.2
|
||||
imports:
|
||||
option: openapi
|
||||
paths:
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
speakeasyVersion: 1.267.0
|
||||
speakeasyVersion: 1.267.2
|
||||
sources:
|
||||
my-source: {}
|
||||
targets:
|
||||
|
||||
12
README.md
12
README.md
@@ -54,7 +54,7 @@ $security = new Components\Security();
|
||||
$security->accessToken = '<YOUR_API_KEY_HERE>';
|
||||
|
||||
$sdk = Plex_API\PlexAPI::builder()
|
||||
->setXPlexClientIdentifier('<value>')
|
||||
->setXPlexClientIdentifier('Postman')
|
||||
->setSecurity($security)
|
||||
->build();
|
||||
|
||||
@@ -222,11 +222,11 @@ use LukeHagar\Plex_API\Models\Components;
|
||||
use LukeHagar\Plex_API\Models\Operations;
|
||||
|
||||
$sdk = Plex_API\PlexAPI::builder()
|
||||
->setXPlexClientIdentifier('<value>')
|
||||
->setXPlexClientIdentifier('Postman')
|
||||
->build();
|
||||
|
||||
try {
|
||||
$response = $sdk->plex->getPin('https://plex.tv/api/v2', false, '<value>');
|
||||
$response = $sdk->plex->getPin('https://plex.tv/api/v2', false, 'Postman');
|
||||
|
||||
if ($response->twoHundredApplicationJsonObject !== null) {
|
||||
// handle response
|
||||
@@ -243,7 +243,7 @@ try {
|
||||
|
||||
A parameter is configured globally. This parameter must be set on the SDK client instance itself during initialization. When configured as an option during SDK initialization, This global value will be used as the default on the operations that use it. When such operations are called, there is a place in each to override the global value, if needed.
|
||||
|
||||
For example, you can set `X-Plex-Client-Identifier` to `'<value>'` at SDK initialization and then you do not have to pass the same value on calls to operations like `getPin`. But if you want to do so you may, which will locally override the global setting. See the example code below for a demonstration.
|
||||
For example, you can set `X-Plex-Client-Identifier` to `'Postman'` at SDK initialization and then you do not have to pass the same value on calls to operations like `getPin`. But if you want to do so you may, which will locally override the global setting. See the example code below for a demonstration.
|
||||
|
||||
|
||||
### Available Globals
|
||||
@@ -272,11 +272,11 @@ use LukeHagar\Plex_API\Models\Components;
|
||||
use LukeHagar\Plex_API\Models\Operations;
|
||||
|
||||
$sdk = Plex_API\PlexAPI::builder()
|
||||
->setXPlexClientIdentifier('<value>')
|
||||
->setXPlexClientIdentifier('Postman')
|
||||
->build();
|
||||
|
||||
try {
|
||||
$response = $sdk->plex->getPin(false, '<value>');
|
||||
$response = $sdk->plex->getPin(false, 'Postman');
|
||||
|
||||
if ($response->twoHundredApplicationJsonObject !== null) {
|
||||
// handle response
|
||||
|
||||
10
RELEASES.md
10
RELEASES.md
@@ -142,4 +142,12 @@ Based on:
|
||||
- OpenAPI Doc
|
||||
- Speakeasy CLI 1.267.0 (2.312.0) https://github.com/speakeasy-api/speakeasy
|
||||
### Generated
|
||||
- [php v0.4.1] .
|
||||
- [php v0.4.1] .
|
||||
|
||||
## 2024-04-22 16:14:44
|
||||
### Changes
|
||||
Based on:
|
||||
- OpenAPI Doc
|
||||
- Speakeasy CLI 1.267.2 (2.312.1) https://github.com/speakeasy-api/speakeasy
|
||||
### Generated
|
||||
- [php v0.4.2] .
|
||||
2
USAGE.md
2
USAGE.md
@@ -13,7 +13,7 @@ $security = new Components\Security();
|
||||
$security->accessToken = '<YOUR_API_KEY_HERE>';
|
||||
|
||||
$sdk = Plex_API\PlexAPI::builder()
|
||||
->setXPlexClientIdentifier('<value>')
|
||||
->setXPlexClientIdentifier('Postman')
|
||||
->setSecurity($security)
|
||||
->build();
|
||||
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
|
||||
## Fields
|
||||
|
||||
| Field | Type | Required | Description |
|
||||
| --------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
|
||||
| `strong` | *?bool* | :heavy_minus_sign: | Determines the kind of code returned by the API call<br/>Strong codes are used for Pin authentication flows<br/>Non-Strong codes are used for `Plex.tv/link`<br/> |
|
||||
| `xPlexClientIdentifier` | *?string* | :heavy_minus_sign: | The unique identifier for the client application<br/>This is used to track the client application and its usage<br/>(UUID, serial number, or other number unique per device)<br/> |
|
||||
| Field | Type | Required | Description | Example |
|
||||
| --------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
|
||||
| `strong` | *?bool* | :heavy_minus_sign: | Determines the kind of code returned by the API call<br/>Strong codes are used for Pin authentication flows<br/>Non-Strong codes are used for `Plex.tv/link`<br/> | |
|
||||
| `xPlexClientIdentifier` | *?string* | :heavy_minus_sign: | The unique identifier for the client application<br/>This is used to track the client application and its usage<br/>(UUID, serial number, or other number unique per device)<br/> | Postman |
|
||||
@@ -3,7 +3,7 @@
|
||||
|
||||
## Fields
|
||||
|
||||
| Field | Type | Required | Description |
|
||||
| --------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
|
||||
| `pinID` | *string* | :heavy_check_mark: | The PinID to retrieve an access token for |
|
||||
| `xPlexClientIdentifier` | *?string* | :heavy_minus_sign: | The unique identifier for the client application<br/>This is used to track the client application and its usage<br/>(UUID, serial number, or other number unique per device)<br/> |
|
||||
| Field | Type | Required | Description | Example |
|
||||
| --------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
|
||||
| `pinID` | *string* | :heavy_check_mark: | The PinID to retrieve an access token for | |
|
||||
| `xPlexClientIdentifier` | *?string* | :heavy_minus_sign: | The unique identifier for the client application<br/>This is used to track the client application and its usage<br/>(UUID, serial number, or other number unique per device)<br/> | Postman |
|
||||
@@ -37,7 +37,7 @@ $security = new Components\Security();
|
||||
$security->accessToken = '<YOUR_API_KEY_HERE>';
|
||||
|
||||
$sdk = Plex_API\PlexAPI::builder()
|
||||
->setXPlexClientIdentifier('<value>')
|
||||
->setXPlexClientIdentifier('Postman')
|
||||
->setSecurity($security)->build();
|
||||
|
||||
try {
|
||||
@@ -78,7 +78,7 @@ $security = new Components\Security();
|
||||
$security->accessToken = '<YOUR_API_KEY_HERE>';
|
||||
|
||||
$sdk = Plex_API\PlexAPI::builder()
|
||||
->setXPlexClientIdentifier('<value>')
|
||||
->setXPlexClientIdentifier('Postman')
|
||||
->setSecurity($security)->build();
|
||||
|
||||
try {
|
||||
|
||||
@@ -33,7 +33,7 @@ $security = new Components\Security();
|
||||
$security->accessToken = '<YOUR_API_KEY_HERE>';
|
||||
|
||||
$sdk = Plex_API\PlexAPI::builder()
|
||||
->setXPlexClientIdentifier('<value>')
|
||||
->setXPlexClientIdentifier('Postman')
|
||||
->setSecurity($security)->build();
|
||||
|
||||
try {
|
||||
@@ -85,7 +85,7 @@ $security = new Components\Security();
|
||||
$security->accessToken = '<YOUR_API_KEY_HERE>';
|
||||
|
||||
$sdk = Plex_API\PlexAPI::builder()
|
||||
->setXPlexClientIdentifier('<value>')
|
||||
->setXPlexClientIdentifier('Postman')
|
||||
->setSecurity($security)->build();
|
||||
|
||||
try {
|
||||
|
||||
@@ -34,7 +34,7 @@ $security = new Components\Security();
|
||||
$security->accessToken = '<YOUR_API_KEY_HERE>';
|
||||
|
||||
$sdk = Plex_API\PlexAPI::builder()
|
||||
->setXPlexClientIdentifier('<value>')
|
||||
->setXPlexClientIdentifier('Postman')
|
||||
->setSecurity($security)->build();
|
||||
|
||||
try {
|
||||
@@ -79,7 +79,7 @@ $security = new Components\Security();
|
||||
$security->accessToken = '<YOUR_API_KEY_HERE>';
|
||||
|
||||
$sdk = Plex_API\PlexAPI::builder()
|
||||
->setXPlexClientIdentifier('<value>')
|
||||
->setXPlexClientIdentifier('Postman')
|
||||
->setSecurity($security)->build();
|
||||
|
||||
try {
|
||||
@@ -120,7 +120,7 @@ $security = new Components\Security();
|
||||
$security->accessToken = '<YOUR_API_KEY_HERE>';
|
||||
|
||||
$sdk = Plex_API\PlexAPI::builder()
|
||||
->setXPlexClientIdentifier('<value>')
|
||||
->setXPlexClientIdentifier('Postman')
|
||||
->setSecurity($security)->build();
|
||||
|
||||
try {
|
||||
@@ -166,7 +166,7 @@ $security = new Components\Security();
|
||||
$security->accessToken = '<YOUR_API_KEY_HERE>';
|
||||
|
||||
$sdk = Plex_API\PlexAPI::builder()
|
||||
->setXPlexClientIdentifier('<value>')
|
||||
->setXPlexClientIdentifier('Postman')
|
||||
->setSecurity($security)->build();
|
||||
|
||||
try {
|
||||
@@ -216,7 +216,7 @@ $security = new Components\Security();
|
||||
$security->accessToken = '<YOUR_API_KEY_HERE>';
|
||||
|
||||
$sdk = Plex_API\PlexAPI::builder()
|
||||
->setXPlexClientIdentifier('<value>')
|
||||
->setXPlexClientIdentifier('Postman')
|
||||
->setSecurity($security)->build();
|
||||
|
||||
try {
|
||||
|
||||
@@ -32,7 +32,7 @@ $security = new Components\Security();
|
||||
$security->accessToken = '<YOUR_API_KEY_HERE>';
|
||||
|
||||
$sdk = Plex_API\PlexAPI::builder()
|
||||
->setXPlexClientIdentifier('<value>')
|
||||
->setXPlexClientIdentifier('Postman')
|
||||
->setSecurity($security)->build();
|
||||
|
||||
try {
|
||||
@@ -83,7 +83,7 @@ $security = new Components\Security();
|
||||
$security->accessToken = '<YOUR_API_KEY_HERE>';
|
||||
|
||||
$sdk = Plex_API\PlexAPI::builder()
|
||||
->setXPlexClientIdentifier('<value>')
|
||||
->setXPlexClientIdentifier('Postman')
|
||||
->setSecurity($security)->build();
|
||||
|
||||
try {
|
||||
|
||||
@@ -41,7 +41,7 @@ $security = new Components\Security();
|
||||
$security->accessToken = '<YOUR_API_KEY_HERE>';
|
||||
|
||||
$sdk = Plex_API\PlexAPI::builder()
|
||||
->setXPlexClientIdentifier('<value>')
|
||||
->setXPlexClientIdentifier('Postman')
|
||||
->setSecurity($security)->build();
|
||||
|
||||
try {
|
||||
@@ -91,7 +91,7 @@ $security = new Components\Security();
|
||||
$security->accessToken = '<YOUR_API_KEY_HERE>';
|
||||
|
||||
$sdk = Plex_API\PlexAPI::builder()
|
||||
->setXPlexClientIdentifier('<value>')
|
||||
->setXPlexClientIdentifier('Postman')
|
||||
->setSecurity($security)->build();
|
||||
|
||||
try {
|
||||
@@ -137,7 +137,7 @@ $security = new Components\Security();
|
||||
$security->accessToken = '<YOUR_API_KEY_HERE>';
|
||||
|
||||
$sdk = Plex_API\PlexAPI::builder()
|
||||
->setXPlexClientIdentifier('<value>')
|
||||
->setXPlexClientIdentifier('Postman')
|
||||
->setSecurity($security)->build();
|
||||
|
||||
try {
|
||||
@@ -217,7 +217,7 @@ $security = new Components\Security();
|
||||
$security->accessToken = '<YOUR_API_KEY_HERE>';
|
||||
|
||||
$sdk = Plex_API\PlexAPI::builder()
|
||||
->setXPlexClientIdentifier('<value>')
|
||||
->setXPlexClientIdentifier('Postman')
|
||||
->setSecurity($security)->build();
|
||||
|
||||
try {
|
||||
@@ -267,7 +267,7 @@ $security = new Components\Security();
|
||||
$security->accessToken = '<YOUR_API_KEY_HERE>';
|
||||
|
||||
$sdk = Plex_API\PlexAPI::builder()
|
||||
->setXPlexClientIdentifier('<value>')
|
||||
->setXPlexClientIdentifier('Postman')
|
||||
->setSecurity($security)->build();
|
||||
|
||||
try {
|
||||
@@ -336,7 +336,7 @@ $security = new Components\Security();
|
||||
$security->accessToken = '<YOUR_API_KEY_HERE>';
|
||||
|
||||
$sdk = Plex_API\PlexAPI::builder()
|
||||
->setXPlexClientIdentifier('<value>')
|
||||
->setXPlexClientIdentifier('Postman')
|
||||
->setSecurity($security)->build();
|
||||
|
||||
try {
|
||||
@@ -387,7 +387,7 @@ $security = new Components\Security();
|
||||
$security->accessToken = '<YOUR_API_KEY_HERE>';
|
||||
|
||||
$sdk = Plex_API\PlexAPI::builder()
|
||||
->setXPlexClientIdentifier('<value>')
|
||||
->setXPlexClientIdentifier('Postman')
|
||||
->setSecurity($security)->build();
|
||||
|
||||
try {
|
||||
@@ -454,7 +454,7 @@ $security = new Components\Security();
|
||||
$security->accessToken = '<YOUR_API_KEY_HERE>';
|
||||
|
||||
$sdk = Plex_API\PlexAPI::builder()
|
||||
->setXPlexClientIdentifier('<value>')
|
||||
->setXPlexClientIdentifier('Postman')
|
||||
->setSecurity($security)->build();
|
||||
|
||||
try {
|
||||
@@ -505,7 +505,7 @@ $security = new Components\Security();
|
||||
$security->accessToken = '<YOUR_API_KEY_HERE>';
|
||||
|
||||
$sdk = Plex_API\PlexAPI::builder()
|
||||
->setXPlexClientIdentifier('<value>')
|
||||
->setXPlexClientIdentifier('Postman')
|
||||
->setSecurity($security)->build();
|
||||
|
||||
try {
|
||||
@@ -555,7 +555,7 @@ $security = new Components\Security();
|
||||
$security->accessToken = '<YOUR_API_KEY_HERE>';
|
||||
|
||||
$sdk = Plex_API\PlexAPI::builder()
|
||||
->setXPlexClientIdentifier('<value>')
|
||||
->setXPlexClientIdentifier('Postman')
|
||||
->setSecurity($security)->build();
|
||||
|
||||
try {
|
||||
@@ -604,7 +604,7 @@ $security = new Components\Security();
|
||||
$security->accessToken = '<YOUR_API_KEY_HERE>';
|
||||
|
||||
$sdk = Plex_API\PlexAPI::builder()
|
||||
->setXPlexClientIdentifier('<value>')
|
||||
->setXPlexClientIdentifier('Postman')
|
||||
->setSecurity($security)->build();
|
||||
|
||||
try {
|
||||
|
||||
@@ -34,7 +34,7 @@ $security = new Components\Security();
|
||||
$security->accessToken = '<YOUR_API_KEY_HERE>';
|
||||
|
||||
$sdk = Plex_API\PlexAPI::builder()
|
||||
->setXPlexClientIdentifier('<value>')
|
||||
->setXPlexClientIdentifier('Postman')
|
||||
->setSecurity($security)->build();
|
||||
|
||||
try {
|
||||
@@ -105,7 +105,7 @@ $security = new Components\Security();
|
||||
$security->accessToken = '<YOUR_API_KEY_HERE>';
|
||||
|
||||
$sdk = Plex_API\PlexAPI::builder()
|
||||
->setXPlexClientIdentifier('<value>')
|
||||
->setXPlexClientIdentifier('Postman')
|
||||
->setSecurity($security)->build();
|
||||
|
||||
try {
|
||||
@@ -156,7 +156,7 @@ $security = new Components\Security();
|
||||
$security->accessToken = '<YOUR_API_KEY_HERE>';
|
||||
|
||||
$sdk = Plex_API\PlexAPI::builder()
|
||||
->setXPlexClientIdentifier('<value>')
|
||||
->setXPlexClientIdentifier('Postman')
|
||||
->setSecurity($security)->build();
|
||||
|
||||
try {
|
||||
|
||||
@@ -33,7 +33,7 @@ $security = new Components\Security();
|
||||
$security->accessToken = '<YOUR_API_KEY_HERE>';
|
||||
|
||||
$sdk = Plex_API\PlexAPI::builder()
|
||||
->setXPlexClientIdentifier('<value>')
|
||||
->setXPlexClientIdentifier('Postman')
|
||||
->setSecurity($security)->build();
|
||||
|
||||
try {
|
||||
@@ -82,7 +82,7 @@ $security = new Components\Security();
|
||||
$security->accessToken = '<YOUR_API_KEY_HERE>';
|
||||
|
||||
$sdk = Plex_API\PlexAPI::builder()
|
||||
->setXPlexClientIdentifier('<value>')
|
||||
->setXPlexClientIdentifier('Postman')
|
||||
->setSecurity($security)->build();
|
||||
|
||||
try {
|
||||
@@ -132,7 +132,7 @@ $security = new Components\Security();
|
||||
$security->accessToken = '<YOUR_API_KEY_HERE>';
|
||||
|
||||
$sdk = Plex_API\PlexAPI::builder()
|
||||
->setXPlexClientIdentifier('<value>')
|
||||
->setXPlexClientIdentifier('Postman')
|
||||
->setSecurity($security)->build();
|
||||
|
||||
try {
|
||||
|
||||
@@ -45,7 +45,7 @@ $security = new Components\Security();
|
||||
$security->accessToken = '<YOUR_API_KEY_HERE>';
|
||||
|
||||
$sdk = Plex_API\PlexAPI::builder()
|
||||
->setXPlexClientIdentifier('<value>')
|
||||
->setXPlexClientIdentifier('Postman')
|
||||
->setSecurity($security)->build();
|
||||
|
||||
try {
|
||||
@@ -99,7 +99,7 @@ $security = new Components\Security();
|
||||
$security->accessToken = '<YOUR_API_KEY_HERE>';
|
||||
|
||||
$sdk = Plex_API\PlexAPI::builder()
|
||||
->setXPlexClientIdentifier('<value>')
|
||||
->setXPlexClientIdentifier('Postman')
|
||||
->setSecurity($security)->build();
|
||||
|
||||
try {
|
||||
@@ -151,7 +151,7 @@ $security = new Components\Security();
|
||||
$security->accessToken = '<YOUR_API_KEY_HERE>';
|
||||
|
||||
$sdk = Plex_API\PlexAPI::builder()
|
||||
->setXPlexClientIdentifier('<value>')
|
||||
->setXPlexClientIdentifier('Postman')
|
||||
->setSecurity($security)->build();
|
||||
|
||||
try {
|
||||
@@ -201,7 +201,7 @@ $security = new Components\Security();
|
||||
$security->accessToken = '<YOUR_API_KEY_HERE>';
|
||||
|
||||
$sdk = Plex_API\PlexAPI::builder()
|
||||
->setXPlexClientIdentifier('<value>')
|
||||
->setXPlexClientIdentifier('Postman')
|
||||
->setSecurity($security)->build();
|
||||
|
||||
try {
|
||||
@@ -251,7 +251,7 @@ $security = new Components\Security();
|
||||
$security->accessToken = '<YOUR_API_KEY_HERE>';
|
||||
|
||||
$sdk = Plex_API\PlexAPI::builder()
|
||||
->setXPlexClientIdentifier('<value>')
|
||||
->setXPlexClientIdentifier('Postman')
|
||||
->setSecurity($security)->build();
|
||||
|
||||
try {
|
||||
@@ -306,7 +306,7 @@ $security = new Components\Security();
|
||||
$security->accessToken = '<YOUR_API_KEY_HERE>';
|
||||
|
||||
$sdk = Plex_API\PlexAPI::builder()
|
||||
->setXPlexClientIdentifier('<value>')
|
||||
->setXPlexClientIdentifier('Postman')
|
||||
->setSecurity($security)->build();
|
||||
|
||||
try {
|
||||
@@ -357,7 +357,7 @@ $security = new Components\Security();
|
||||
$security->accessToken = '<YOUR_API_KEY_HERE>';
|
||||
|
||||
$sdk = Plex_API\PlexAPI::builder()
|
||||
->setXPlexClientIdentifier('<value>')
|
||||
->setXPlexClientIdentifier('Postman')
|
||||
->setSecurity($security)->build();
|
||||
|
||||
try {
|
||||
@@ -408,7 +408,7 @@ $security = new Components\Security();
|
||||
$security->accessToken = '<YOUR_API_KEY_HERE>';
|
||||
|
||||
$sdk = Plex_API\PlexAPI::builder()
|
||||
->setXPlexClientIdentifier('<value>')
|
||||
->setXPlexClientIdentifier('Postman')
|
||||
->setSecurity($security)->build();
|
||||
|
||||
try {
|
||||
@@ -460,7 +460,7 @@ $security = new Components\Security();
|
||||
$security->accessToken = '<YOUR_API_KEY_HERE>';
|
||||
|
||||
$sdk = Plex_API\PlexAPI::builder()
|
||||
->setXPlexClientIdentifier('<value>')
|
||||
->setXPlexClientIdentifier('Postman')
|
||||
->setSecurity($security)->build();
|
||||
|
||||
try {
|
||||
|
||||
@@ -29,13 +29,13 @@ use \LukeHagar\Plex_API\Models\Components;
|
||||
use \LukeHagar\Plex_API\Models\Operations;
|
||||
|
||||
$sdk = Plex_API\PlexAPI::builder()
|
||||
->setXPlexClientIdentifier('<value>')
|
||||
->setXPlexClientIdentifier('Postman')
|
||||
->build();
|
||||
|
||||
try {
|
||||
|
||||
|
||||
$response = $sdk->plex->getPin(false, '<value>');
|
||||
$response = $sdk->plex->getPin(false, 'Postman');
|
||||
|
||||
if ($response->twoHundredApplicationJsonObject !== null) {
|
||||
// handle response
|
||||
@@ -47,11 +47,11 @@ try {
|
||||
|
||||
### Parameters
|
||||
|
||||
| Parameter | Type | Required | Description |
|
||||
| --------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
|
||||
| `strong` | *bool* | :heavy_minus_sign: | Determines the kind of code returned by the API call<br/>Strong codes are used for Pin authentication flows<br/>Non-Strong codes are used for `Plex.tv/link`<br/> |
|
||||
| `xPlexClientIdentifier` | *string* | :heavy_minus_sign: | The unique identifier for the client application<br/>This is used to track the client application and its usage<br/>(UUID, serial number, or other number unique per device)<br/> |
|
||||
| `$serverURL` | *string* | :heavy_minus_sign: | An optional server URL to use. |
|
||||
| Parameter | Type | Required | Description | Example |
|
||||
| --------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
|
||||
| `strong` | *bool* | :heavy_minus_sign: | Determines the kind of code returned by the API call<br/>Strong codes are used for Pin authentication flows<br/>Non-Strong codes are used for `Plex.tv/link`<br/> | |
|
||||
| `xPlexClientIdentifier` | *string* | :heavy_minus_sign: | The unique identifier for the client application<br/>This is used to track the client application and its usage<br/>(UUID, serial number, or other number unique per device)<br/> | Postman |
|
||||
| `$serverURL` | *string* | :heavy_minus_sign: | An optional server URL to use. | http://localhost:8080 |
|
||||
|
||||
|
||||
### Response
|
||||
@@ -77,13 +77,13 @@ use \LukeHagar\Plex_API\Models\Components;
|
||||
use \LukeHagar\Plex_API\Models\Operations;
|
||||
|
||||
$sdk = Plex_API\PlexAPI::builder()
|
||||
->setXPlexClientIdentifier('<value>')
|
||||
->setXPlexClientIdentifier('Postman')
|
||||
->build();
|
||||
|
||||
try {
|
||||
|
||||
|
||||
$response = $sdk->plex->getToken('<value>', '<value>');
|
||||
$response = $sdk->plex->getToken('<value>', 'Postman');
|
||||
|
||||
if ($response->statusCode === 200) {
|
||||
// handle response
|
||||
@@ -95,11 +95,11 @@ try {
|
||||
|
||||
### Parameters
|
||||
|
||||
| Parameter | Type | Required | Description |
|
||||
| --------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
|
||||
| `pinID` | *string* | :heavy_check_mark: | The PinID to retrieve an access token for |
|
||||
| `xPlexClientIdentifier` | *string* | :heavy_minus_sign: | The unique identifier for the client application<br/>This is used to track the client application and its usage<br/>(UUID, serial number, or other number unique per device)<br/> |
|
||||
| `$serverURL` | *string* | :heavy_minus_sign: | An optional server URL to use. |
|
||||
| Parameter | Type | Required | Description | Example |
|
||||
| --------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
|
||||
| `pinID` | *string* | :heavy_check_mark: | The PinID to retrieve an access token for | |
|
||||
| `xPlexClientIdentifier` | *string* | :heavy_minus_sign: | The unique identifier for the client application<br/>This is used to track the client application and its usage<br/>(UUID, serial number, or other number unique per device)<br/> | Postman |
|
||||
| `$serverURL` | *string* | :heavy_minus_sign: | An optional server URL to use. | http://localhost:8080 |
|
||||
|
||||
|
||||
### Response
|
||||
|
||||
@@ -45,7 +45,7 @@ $security = new Components\Security();
|
||||
$security->accessToken = '<YOUR_API_KEY_HERE>';
|
||||
|
||||
$sdk = Plex_API\PlexAPI::builder()
|
||||
->setXPlexClientIdentifier('<value>')
|
||||
->setXPlexClientIdentifier('Postman')
|
||||
->setSecurity($security)->build();
|
||||
|
||||
try {
|
||||
@@ -100,7 +100,7 @@ $security = new Components\Security();
|
||||
$security->accessToken = '<YOUR_API_KEY_HERE>';
|
||||
|
||||
$sdk = Plex_API\PlexAPI::builder()
|
||||
->setXPlexClientIdentifier('<value>')
|
||||
->setXPlexClientIdentifier('Postman')
|
||||
->setSecurity($security)->build();
|
||||
|
||||
try {
|
||||
@@ -151,7 +151,7 @@ $security = new Components\Security();
|
||||
$security->accessToken = '<YOUR_API_KEY_HERE>';
|
||||
|
||||
$sdk = Plex_API\PlexAPI::builder()
|
||||
->setXPlexClientIdentifier('<value>')
|
||||
->setXPlexClientIdentifier('Postman')
|
||||
->setSecurity($security)->build();
|
||||
|
||||
try {
|
||||
|
||||
@@ -37,7 +37,7 @@ $security = new Components\Security();
|
||||
$security->accessToken = '<YOUR_API_KEY_HERE>';
|
||||
|
||||
$sdk = Plex_API\PlexAPI::builder()
|
||||
->setXPlexClientIdentifier('<value>')
|
||||
->setXPlexClientIdentifier('Postman')
|
||||
->setSecurity($security)->build();
|
||||
|
||||
try {
|
||||
@@ -77,7 +77,7 @@ $security = new Components\Security();
|
||||
$security->accessToken = '<YOUR_API_KEY_HERE>';
|
||||
|
||||
$sdk = Plex_API\PlexAPI::builder()
|
||||
->setXPlexClientIdentifier('<value>')
|
||||
->setXPlexClientIdentifier('Postman')
|
||||
->setSecurity($security)->build();
|
||||
|
||||
try {
|
||||
@@ -117,7 +117,7 @@ $security = new Components\Security();
|
||||
$security->accessToken = '<YOUR_API_KEY_HERE>';
|
||||
|
||||
$sdk = Plex_API\PlexAPI::builder()
|
||||
->setXPlexClientIdentifier('<value>')
|
||||
->setXPlexClientIdentifier('Postman')
|
||||
->setSecurity($security)->build();
|
||||
|
||||
try {
|
||||
@@ -157,7 +157,7 @@ $security = new Components\Security();
|
||||
$security->accessToken = '<YOUR_API_KEY_HERE>';
|
||||
|
||||
$sdk = Plex_API\PlexAPI::builder()
|
||||
->setXPlexClientIdentifier('<value>')
|
||||
->setXPlexClientIdentifier('Postman')
|
||||
->setSecurity($security)->build();
|
||||
|
||||
try {
|
||||
@@ -197,7 +197,7 @@ $security = new Components\Security();
|
||||
$security->accessToken = '<YOUR_API_KEY_HERE>';
|
||||
|
||||
$sdk = Plex_API\PlexAPI::builder()
|
||||
->setXPlexClientIdentifier('<value>')
|
||||
->setXPlexClientIdentifier('Postman')
|
||||
->setSecurity($security)->build();
|
||||
|
||||
try {
|
||||
@@ -237,7 +237,7 @@ $security = new Components\Security();
|
||||
$security->accessToken = '<YOUR_API_KEY_HERE>';
|
||||
|
||||
$sdk = Plex_API\PlexAPI::builder()
|
||||
->setXPlexClientIdentifier('<value>')
|
||||
->setXPlexClientIdentifier('Postman')
|
||||
->setSecurity($security)->build();
|
||||
|
||||
try {
|
||||
@@ -279,7 +279,7 @@ $security = new Components\Security();
|
||||
$security->accessToken = '<YOUR_API_KEY_HERE>';
|
||||
|
||||
$sdk = Plex_API\PlexAPI::builder()
|
||||
->setXPlexClientIdentifier('<value>')
|
||||
->setXPlexClientIdentifier('Postman')
|
||||
->setSecurity($security)->build();
|
||||
|
||||
try {
|
||||
@@ -334,7 +334,7 @@ $security = new Components\Security();
|
||||
$security->accessToken = '<YOUR_API_KEY_HERE>';
|
||||
|
||||
$sdk = Plex_API\PlexAPI::builder()
|
||||
->setXPlexClientIdentifier('<value>')
|
||||
->setXPlexClientIdentifier('Postman')
|
||||
->setSecurity($security)->build();
|
||||
|
||||
try {
|
||||
|
||||
@@ -33,7 +33,7 @@ $security = new Components\Security();
|
||||
$security->accessToken = '<YOUR_API_KEY_HERE>';
|
||||
|
||||
$sdk = Plex_API\PlexAPI::builder()
|
||||
->setXPlexClientIdentifier('<value>')
|
||||
->setXPlexClientIdentifier('Postman')
|
||||
->setSecurity($security)->build();
|
||||
|
||||
try {
|
||||
@@ -73,7 +73,7 @@ $security = new Components\Security();
|
||||
$security->accessToken = '<YOUR_API_KEY_HERE>';
|
||||
|
||||
$sdk = Plex_API\PlexAPI::builder()
|
||||
->setXPlexClientIdentifier('<value>')
|
||||
->setXPlexClientIdentifier('Postman')
|
||||
->setSecurity($security)->build();
|
||||
|
||||
try {
|
||||
@@ -113,7 +113,7 @@ $security = new Components\Security();
|
||||
$security->accessToken = '<YOUR_API_KEY_HERE>';
|
||||
|
||||
$sdk = Plex_API\PlexAPI::builder()
|
||||
->setXPlexClientIdentifier('<value>')
|
||||
->setXPlexClientIdentifier('Postman')
|
||||
->setSecurity($security)->build();
|
||||
|
||||
try {
|
||||
@@ -154,7 +154,7 @@ $security = new Components\Security();
|
||||
$security->accessToken = '<YOUR_API_KEY_HERE>';
|
||||
|
||||
$sdk = Plex_API\PlexAPI::builder()
|
||||
->setXPlexClientIdentifier('<value>')
|
||||
->setXPlexClientIdentifier('Postman')
|
||||
->setSecurity($security)->build();
|
||||
|
||||
try {
|
||||
|
||||
@@ -31,7 +31,7 @@ $security = new Components\Security();
|
||||
$security->accessToken = '<YOUR_API_KEY_HERE>';
|
||||
|
||||
$sdk = Plex_API\PlexAPI::builder()
|
||||
->setXPlexClientIdentifier('<value>')
|
||||
->setXPlexClientIdentifier('Postman')
|
||||
->setSecurity($security)->build();
|
||||
|
||||
try {
|
||||
|
||||
@@ -33,7 +33,7 @@ $security = new Components\Security();
|
||||
$security->accessToken = '<YOUR_API_KEY_HERE>';
|
||||
|
||||
$sdk = Plex_API\PlexAPI::builder()
|
||||
->setXPlexClientIdentifier('<value>')
|
||||
->setXPlexClientIdentifier('Postman')
|
||||
->setSecurity($security)->build();
|
||||
|
||||
try {
|
||||
@@ -74,7 +74,7 @@ $security = new Components\Security();
|
||||
$security->accessToken = '<YOUR_API_KEY_HERE>';
|
||||
|
||||
$sdk = Plex_API\PlexAPI::builder()
|
||||
->setXPlexClientIdentifier('<value>')
|
||||
->setXPlexClientIdentifier('Postman')
|
||||
->setSecurity($security)->build();
|
||||
|
||||
try {
|
||||
@@ -124,7 +124,7 @@ $security = new Components\Security();
|
||||
$security->accessToken = '<YOUR_API_KEY_HERE>';
|
||||
|
||||
$sdk = Plex_API\PlexAPI::builder()
|
||||
->setXPlexClientIdentifier('<value>')
|
||||
->setXPlexClientIdentifier('Postman')
|
||||
->setSecurity($security)->build();
|
||||
|
||||
try {
|
||||
|
||||
@@ -32,7 +32,7 @@ $security = new Components\Security();
|
||||
$security->accessToken = '<YOUR_API_KEY_HERE>';
|
||||
|
||||
$sdk = Plex_API\PlexAPI::builder()
|
||||
->setXPlexClientIdentifier('<value>')
|
||||
->setXPlexClientIdentifier('Postman')
|
||||
->setSecurity($security)->build();
|
||||
|
||||
try {
|
||||
@@ -91,7 +91,7 @@ $security = new Components\Security();
|
||||
$security->accessToken = '<YOUR_API_KEY_HERE>';
|
||||
|
||||
$sdk = Plex_API\PlexAPI::builder()
|
||||
->setXPlexClientIdentifier('<value>')
|
||||
->setXPlexClientIdentifier('Postman')
|
||||
->setSecurity($security)->build();
|
||||
|
||||
try {
|
||||
|
||||
@@ -25,9 +25,9 @@ class SDKConfiguration
|
||||
];
|
||||
public string $language = 'php';
|
||||
public string $openapiDocVersion = '0.0.3';
|
||||
public string $sdkVersion = '0.4.1';
|
||||
public string $genVersion = '2.308.2';
|
||||
public string $userAgent = 'speakeasy-sdk/php 0.4.1 2.308.2 0.0.3 lukehagar/plex-api';
|
||||
public string $sdkVersion = '0.4.2';
|
||||
public string $genVersion = '2.312.1';
|
||||
public string $userAgent = 'speakeasy-sdk/php 0.4.2 2.312.1 0.0.3 lukehagar/plex-api';
|
||||
/** @var array<string, array<string, array<string, mixed>>> */
|
||||
public ?array $globals = [
|
||||
'parameters' => []
|
||||
|
||||
Reference in New Issue
Block a user