diff --git a/.speakeasy/gen.lock b/.speakeasy/gen.lock index 8a5556d..2ad6d80 100755 --- a/.speakeasy/gen.lock +++ b/.speakeasy/gen.lock @@ -1,12 +1,12 @@ lockVersion: 2.0.0 id: 01a51eb2-5d90-4a24-b154-68e491d02c36 management: - docChecksum: a6fee1797b2da7ccbaf7743772a40b56 + docChecksum: 5bf578a672589649d8ed83c3927c50a6 docVersion: 0.0.3 - speakeasyVersion: 1.397.2 - generationVersion: 2.415.8 - releaseVersion: 0.8.0 - configChecksum: 277c6d222037e020407684fc302d9752 + speakeasyVersion: 1.399.2 + generationVersion: 2.416.6 + releaseVersion: 0.8.1 + configChecksum: 26050d73033e2c897e4bba0d1ad1bd42 repoURL: https://github.com/LukeHagar/plexphp.git repoSubDirectory: . installationURL: https://github.com/LukeHagar/plexphp @@ -25,7 +25,7 @@ features: nameOverrides: 2.81.2 nullables: 1.0.0 responseFormat: 0.1.0 - unions: 0.1.2 + unions: 0.1.3 generatedFiles: - .gitattributes - CONTRIBUTING.md @@ -1624,6 +1624,7 @@ examples: application/json: {"errors": []} "401": application/json: {"errors": []} + "200": {} getServerPreferences: speakeasy-default-get-server-preferences: responses: @@ -1674,7 +1675,7 @@ examples: width: 110 height: 165 opacity: 643869 - blur: 4000 + blur: 20 minSize: 0 upscale: 0 url: "/library/metadata/49564/thumb/1654258204" @@ -1693,6 +1694,7 @@ examples: application/json: {"errors": []} "401": application/json: {"errors": []} + "200": {} getServerList: speakeasy-default-get-server-list: responses: @@ -1821,6 +1823,7 @@ examples: application/json: {"errors": []} "401": application/json: {"errors": []} + "200": {} cancelServerActivities: "": parameters: @@ -1896,7 +1899,7 @@ examples: speakeasy-default-get-geo-data: responses: "200": - application/json: {"code": "VI", "continent_code": "NA", "country": "United States Virgin Islands", "city": "Amsterdam", "european_union_member": true, "time_zone": "America/St_Thomas", "postal_code": 802, "in_privacy_restricted_country": true, "in_privacy_restricted_region": true, "subdivisions": "Saint Thomas", "coordinates": "18.3381, -64.8941"} + application/json: {"code": "VI", "continent_code": "NA", "country": "United States Virgin Islands", "city": "Amsterdam", "european_union_member": true, "time_zone": "America/St_Thomas", "postal_code": "802", "in_privacy_restricted_country": true, "in_privacy_restricted_region": true, "subdivisions": "Saint Thomas", "coordinates": "18.3381, -64.8941"} "400": application/json: {"errors": []} "401": @@ -1928,12 +1931,17 @@ examples: "": parameters: query: - X-Plex-Product: "Plex Web" + X-Plex-Product: Plex Web + X-Plex-Device: Linux + X-Plex-Version: 4.133.0 + X-Plex-Platform: Chrome responses: "200": application/json: {"id": 308667304, "code": "7RQZ", "product": "0", "trusted": false, "qr": "https://plex.tv/api/v2/pins/qr/7RQZ", "clientIdentifier": "string", "location": {"code": "VI", "continent_code": "NA", "country": "United States Virgin Islands", "city": "Amsterdam", "european_union_member": true, "time_zone": "America/St_Thomas", "postal_code": 802, "in_privacy_restricted_country": true, "in_privacy_restricted_region": true, "subdivisions": "Saint Thomas", "coordinates": "18.3381, -64.8941"}, "expiresIn": 876, "createdAt": "2024-07-16T17:03:05Z", "expiresAt": "2024-07-16T17:18:05Z", "authToken": null, "newRegistration": null} "400": application/json: {"errors": []} + "201": + application/json: {"id": 308667304, "code": "7RQZ", "product": "0", "trusted": false, "qr": "https://plex.tv/api/v2/pins/qr/7RQZ", "clientIdentifier": "string", "location": {"code": "VI", "continent_code": "NA", "country": "United States Virgin Islands", "city": "Amsterdam", "european_union_member": true, "time_zone": "America/St_Thomas", "postal_code": "802", "in_privacy_restricted_country": true, "in_privacy_restricted_region": true, "subdivisions": "Saint Thomas", "coordinates": "18.3381, -64.8941"}, "expiresIn": 876, "createdAt": "2024-07-16T17:03:05Z", "expiresAt": "2024-07-16T17:18:05Z", "authToken": null, "newRegistration": null} getTokenByPinId: "": parameters: @@ -2187,6 +2195,7 @@ examples: application/json: {"errors": []} "401": application/json: {"errors": []} + "200": {} logLine: speakeasy-default-log-line: parameters: diff --git a/.speakeasy/gen.yaml b/.speakeasy/gen.yaml index 6fb4957..e22a4bb 100644 --- a/.speakeasy/gen.yaml +++ b/.speakeasy/gen.yaml @@ -12,7 +12,7 @@ generation: auth: oAuth2ClientCredentialsEnabled: false php: - version: 0.8.0 + version: 0.8.1 clientServerStatusCodesAsErrors: true flattenGlobalSecurity: true imports: diff --git a/.speakeasy/workflow.lock b/.speakeasy/workflow.lock index 2b9c4b7..cf4da76 100644 --- a/.speakeasy/workflow.lock +++ b/.speakeasy/workflow.lock @@ -1,4 +1,4 @@ -speakeasyVersion: 1.397.2 +speakeasyVersion: 1.399.2 sources: my-source: sourceNamespace: my-source @@ -9,8 +9,8 @@ sources: - main plexapi: sourceNamespace: plexapi - sourceRevisionDigest: sha256:533fe97486e3fe2d84e890b7bbcdba4543d415e45181386154e011861f6da36f - sourceBlobDigest: sha256:f7e2709f52370dff16c1851a7a4e44a89f2e978e9cae335bffc10625950b3bd9 + sourceRevisionDigest: sha256:327e4a83099f910e042784ecc571fcbc4c9a6d8ba169b4ba181afb890a9936cc + sourceBlobDigest: sha256:a652fa39754f0c22a1454f628fe84983b34662ee8a153a3461d50b833f8bc5c2 tags: - latest - main @@ -18,10 +18,10 @@ targets: plexphp: source: plexapi sourceNamespace: plexapi - sourceRevisionDigest: sha256:533fe97486e3fe2d84e890b7bbcdba4543d415e45181386154e011861f6da36f - sourceBlobDigest: sha256:f7e2709f52370dff16c1851a7a4e44a89f2e978e9cae335bffc10625950b3bd9 + sourceRevisionDigest: sha256:327e4a83099f910e042784ecc571fcbc4c9a6d8ba169b4ba181afb890a9936cc + sourceBlobDigest: sha256:a652fa39754f0c22a1454f628fe84983b34662ee8a153a3461d50b833f8bc5c2 codeSamplesNamespace: code-samples-php-plexphp - codeSamplesRevisionDigest: sha256:09c3a7a54c93941a76a6e929193153781dfd0468455ab492b9650f410d8e8c4c + codeSamplesRevisionDigest: sha256:a2463615fc3539369b1f3f0ba5ac302f6ff3566f1ddbd0194adf7a4a8dc098c0 workflow: workflowVersion: 1.0.0 speakeasyVersion: latest diff --git a/README.md b/README.md index 1af7262..c15bae8 100644 --- a/README.md +++ b/README.md @@ -52,7 +52,11 @@ $security = new Components\Security( ); $sdk = Plex_API\PlexAPI::builder() - ->setXPlexClientIdentifier('gcgzw5rz2xovp84b4vha3a40') + ->setClientID('gcgzw5rz2xovp84b4vha3a40') + ->setClientName('Plex Web') + ->setClientVersion('4.133.0') + ->setClientPlatform('Chrome') + ->setDeviceName('Linux') ->setSecurity($security)->build(); try { @@ -202,21 +206,25 @@ try { ## Global Parameters -A parameter is configured globally. This parameter may 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. +Certain parameters are configured globally. These parameters may be set on the SDK client instance itself during initialization. When configured as an option during SDK initialization, These global values will be used as defaults on the operations that use them. 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 `'gcgzw5rz2xovp84b4vha3a40'` at SDK initialization and then you do not have to pass the same value on calls to operations like `getServerResources`. 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 `ClientID` to `'gcgzw5rz2xovp84b4vha3a40'` at SDK initialization and then you do not have to pass the same value on calls to operations like `getServerResources`. 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 -The following global parameter is available. +The following global parameters are available. | Name | Type | Required | Description | | ---- | ---- |:--------:| ----------- | -| xPlexClientIdentifier | string | | The unique identifier for the client application +| clientID | string | | The unique identifier for the client application This is used to track the client application and its usage (UUID, serial number, or other number unique per device) | +| clientName | string | | The clientName parameter. | +| clientVersion | string | | The clientVersion parameter. | +| clientPlatform | string | | The clientPlatform parameter. | +| deviceName | string | | The deviceName parameter. | ### Example @@ -235,7 +243,11 @@ $security = new Components\Security( ); $sdk = Plex_API\PlexAPI::builder() - ->setXPlexClientIdentifier('gcgzw5rz2xovp84b4vha3a40') + ->setClientID('gcgzw5rz2xovp84b4vha3a40') + ->setClientName('Plex Web') + ->setClientVersion('4.133.0') + ->setClientPlatform('Chrome') + ->setDeviceName('Linux') ->setSecurity($security)->build(); try { @@ -294,7 +306,11 @@ $security = new Components\Security( ); $sdk = Plex_API\PlexAPI::builder() - ->setXPlexClientIdentifier('gcgzw5rz2xovp84b4vha3a40') + ->setClientID('gcgzw5rz2xovp84b4vha3a40') + ->setClientName('Plex Web') + ->setClientVersion('4.133.0') + ->setClientPlatform('Chrome') + ->setDeviceName('Linux') ->setSecurity($security)->build(); try { diff --git a/RELEASES.md b/RELEASES.md index 3798d04..ad9ed9c 100644 --- a/RELEASES.md +++ b/RELEASES.md @@ -592,4 +592,14 @@ Based on: ### Generated - [php v0.8.0] . ### Releases -- [Composer v0.8.0] https://packagist.org/packages/lukehagar/plex-api#v0.8.0 - . \ No newline at end of file +- [Composer v0.8.0] https://packagist.org/packages/lukehagar/plex-api#v0.8.0 - . + +## 2024-09-19 00:09:16 +### Changes +Based on: +- OpenAPI Doc +- Speakeasy CLI 1.399.2 (2.416.6) https://github.com/speakeasy-api/speakeasy +### Generated +- [php v0.8.1] . +### Releases +- [Composer v0.8.1] https://packagist.org/packages/lukehagar/plex-api#v0.8.1 - . \ No newline at end of file diff --git a/USAGE.md b/USAGE.md index 13d6049..123926e 100644 --- a/USAGE.md +++ b/USAGE.md @@ -12,7 +12,11 @@ $security = new Components\Security( ); $sdk = Plex_API\PlexAPI::builder() - ->setXPlexClientIdentifier('gcgzw5rz2xovp84b4vha3a40') + ->setClientID('gcgzw5rz2xovp84b4vha3a40') + ->setClientName('Plex Web') + ->setClientVersion('4.133.0') + ->setClientPlatform('Chrome') + ->setDeviceName('Linux') ->setSecurity($security)->build(); try { diff --git a/codeSamples.yaml b/codeSamples.yaml index 873274f..702c455 100644 --- a/codeSamples.yaml +++ b/codeSamples.yaml @@ -21,7 +21,11 @@ actions: ); $sdk = Plex_API\PlexAPI::builder() - ->setXPlexClientIdentifier('gcgzw5rz2xovp84b4vha3a40') + ->setClientID('gcgzw5rz2xovp84b4vha3a40') + ->setClientName('Plex Web') + ->setClientVersion('4.133.0') + ->setClientPlatform('Chrome') + ->setDeviceName('Linux') ->setSecurity($security)->build(); try { @@ -51,7 +55,11 @@ actions: ); $sdk = Plex_API\PlexAPI::builder() - ->setXPlexClientIdentifier('gcgzw5rz2xovp84b4vha3a40') + ->setClientID('gcgzw5rz2xovp84b4vha3a40') + ->setClientName('Plex Web') + ->setClientVersion('4.133.0') + ->setClientPlatform('Chrome') + ->setDeviceName('Linux') ->setSecurity($security)->build(); try { @@ -81,7 +89,11 @@ actions: ); $sdk = Plex_API\PlexAPI::builder() - ->setXPlexClientIdentifier('gcgzw5rz2xovp84b4vha3a40') + ->setClientID('gcgzw5rz2xovp84b4vha3a40') + ->setClientName('Plex Web') + ->setClientVersion('4.133.0') + ->setClientPlatform('Chrome') + ->setDeviceName('Linux') ->setSecurity($security)->build(); try { @@ -112,7 +124,11 @@ actions: ); $sdk = Plex_API\PlexAPI::builder() - ->setXPlexClientIdentifier('gcgzw5rz2xovp84b4vha3a40') + ->setClientID('gcgzw5rz2xovp84b4vha3a40') + ->setClientName('Plex Web') + ->setClientVersion('4.133.0') + ->setClientPlatform('Chrome') + ->setDeviceName('Linux') ->setSecurity($security)->build(); try { @@ -144,7 +160,11 @@ actions: ); $sdk = Plex_API\PlexAPI::builder() - ->setXPlexClientIdentifier('gcgzw5rz2xovp84b4vha3a40') + ->setClientID('gcgzw5rz2xovp84b4vha3a40') + ->setClientName('Plex Web') + ->setClientVersion('4.133.0') + ->setClientPlatform('Chrome') + ->setDeviceName('Linux') ->setSecurity($security)->build(); try { @@ -186,7 +206,11 @@ actions: ); $sdk = Plex_API\PlexAPI::builder() - ->setXPlexClientIdentifier('gcgzw5rz2xovp84b4vha3a40') + ->setClientID('gcgzw5rz2xovp84b4vha3a40') + ->setClientName('Plex Web') + ->setClientVersion('4.133.0') + ->setClientPlatform('Chrome') + ->setDeviceName('Linux') ->setSecurity($security)->build(); try { @@ -217,7 +241,11 @@ actions: ); $sdk = Plex_API\PlexAPI::builder() - ->setXPlexClientIdentifier('gcgzw5rz2xovp84b4vha3a40') + ->setClientID('gcgzw5rz2xovp84b4vha3a40') + ->setClientName('Plex Web') + ->setClientVersion('4.133.0') + ->setClientPlatform('Chrome') + ->setDeviceName('Linux') ->setSecurity($security)->build(); try { @@ -247,7 +275,11 @@ actions: ); $sdk = Plex_API\PlexAPI::builder() - ->setXPlexClientIdentifier('gcgzw5rz2xovp84b4vha3a40') + ->setClientID('gcgzw5rz2xovp84b4vha3a40') + ->setClientName('Plex Web') + ->setClientVersion('4.133.0') + ->setClientPlatform('Chrome') + ->setDeviceName('Linux') ->setSecurity($security)->build(); try { @@ -278,7 +310,11 @@ actions: ); $sdk = Plex_API\PlexAPI::builder() - ->setXPlexClientIdentifier('gcgzw5rz2xovp84b4vha3a40') + ->setClientID('gcgzw5rz2xovp84b4vha3a40') + ->setClientName('Plex Web') + ->setClientVersion('4.133.0') + ->setClientPlatform('Chrome') + ->setDeviceName('Linux') ->setSecurity($security)->build(); try { @@ -308,7 +344,11 @@ actions: ); $sdk = Plex_API\PlexAPI::builder() - ->setXPlexClientIdentifier('gcgzw5rz2xovp84b4vha3a40') + ->setClientID('gcgzw5rz2xovp84b4vha3a40') + ->setClientName('Plex Web') + ->setClientVersion('4.133.0') + ->setClientPlatform('Chrome') + ->setDeviceName('Linux') ->setSecurity($security)->build(); try { @@ -338,7 +378,11 @@ actions: ); $sdk = Plex_API\PlexAPI::builder() - ->setXPlexClientIdentifier('gcgzw5rz2xovp84b4vha3a40') + ->setClientID('gcgzw5rz2xovp84b4vha3a40') + ->setClientName('Plex Web') + ->setClientVersion('4.133.0') + ->setClientPlatform('Chrome') + ->setDeviceName('Linux') ->setSecurity($security)->build(); try { @@ -369,7 +413,11 @@ actions: ); $sdk = Plex_API\PlexAPI::builder() - ->setXPlexClientIdentifier('gcgzw5rz2xovp84b4vha3a40') + ->setClientID('gcgzw5rz2xovp84b4vha3a40') + ->setClientName('Plex Web') + ->setClientVersion('4.133.0') + ->setClientPlatform('Chrome') + ->setDeviceName('Linux') ->setSecurity($security)->build(); try { @@ -401,7 +449,11 @@ actions: ); $sdk = Plex_API\PlexAPI::builder() - ->setXPlexClientIdentifier('gcgzw5rz2xovp84b4vha3a40') + ->setClientID('gcgzw5rz2xovp84b4vha3a40') + ->setClientName('Plex Web') + ->setClientVersion('4.133.0') + ->setClientPlatform('Chrome') + ->setDeviceName('Linux') ->setSecurity($security)->build(); try { @@ -432,7 +484,11 @@ actions: ); $sdk = Plex_API\PlexAPI::builder() - ->setXPlexClientIdentifier('gcgzw5rz2xovp84b4vha3a40') + ->setClientID('gcgzw5rz2xovp84b4vha3a40') + ->setClientName('Plex Web') + ->setClientVersion('4.133.0') + ->setClientPlatform('Chrome') + ->setDeviceName('Linux') ->setSecurity($security)->build(); try { @@ -462,7 +518,11 @@ actions: ); $sdk = Plex_API\PlexAPI::builder() - ->setXPlexClientIdentifier('gcgzw5rz2xovp84b4vha3a40') + ->setClientID('gcgzw5rz2xovp84b4vha3a40') + ->setClientName('Plex Web') + ->setClientVersion('4.133.0') + ->setClientPlatform('Chrome') + ->setDeviceName('Linux') ->setSecurity($security)->build(); try { @@ -492,7 +552,11 @@ actions: ); $sdk = Plex_API\PlexAPI::builder() - ->setXPlexClientIdentifier('gcgzw5rz2xovp84b4vha3a40') + ->setClientID('gcgzw5rz2xovp84b4vha3a40') + ->setClientName('Plex Web') + ->setClientVersion('4.133.0') + ->setClientPlatform('Chrome') + ->setDeviceName('Linux') ->setSecurity($security)->build(); try { @@ -522,7 +586,11 @@ actions: ); $sdk = Plex_API\PlexAPI::builder() - ->setXPlexClientIdentifier('gcgzw5rz2xovp84b4vha3a40') + ->setClientID('gcgzw5rz2xovp84b4vha3a40') + ->setClientName('Plex Web') + ->setClientVersion('4.133.0') + ->setClientPlatform('Chrome') + ->setDeviceName('Linux') ->setSecurity($security)->build(); try { @@ -547,7 +615,11 @@ actions: use LukeHagar\Plex_API; $sdk = Plex_API\PlexAPI::builder() - ->setXPlexClientIdentifier('gcgzw5rz2xovp84b4vha3a40') + ->setClientID('gcgzw5rz2xovp84b4vha3a40') + ->setClientName('Plex Web') + ->setClientVersion('4.133.0') + ->setClientPlatform('Chrome') + ->setDeviceName('Linux') ->build(); try { @@ -577,7 +649,11 @@ actions: ); $sdk = Plex_API\PlexAPI::builder() - ->setXPlexClientIdentifier('gcgzw5rz2xovp84b4vha3a40') + ->setClientID('gcgzw5rz2xovp84b4vha3a40') + ->setClientName('Plex Web') + ->setClientVersion('4.133.0') + ->setClientPlatform('Chrome') + ->setDeviceName('Linux') ->setSecurity($security)->build(); try { @@ -608,7 +684,11 @@ actions: ); $sdk = Plex_API\PlexAPI::builder() - ->setXPlexClientIdentifier('gcgzw5rz2xovp84b4vha3a40') + ->setClientID('gcgzw5rz2xovp84b4vha3a40') + ->setClientName('Plex Web') + ->setClientVersion('4.133.0') + ->setClientPlatform('Chrome') + ->setDeviceName('Linux') ->setSecurity($security)->build(); try { @@ -639,7 +719,11 @@ actions: ); $sdk = Plex_API\PlexAPI::builder() - ->setXPlexClientIdentifier('gcgzw5rz2xovp84b4vha3a40') + ->setClientID('gcgzw5rz2xovp84b4vha3a40') + ->setClientName('Plex Web') + ->setClientVersion('4.133.0') + ->setClientPlatform('Chrome') + ->setDeviceName('Linux') ->setSecurity($security)->build(); try { @@ -670,7 +754,11 @@ actions: ); $sdk = Plex_API\PlexAPI::builder() - ->setXPlexClientIdentifier('gcgzw5rz2xovp84b4vha3a40') + ->setClientID('gcgzw5rz2xovp84b4vha3a40') + ->setClientName('Plex Web') + ->setClientVersion('4.133.0') + ->setClientPlatform('Chrome') + ->setDeviceName('Linux') ->setSecurity($security)->build(); try { @@ -702,7 +790,11 @@ actions: ); $sdk = Plex_API\PlexAPI::builder() - ->setXPlexClientIdentifier('gcgzw5rz2xovp84b4vha3a40') + ->setClientID('gcgzw5rz2xovp84b4vha3a40') + ->setClientName('Plex Web') + ->setClientVersion('4.133.0') + ->setClientPlatform('Chrome') + ->setDeviceName('Linux') ->setSecurity($security)->build(); try { @@ -728,7 +820,11 @@ actions: use LukeHagar\Plex_API; $sdk = Plex_API\PlexAPI::builder() - ->setXPlexClientIdentifier('gcgzw5rz2xovp84b4vha3a40') + ->setClientID('gcgzw5rz2xovp84b4vha3a40') + ->setClientName('Plex Web') + ->setClientVersion('4.133.0') + ->setClientPlatform('Chrome') + ->setDeviceName('Linux') ->build(); try { @@ -759,7 +855,11 @@ actions: ); $sdk = Plex_API\PlexAPI::builder() - ->setXPlexClientIdentifier('gcgzw5rz2xovp84b4vha3a40') + ->setClientID('gcgzw5rz2xovp84b4vha3a40') + ->setClientName('Plex Web') + ->setClientVersion('4.133.0') + ->setClientPlatform('Chrome') + ->setDeviceName('Linux') ->setSecurity($security)->build(); try { @@ -790,7 +890,11 @@ actions: ); $sdk = Plex_API\PlexAPI::builder() - ->setXPlexClientIdentifier('gcgzw5rz2xovp84b4vha3a40') + ->setClientID('gcgzw5rz2xovp84b4vha3a40') + ->setClientName('Plex Web') + ->setClientVersion('4.133.0') + ->setClientPlatform('Chrome') + ->setDeviceName('Linux') ->setSecurity($security)->build(); try { @@ -821,7 +925,11 @@ actions: ); $sdk = Plex_API\PlexAPI::builder() - ->setXPlexClientIdentifier('gcgzw5rz2xovp84b4vha3a40') + ->setClientID('gcgzw5rz2xovp84b4vha3a40') + ->setClientName('Plex Web') + ->setClientVersion('4.133.0') + ->setClientPlatform('Chrome') + ->setDeviceName('Linux') ->setSecurity($security)->build(); try { @@ -853,7 +961,11 @@ actions: ); $sdk = Plex_API\PlexAPI::builder() - ->setXPlexClientIdentifier('gcgzw5rz2xovp84b4vha3a40') + ->setClientID('gcgzw5rz2xovp84b4vha3a40') + ->setClientName('Plex Web') + ->setClientVersion('4.133.0') + ->setClientPlatform('Chrome') + ->setDeviceName('Linux') ->setSecurity($security)->build(); try { @@ -891,7 +1003,11 @@ actions: ); $sdk = Plex_API\PlexAPI::builder() - ->setXPlexClientIdentifier('gcgzw5rz2xovp84b4vha3a40') + ->setClientID('gcgzw5rz2xovp84b4vha3a40') + ->setClientName('Plex Web') + ->setClientVersion('4.133.0') + ->setClientPlatform('Chrome') + ->setDeviceName('Linux') ->setSecurity($security)->build(); try { @@ -923,7 +1039,11 @@ actions: ); $sdk = Plex_API\PlexAPI::builder() - ->setXPlexClientIdentifier('gcgzw5rz2xovp84b4vha3a40') + ->setClientID('gcgzw5rz2xovp84b4vha3a40') + ->setClientName('Plex Web') + ->setClientVersion('4.133.0') + ->setClientPlatform('Chrome') + ->setDeviceName('Linux') ->setSecurity($security)->build(); try { @@ -961,7 +1081,11 @@ actions: ); $sdk = Plex_API\PlexAPI::builder() - ->setXPlexClientIdentifier('gcgzw5rz2xovp84b4vha3a40') + ->setClientID('gcgzw5rz2xovp84b4vha3a40') + ->setClientName('Plex Web') + ->setClientVersion('4.133.0') + ->setClientPlatform('Chrome') + ->setDeviceName('Linux') ->setSecurity($security)->build(); try { @@ -991,7 +1115,11 @@ actions: ); $sdk = Plex_API\PlexAPI::builder() - ->setXPlexClientIdentifier('gcgzw5rz2xovp84b4vha3a40') + ->setClientID('gcgzw5rz2xovp84b4vha3a40') + ->setClientName('Plex Web') + ->setClientVersion('4.133.0') + ->setClientPlatform('Chrome') + ->setDeviceName('Linux') ->setSecurity($security)->build(); try { @@ -1022,7 +1150,11 @@ actions: ); $sdk = Plex_API\PlexAPI::builder() - ->setXPlexClientIdentifier('gcgzw5rz2xovp84b4vha3a40') + ->setClientID('gcgzw5rz2xovp84b4vha3a40') + ->setClientName('Plex Web') + ->setClientVersion('4.133.0') + ->setClientPlatform('Chrome') + ->setDeviceName('Linux') ->setSecurity($security)->build(); try { @@ -1053,7 +1185,11 @@ actions: ); $sdk = Plex_API\PlexAPI::builder() - ->setXPlexClientIdentifier('gcgzw5rz2xovp84b4vha3a40') + ->setClientID('gcgzw5rz2xovp84b4vha3a40') + ->setClientName('Plex Web') + ->setClientVersion('4.133.0') + ->setClientPlatform('Chrome') + ->setDeviceName('Linux') ->setSecurity($security)->build(); try { @@ -1089,7 +1225,11 @@ actions: ); $sdk = Plex_API\PlexAPI::builder() - ->setXPlexClientIdentifier('gcgzw5rz2xovp84b4vha3a40') + ->setClientID('gcgzw5rz2xovp84b4vha3a40') + ->setClientName('Plex Web') + ->setClientVersion('4.133.0') + ->setClientPlatform('Chrome') + ->setDeviceName('Linux') ->setSecurity($security)->build(); try { @@ -1121,7 +1261,11 @@ actions: ); $sdk = Plex_API\PlexAPI::builder() - ->setXPlexClientIdentifier('gcgzw5rz2xovp84b4vha3a40') + ->setClientID('gcgzw5rz2xovp84b4vha3a40') + ->setClientName('Plex Web') + ->setClientVersion('4.133.0') + ->setClientPlatform('Chrome') + ->setDeviceName('Linux') ->setSecurity($security)->build(); try { @@ -1153,7 +1297,11 @@ actions: ); $sdk = Plex_API\PlexAPI::builder() - ->setXPlexClientIdentifier('gcgzw5rz2xovp84b4vha3a40') + ->setClientID('gcgzw5rz2xovp84b4vha3a40') + ->setClientName('Plex Web') + ->setClientVersion('4.133.0') + ->setClientPlatform('Chrome') + ->setDeviceName('Linux') ->setSecurity($security)->build(); try { @@ -1185,7 +1333,11 @@ actions: ); $sdk = Plex_API\PlexAPI::builder() - ->setXPlexClientIdentifier('gcgzw5rz2xovp84b4vha3a40') + ->setClientID('gcgzw5rz2xovp84b4vha3a40') + ->setClientName('Plex Web') + ->setClientVersion('4.133.0') + ->setClientPlatform('Chrome') + ->setDeviceName('Linux') ->setSecurity($security)->build(); try { @@ -1217,7 +1369,11 @@ actions: ); $sdk = Plex_API\PlexAPI::builder() - ->setXPlexClientIdentifier('gcgzw5rz2xovp84b4vha3a40') + ->setClientID('gcgzw5rz2xovp84b4vha3a40') + ->setClientName('Plex Web') + ->setClientVersion('4.133.0') + ->setClientPlatform('Chrome') + ->setDeviceName('Linux') ->setSecurity($security)->build(); try { @@ -1257,7 +1413,11 @@ actions: ); $sdk = Plex_API\PlexAPI::builder() - ->setXPlexClientIdentifier('gcgzw5rz2xovp84b4vha3a40') + ->setClientID('gcgzw5rz2xovp84b4vha3a40') + ->setClientName('Plex Web') + ->setClientVersion('4.133.0') + ->setClientPlatform('Chrome') + ->setDeviceName('Linux') ->setSecurity($security)->build(); try { @@ -1288,7 +1448,11 @@ actions: ); $sdk = Plex_API\PlexAPI::builder() - ->setXPlexClientIdentifier('gcgzw5rz2xovp84b4vha3a40') + ->setClientID('gcgzw5rz2xovp84b4vha3a40') + ->setClientName('Plex Web') + ->setClientVersion('4.133.0') + ->setClientPlatform('Chrome') + ->setDeviceName('Linux') ->setSecurity($security)->build(); try { @@ -1321,7 +1485,11 @@ actions: ); $sdk = Plex_API\PlexAPI::builder() - ->setXPlexClientIdentifier('gcgzw5rz2xovp84b4vha3a40') + ->setClientID('gcgzw5rz2xovp84b4vha3a40') + ->setClientName('Plex Web') + ->setClientVersion('4.133.0') + ->setClientPlatform('Chrome') + ->setDeviceName('Linux') ->setSecurity($security)->build(); try { @@ -1351,7 +1519,11 @@ actions: ); $sdk = Plex_API\PlexAPI::builder() - ->setXPlexClientIdentifier('gcgzw5rz2xovp84b4vha3a40') + ->setClientID('gcgzw5rz2xovp84b4vha3a40') + ->setClientName('Plex Web') + ->setClientVersion('4.133.0') + ->setClientPlatform('Chrome') + ->setDeviceName('Linux') ->setSecurity($security)->build(); try { @@ -1382,7 +1554,11 @@ actions: ); $sdk = Plex_API\PlexAPI::builder() - ->setXPlexClientIdentifier('gcgzw5rz2xovp84b4vha3a40') + ->setClientID('gcgzw5rz2xovp84b4vha3a40') + ->setClientName('Plex Web') + ->setClientVersion('4.133.0') + ->setClientPlatform('Chrome') + ->setDeviceName('Linux') ->setSecurity($security)->build(); try { @@ -1413,7 +1589,11 @@ actions: ); $sdk = Plex_API\PlexAPI::builder() - ->setXPlexClientIdentifier('gcgzw5rz2xovp84b4vha3a40') + ->setClientID('gcgzw5rz2xovp84b4vha3a40') + ->setClientName('Plex Web') + ->setClientVersion('4.133.0') + ->setClientPlatform('Chrome') + ->setDeviceName('Linux') ->setSecurity($security)->build(); try { @@ -1445,14 +1625,19 @@ actions: require 'vendor/autoload.php'; use LukeHagar\Plex_API; + use LukeHagar\Plex_API\Models\Operations; $sdk = Plex_API\PlexAPI::builder() - ->setXPlexClientIdentifier('gcgzw5rz2xovp84b4vha3a40') + ->setClientID('gcgzw5rz2xovp84b4vha3a40') + ->setClientName('Plex Web') + ->setClientVersion('4.133.0') + ->setClientPlatform('Chrome') + ->setDeviceName('Linux') ->build(); try { - - $response = $sdk->plex->getPin(false, 'gcgzw5rz2xovp84b4vha3a40', 'Plex Web'); + $request = new Operations\GetPinRequest(); + $response = $sdk->plex->getPin($request); if ($response->authPinContainer !== null) { // handle response @@ -1473,7 +1658,11 @@ actions: use LukeHagar\Plex_API; $sdk = Plex_API\PlexAPI::builder() - ->setXPlexClientIdentifier('gcgzw5rz2xovp84b4vha3a40') + ->setClientID('gcgzw5rz2xovp84b4vha3a40') + ->setClientName('Plex Web') + ->setClientVersion('4.133.0') + ->setClientPlatform('Chrome') + ->setDeviceName('Linux') ->build(); try { @@ -1505,7 +1694,11 @@ actions: ); $sdk = Plex_API\PlexAPI::builder() - ->setXPlexClientIdentifier('gcgzw5rz2xovp84b4vha3a40') + ->setClientID('gcgzw5rz2xovp84b4vha3a40') + ->setClientName('Plex Web') + ->setClientVersion('4.133.0') + ->setClientPlatform('Chrome') + ->setDeviceName('Linux') ->setSecurity($security)->build(); try { @@ -1537,7 +1730,11 @@ actions: ); $sdk = Plex_API\PlexAPI::builder() - ->setXPlexClientIdentifier('gcgzw5rz2xovp84b4vha3a40') + ->setClientID('gcgzw5rz2xovp84b4vha3a40') + ->setClientName('Plex Web') + ->setClientVersion('4.133.0') + ->setClientPlatform('Chrome') + ->setDeviceName('Linux') ->setSecurity($security)->build(); try { @@ -1574,7 +1771,11 @@ actions: ); $sdk = Plex_API\PlexAPI::builder() - ->setXPlexClientIdentifier('gcgzw5rz2xovp84b4vha3a40') + ->setClientID('gcgzw5rz2xovp84b4vha3a40') + ->setClientName('Plex Web') + ->setClientVersion('4.133.0') + ->setClientPlatform('Chrome') + ->setDeviceName('Linux') ->setSecurity($security)->build(); try { @@ -1605,7 +1806,11 @@ actions: ); $sdk = Plex_API\PlexAPI::builder() - ->setXPlexClientIdentifier('gcgzw5rz2xovp84b4vha3a40') + ->setClientID('gcgzw5rz2xovp84b4vha3a40') + ->setClientName('Plex Web') + ->setClientVersion('4.133.0') + ->setClientPlatform('Chrome') + ->setDeviceName('Linux') ->setSecurity($security)->build(); try { @@ -1636,7 +1841,11 @@ actions: ); $sdk = Plex_API\PlexAPI::builder() - ->setXPlexClientIdentifier('gcgzw5rz2xovp84b4vha3a40') + ->setClientID('gcgzw5rz2xovp84b4vha3a40') + ->setClientName('Plex Web') + ->setClientVersion('4.133.0') + ->setClientPlatform('Chrome') + ->setDeviceName('Linux') ->setSecurity($security)->build(); try { @@ -1667,7 +1876,11 @@ actions: ); $sdk = Plex_API\PlexAPI::builder() - ->setXPlexClientIdentifier('gcgzw5rz2xovp84b4vha3a40') + ->setClientID('gcgzw5rz2xovp84b4vha3a40') + ->setClientName('Plex Web') + ->setClientVersion('4.133.0') + ->setClientPlatform('Chrome') + ->setDeviceName('Linux') ->setSecurity($security)->build(); try { @@ -1698,7 +1911,11 @@ actions: ); $sdk = Plex_API\PlexAPI::builder() - ->setXPlexClientIdentifier('gcgzw5rz2xovp84b4vha3a40') + ->setClientID('gcgzw5rz2xovp84b4vha3a40') + ->setClientName('Plex Web') + ->setClientVersion('4.133.0') + ->setClientPlatform('Chrome') + ->setDeviceName('Linux') ->setSecurity($security)->build(); try { @@ -1730,7 +1947,11 @@ actions: ); $sdk = Plex_API\PlexAPI::builder() - ->setXPlexClientIdentifier('gcgzw5rz2xovp84b4vha3a40') + ->setClientID('gcgzw5rz2xovp84b4vha3a40') + ->setClientName('Plex Web') + ->setClientVersion('4.133.0') + ->setClientPlatform('Chrome') + ->setDeviceName('Linux') ->setSecurity($security)->build(); try { @@ -1761,7 +1982,11 @@ actions: ); $sdk = Plex_API\PlexAPI::builder() - ->setXPlexClientIdentifier('gcgzw5rz2xovp84b4vha3a40') + ->setClientID('gcgzw5rz2xovp84b4vha3a40') + ->setClientName('Plex Web') + ->setClientVersion('4.133.0') + ->setClientPlatform('Chrome') + ->setDeviceName('Linux') ->setSecurity($security)->build(); try { @@ -1793,7 +2018,11 @@ actions: ); $sdk = Plex_API\PlexAPI::builder() - ->setXPlexClientIdentifier('gcgzw5rz2xovp84b4vha3a40') + ->setClientID('gcgzw5rz2xovp84b4vha3a40') + ->setClientName('Plex Web') + ->setClientVersion('4.133.0') + ->setClientPlatform('Chrome') + ->setDeviceName('Linux') ->setSecurity($security)->build(); try { @@ -1824,7 +2053,11 @@ actions: ); $sdk = Plex_API\PlexAPI::builder() - ->setXPlexClientIdentifier('gcgzw5rz2xovp84b4vha3a40') + ->setClientID('gcgzw5rz2xovp84b4vha3a40') + ->setClientName('Plex Web') + ->setClientVersion('4.133.0') + ->setClientPlatform('Chrome') + ->setDeviceName('Linux') ->setSecurity($security)->build(); try { @@ -1855,7 +2088,11 @@ actions: ); $sdk = Plex_API\PlexAPI::builder() - ->setXPlexClientIdentifier('gcgzw5rz2xovp84b4vha3a40') + ->setClientID('gcgzw5rz2xovp84b4vha3a40') + ->setClientName('Plex Web') + ->setClientVersion('4.133.0') + ->setClientPlatform('Chrome') + ->setDeviceName('Linux') ->setSecurity($security)->build(); try { @@ -1887,7 +2124,11 @@ actions: ); $sdk = Plex_API\PlexAPI::builder() - ->setXPlexClientIdentifier('gcgzw5rz2xovp84b4vha3a40') + ->setClientID('gcgzw5rz2xovp84b4vha3a40') + ->setClientName('Plex Web') + ->setClientVersion('4.133.0') + ->setClientPlatform('Chrome') + ->setDeviceName('Linux') ->setSecurity($security)->build(); try { @@ -1918,7 +2159,11 @@ actions: ); $sdk = Plex_API\PlexAPI::builder() - ->setXPlexClientIdentifier('gcgzw5rz2xovp84b4vha3a40') + ->setClientID('gcgzw5rz2xovp84b4vha3a40') + ->setClientName('Plex Web') + ->setClientVersion('4.133.0') + ->setClientPlatform('Chrome') + ->setDeviceName('Linux') ->setSecurity($security)->build(); try { @@ -1948,7 +2193,11 @@ actions: ); $sdk = Plex_API\PlexAPI::builder() - ->setXPlexClientIdentifier('gcgzw5rz2xovp84b4vha3a40') + ->setClientID('gcgzw5rz2xovp84b4vha3a40') + ->setClientName('Plex Web') + ->setClientVersion('4.133.0') + ->setClientPlatform('Chrome') + ->setDeviceName('Linux') ->setSecurity($security)->build(); try { @@ -1979,7 +2228,11 @@ actions: ); $sdk = Plex_API\PlexAPI::builder() - ->setXPlexClientIdentifier('gcgzw5rz2xovp84b4vha3a40') + ->setClientID('gcgzw5rz2xovp84b4vha3a40') + ->setClientName('Plex Web') + ->setClientVersion('4.133.0') + ->setClientPlatform('Chrome') + ->setDeviceName('Linux') ->setSecurity($security)->build(); try { @@ -2010,7 +2263,11 @@ actions: ); $sdk = Plex_API\PlexAPI::builder() - ->setXPlexClientIdentifier('gcgzw5rz2xovp84b4vha3a40') + ->setClientID('gcgzw5rz2xovp84b4vha3a40') + ->setClientName('Plex Web') + ->setClientVersion('4.133.0') + ->setClientPlatform('Chrome') + ->setDeviceName('Linux') ->setSecurity($security)->build(); try { @@ -2041,7 +2298,11 @@ actions: ); $sdk = Plex_API\PlexAPI::builder() - ->setXPlexClientIdentifier('gcgzw5rz2xovp84b4vha3a40') + ->setClientID('gcgzw5rz2xovp84b4vha3a40') + ->setClientName('Plex Web') + ->setClientVersion('4.133.0') + ->setClientPlatform('Chrome') + ->setDeviceName('Linux') ->setSecurity($security)->build(); try { @@ -2072,7 +2333,11 @@ actions: ); $sdk = Plex_API\PlexAPI::builder() - ->setXPlexClientIdentifier('gcgzw5rz2xovp84b4vha3a40') + ->setClientID('gcgzw5rz2xovp84b4vha3a40') + ->setClientName('Plex Web') + ->setClientVersion('4.133.0') + ->setClientPlatform('Chrome') + ->setDeviceName('Linux') ->setSecurity($security)->build(); try { @@ -2103,7 +2368,11 @@ actions: ); $sdk = Plex_API\PlexAPI::builder() - ->setXPlexClientIdentifier('gcgzw5rz2xovp84b4vha3a40') + ->setClientID('gcgzw5rz2xovp84b4vha3a40') + ->setClientName('Plex Web') + ->setClientVersion('4.133.0') + ->setClientPlatform('Chrome') + ->setDeviceName('Linux') ->setSecurity($security)->build(); try { @@ -2133,7 +2402,11 @@ actions: ); $sdk = Plex_API\PlexAPI::builder() - ->setXPlexClientIdentifier('gcgzw5rz2xovp84b4vha3a40') + ->setClientID('gcgzw5rz2xovp84b4vha3a40') + ->setClientName('Plex Web') + ->setClientVersion('4.133.0') + ->setClientPlatform('Chrome') + ->setDeviceName('Linux') ->setSecurity($security)->build(); try { @@ -2165,7 +2438,11 @@ actions: ); $sdk = Plex_API\PlexAPI::builder() - ->setXPlexClientIdentifier('gcgzw5rz2xovp84b4vha3a40') + ->setClientID('gcgzw5rz2xovp84b4vha3a40') + ->setClientName('Plex Web') + ->setClientVersion('4.133.0') + ->setClientPlatform('Chrome') + ->setDeviceName('Linux') ->setSecurity($security)->build(); try { @@ -2197,7 +2474,11 @@ actions: ); $sdk = Plex_API\PlexAPI::builder() - ->setXPlexClientIdentifier('gcgzw5rz2xovp84b4vha3a40') + ->setClientID('gcgzw5rz2xovp84b4vha3a40') + ->setClientName('Plex Web') + ->setClientVersion('4.133.0') + ->setClientPlatform('Chrome') + ->setDeviceName('Linux') ->setSecurity($security)->build(); try { @@ -2228,7 +2509,11 @@ actions: ); $sdk = Plex_API\PlexAPI::builder() - ->setXPlexClientIdentifier('gcgzw5rz2xovp84b4vha3a40') + ->setClientID('gcgzw5rz2xovp84b4vha3a40') + ->setClientName('Plex Web') + ->setClientVersion('4.133.0') + ->setClientPlatform('Chrome') + ->setDeviceName('Linux') ->setSecurity($security)->build(); try { @@ -2258,7 +2543,11 @@ actions: ); $sdk = Plex_API\PlexAPI::builder() - ->setXPlexClientIdentifier('gcgzw5rz2xovp84b4vha3a40') + ->setClientID('gcgzw5rz2xovp84b4vha3a40') + ->setClientName('Plex Web') + ->setClientVersion('4.133.0') + ->setClientPlatform('Chrome') + ->setDeviceName('Linux') ->setSecurity($security)->build(); try { @@ -2284,7 +2573,11 @@ actions: use LukeHagar\Plex_API\Models\Operations; $sdk = Plex_API\PlexAPI::builder() - ->setXPlexClientIdentifier('gcgzw5rz2xovp84b4vha3a40') + ->setClientID('gcgzw5rz2xovp84b4vha3a40') + ->setClientName('Plex Web') + ->setClientVersion('4.133.0') + ->setClientPlatform('Chrome') + ->setDeviceName('Linux') ->build(); try { @@ -2320,7 +2613,11 @@ actions: ); $sdk = Plex_API\PlexAPI::builder() - ->setXPlexClientIdentifier('gcgzw5rz2xovp84b4vha3a40') + ->setClientID('gcgzw5rz2xovp84b4vha3a40') + ->setClientName('Plex Web') + ->setClientVersion('4.133.0') + ->setClientPlatform('Chrome') + ->setDeviceName('Linux') ->setSecurity($security)->build(); try { diff --git a/docs/Models/Operations/GeoData.md b/docs/Models/Operations/GeoData.md index cd24926..1eb892a 100644 --- a/docs/Models/Operations/GeoData.md +++ b/docs/Models/Operations/GeoData.md @@ -13,7 +13,7 @@ Geo location data | `city` | *string* | :heavy_check_mark: | The name of the city. | Amsterdam | | `europeanUnionMember` | *bool* | :heavy_check_mark: | Indicates if the country is a member of the European Union. | true | | `timeZone` | *string* | :heavy_check_mark: | The time zone of the country. | America/St_Thomas | -| `postalCode` | *int* | :heavy_check_mark: | The postal code of the location. | 802 | +| `postalCode` | *string* | :heavy_check_mark: | The postal code of the location. | 802 | | `inPrivacyRestrictedCountry` | *bool* | :heavy_check_mark: | Indicates if the country has privacy restrictions. | true | | `inPrivacyRestrictedRegion` | *bool* | :heavy_check_mark: | Indicates if the region has privacy restrictions. | true | | `subdivisions` | *string* | :heavy_check_mark: | The name of the primary administrative subdivision. | Saint Thomas | diff --git a/docs/Models/Operations/GetGeoDataGeoData.md b/docs/Models/Operations/GetGeoDataGeoData.md index 9e7e3e5..a68fe6e 100644 --- a/docs/Models/Operations/GetGeoDataGeoData.md +++ b/docs/Models/Operations/GetGeoDataGeoData.md @@ -13,7 +13,7 @@ Geo location data | `city` | *string* | :heavy_check_mark: | The name of the city. | Amsterdam | | `europeanUnionMember` | *bool* | :heavy_check_mark: | Indicates if the country is a member of the European Union. | true | | `timeZone` | *string* | :heavy_check_mark: | The time zone of the country. | America/St_Thomas | -| `postalCode` | *int* | :heavy_check_mark: | The postal code of the location. | 802 | +| `postalCode` | *string* | :heavy_check_mark: | The postal code of the location. | 802 | | `inPrivacyRestrictedCountry` | *bool* | :heavy_check_mark: | Indicates if the country has privacy restrictions. | true | | `inPrivacyRestrictedRegion` | *bool* | :heavy_check_mark: | Indicates if the region has privacy restrictions. | true | | `subdivisions` | *string* | :heavy_check_mark: | The name of the primary administrative subdivision. | Saint Thomas | diff --git a/docs/Models/Operations/GetPinAuthPinContainer.md b/docs/Models/Operations/GetPinAuthPinContainer.md index 1f12ecf..76e1940 100644 --- a/docs/Models/Operations/GetPinAuthPinContainer.md +++ b/docs/Models/Operations/GetPinAuthPinContainer.md @@ -9,13 +9,13 @@ Requests a new pin id used in the authentication flow | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | `id` | *int* | :heavy_check_mark: | N/A | 308667304 | | `code` | *string* | :heavy_check_mark: | N/A | 7RQZ | -| `product` | *string* | :heavy_check_mark: | N/A | 0 | +| `product` | *string* | :heavy_check_mark: | N/A | Tautulli | | `trusted` | *bool* | :heavy_check_mark: | N/A | | | `qr` | *string* | :heavy_check_mark: | N/A | https://plex.tv/api/v2/pins/qr/7RQZ | -| `clientIdentifier` | *string* | :heavy_check_mark: | The X-Client-Identifier used in the request | | +| `clientIdentifier` | *string* | :heavy_check_mark: | The X-Client-Identifier used in the request | Tautulli | | `location` | [Operations\GeoData](../../Models/Operations/GeoData.md) | :heavy_check_mark: | Geo location data | {
"code": "VI",
"continent_code": "NA",
"country": "United States Virgin Islands",
"city": "Amsterdam",
"european_union_member": true,
"time_zone": "America/St_Thomas",
"postal_code": 802,
"in_privacy_restricted_country": true,
"in_privacy_restricted_region": true,
"subdivisions": "Saint Thomas",
"coordinates": "18.3381, -64.8941"
} | | `expiresIn` | *int* | :heavy_check_mark: | The number of seconds this pin expires, by default 900 seconds | 876 | | `createdAt` | [\DateTime](https://www.php.net/manual/en/class.datetime.php) | :heavy_check_mark: | N/A | 2024-07-16T17:03:05Z | | `expiresAt` | [\DateTime](https://www.php.net/manual/en/class.datetime.php) | :heavy_check_mark: | N/A | 2024-07-16T17:18:05Z | -| `authToken` | *mixed* | :heavy_minus_sign: | N/A | | +| `authToken` | *?string* | :heavy_minus_sign: | N/A | gcgzw5rz2xovp84b4vha3a40 | | `newRegistration` | *mixed* | :heavy_minus_sign: | N/A | | \ No newline at end of file diff --git a/docs/Models/Operations/GetPinRequest.md b/docs/Models/Operations/GetPinRequest.md index b18e006..0cb2d65 100644 --- a/docs/Models/Operations/GetPinRequest.md +++ b/docs/Models/Operations/GetPinRequest.md @@ -6,5 +6,8 @@ | Field | Type | Required | Description | Example | | --------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | `strong` | *?bool* | :heavy_minus_sign: | Determines the kind of code returned by the API call
Strong codes are used for Pin authentication flows
Non-Strong codes are used for `Plex.tv/link`
| | -| `xPlexClientIdentifier` | *?string* | :heavy_minus_sign: | The unique identifier for the client application
This is used to track the client application and its usage
(UUID, serial number, or other number unique per device)
| gcgzw5rz2xovp84b4vha3a40 | -| `xPlexProduct` | *?string* | :heavy_minus_sign: | N/A | Plex Web | \ No newline at end of file +| `clientID` | *?string* | :heavy_minus_sign: | The unique identifier for the client application
This is used to track the client application and its usage
(UUID, serial number, or other number unique per device)
| gcgzw5rz2xovp84b4vha3a40 | +| `clientName` | *?string* | :heavy_minus_sign: | N/A | Plex Web | +| `deviceName` | *?string* | :heavy_minus_sign: | N/A | Linux | +| `clientVersion` | *?string* | :heavy_minus_sign: | N/A | 4.133.0 | +| `clientPlatform` | *?string* | :heavy_minus_sign: | N/A | Chrome | \ No newline at end of file diff --git a/docs/Models/Operations/GetServerResourcesRequest.md b/docs/Models/Operations/GetServerResourcesRequest.md index bc1d47d..ed9ec8c 100644 --- a/docs/Models/Operations/GetServerResourcesRequest.md +++ b/docs/Models/Operations/GetServerResourcesRequest.md @@ -5,7 +5,7 @@ | Field | Type | Required | Description | Example | | --------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| `xPlexClientIdentifier` | *?string* | :heavy_minus_sign: | The unique identifier for the client application
This is used to track the client application and its usage
(UUID, serial number, or other number unique per device)
| gcgzw5rz2xovp84b4vha3a40 | +| `clientID` | *?string* | :heavy_minus_sign: | The unique identifier for the client application
This is used to track the client application and its usage
(UUID, serial number, or other number unique per device)
| gcgzw5rz2xovp84b4vha3a40 | | `includeHttps` | [?Operations\IncludeHttps](../../Models/Operations/IncludeHttps.md) | :heavy_minus_sign: | Include Https entries in the results | 1 | | `includeRelay` | [?Operations\IncludeRelay](../../Models/Operations/IncludeRelay.md) | :heavy_minus_sign: | Include Relay addresses in the results
E.g: https://10-0-0-25.bbf8e10c7fa20447cacee74cd9914cde.plex.direct:32400
| 1 | | `includeIPv6` | [?Operations\IncludeIPv6](../../Models/Operations/IncludeIPv6.md) | :heavy_minus_sign: | Include IPv6 entries in the results | 1 | \ No newline at end of file diff --git a/docs/Models/Operations/GetTokenByPinIdAuthPinContainer.md b/docs/Models/Operations/GetTokenByPinIdAuthPinContainer.md index 89bfb33..e09c581 100644 --- a/docs/Models/Operations/GetTokenByPinIdAuthPinContainer.md +++ b/docs/Models/Operations/GetTokenByPinIdAuthPinContainer.md @@ -9,13 +9,13 @@ The Pin with a non-null authToken when it has been verified by the user | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | `id` | *int* | :heavy_check_mark: | N/A | 308667304 | | `code` | *string* | :heavy_check_mark: | N/A | 7RQZ | -| `product` | *string* | :heavy_check_mark: | N/A | 0 | +| `product` | *string* | :heavy_check_mark: | N/A | Tautulli | | `trusted` | *bool* | :heavy_check_mark: | N/A | | | `qr` | *string* | :heavy_check_mark: | N/A | https://plex.tv/api/v2/pins/qr/7RQZ | -| `clientIdentifier` | *string* | :heavy_check_mark: | The X-Client-Identifier used in the request | | +| `clientIdentifier` | *string* | :heavy_check_mark: | The X-Client-Identifier used in the request | Tautulli | | `location` | [Operations\GetTokenByPinIdGeoData](../../Models/Operations/GetTokenByPinIdGeoData.md) | :heavy_check_mark: | Geo location data | {
"code": "VI",
"continent_code": "NA",
"country": "United States Virgin Islands",
"city": "Amsterdam",
"european_union_member": true,
"time_zone": "America/St_Thomas",
"postal_code": 802,
"in_privacy_restricted_country": true,
"in_privacy_restricted_region": true,
"subdivisions": "Saint Thomas",
"coordinates": "18.3381, -64.8941"
} | | `expiresIn` | *int* | :heavy_check_mark: | The number of seconds this pin expires, by default 900 seconds | 876 | | `createdAt` | [\DateTime](https://www.php.net/manual/en/class.datetime.php) | :heavy_check_mark: | N/A | 2024-07-16T17:03:05Z | | `expiresAt` | [\DateTime](https://www.php.net/manual/en/class.datetime.php) | :heavy_check_mark: | N/A | 2024-07-16T17:18:05Z | -| `authToken` | *mixed* | :heavy_minus_sign: | N/A | | +| `authToken` | *?string* | :heavy_minus_sign: | N/A | gcgzw5rz2xovp84b4vha3a40 | | `newRegistration` | *mixed* | :heavy_minus_sign: | N/A | | \ No newline at end of file diff --git a/docs/Models/Operations/GetTokenByPinIdGeoData.md b/docs/Models/Operations/GetTokenByPinIdGeoData.md index 30801b6..9043fb1 100644 --- a/docs/Models/Operations/GetTokenByPinIdGeoData.md +++ b/docs/Models/Operations/GetTokenByPinIdGeoData.md @@ -13,7 +13,7 @@ Geo location data | `city` | *string* | :heavy_check_mark: | The name of the city. | Amsterdam | | `europeanUnionMember` | *bool* | :heavy_check_mark: | Indicates if the country is a member of the European Union. | true | | `timeZone` | *string* | :heavy_check_mark: | The time zone of the country. | America/St_Thomas | -| `postalCode` | *int* | :heavy_check_mark: | The postal code of the location. | 802 | +| `postalCode` | *string* | :heavy_check_mark: | The postal code of the location. | 802 | | `inPrivacyRestrictedCountry` | *bool* | :heavy_check_mark: | Indicates if the country has privacy restrictions. | true | | `inPrivacyRestrictedRegion` | *bool* | :heavy_check_mark: | Indicates if the region has privacy restrictions. | true | | `subdivisions` | *string* | :heavy_check_mark: | The name of the primary administrative subdivision. | Saint Thomas | diff --git a/docs/Models/Operations/GetTokenByPinIdRequest.md b/docs/Models/Operations/GetTokenByPinIdRequest.md index 55e228f..9b25efc 100644 --- a/docs/Models/Operations/GetTokenByPinIdRequest.md +++ b/docs/Models/Operations/GetTokenByPinIdRequest.md @@ -6,4 +6,4 @@ | Field | Type | Required | Description | Example | | --------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | `pinID` | *int* | :heavy_check_mark: | The PinID to retrieve an access token for | | -| `xPlexClientIdentifier` | *?string* | :heavy_minus_sign: | The unique identifier for the client application
This is used to track the client application and its usage
(UUID, serial number, or other number unique per device)
| gcgzw5rz2xovp84b4vha3a40 | \ No newline at end of file +| `clientID` | *?string* | :heavy_minus_sign: | The unique identifier for the client application
This is used to track the client application and its usage
(UUID, serial number, or other number unique per device)
| gcgzw5rz2xovp84b4vha3a40 | \ No newline at end of file diff --git a/docs/Models/Operations/PostUsersSignInDataRequest.md b/docs/Models/Operations/PostUsersSignInDataRequest.md index ff9096d..c66fbed 100644 --- a/docs/Models/Operations/PostUsersSignInDataRequest.md +++ b/docs/Models/Operations/PostUsersSignInDataRequest.md @@ -5,5 +5,5 @@ | Field | Type | Required | Description | Example | | --------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| `xPlexClientIdentifier` | *?string* | :heavy_minus_sign: | The unique identifier for the client application
This is used to track the client application and its usage
(UUID, serial number, or other number unique per device)
| gcgzw5rz2xovp84b4vha3a40 | +| `clientID` | *?string* | :heavy_minus_sign: | The unique identifier for the client application
This is used to track the client application and its usage
(UUID, serial number, or other number unique per device)
| gcgzw5rz2xovp84b4vha3a40 | | `requestBody` | [?Operations\PostUsersSignInDataRequestBody](../../Models/Operations/PostUsersSignInDataRequestBody.md) | :heavy_minus_sign: | Login credentials | | \ No newline at end of file diff --git a/docs/sdks/activities/README.md b/docs/sdks/activities/README.md index 89be2da..c37b85f 100644 --- a/docs/sdks/activities/README.md +++ b/docs/sdks/activities/README.md @@ -35,7 +35,11 @@ $security = new Components\Security( ); $sdk = Plex_API\PlexAPI::builder() - ->setXPlexClientIdentifier('gcgzw5rz2xovp84b4vha3a40') + ->setClientID('gcgzw5rz2xovp84b4vha3a40') + ->setClientName('Plex Web') + ->setClientVersion('4.133.0') + ->setClientPlatform('Chrome') + ->setDeviceName('Linux') ->setSecurity($security)->build(); try { @@ -81,7 +85,11 @@ $security = new Components\Security( ); $sdk = Plex_API\PlexAPI::builder() - ->setXPlexClientIdentifier('gcgzw5rz2xovp84b4vha3a40') + ->setClientID('gcgzw5rz2xovp84b4vha3a40') + ->setClientName('Plex Web') + ->setClientVersion('4.133.0') + ->setClientPlatform('Chrome') + ->setDeviceName('Linux') ->setSecurity($security)->build(); try { diff --git a/docs/sdks/authentication/README.md b/docs/sdks/authentication/README.md index d109a33..baad445 100644 --- a/docs/sdks/authentication/README.md +++ b/docs/sdks/authentication/README.md @@ -33,7 +33,11 @@ $security = new Components\Security( ); $sdk = Plex_API\PlexAPI::builder() - ->setXPlexClientIdentifier('gcgzw5rz2xovp84b4vha3a40') + ->setClientID('gcgzw5rz2xovp84b4vha3a40') + ->setClientName('Plex Web') + ->setClientVersion('4.133.0') + ->setClientPlatform('Chrome') + ->setDeviceName('Linux') ->setSecurity($security)->build(); try { @@ -89,7 +93,11 @@ $security = new Components\Security( ); $sdk = Plex_API\PlexAPI::builder() - ->setXPlexClientIdentifier('gcgzw5rz2xovp84b4vha3a40') + ->setClientID('gcgzw5rz2xovp84b4vha3a40') + ->setClientName('Plex Web') + ->setClientVersion('4.133.0') + ->setClientPlatform('Chrome') + ->setDeviceName('Linux') ->setSecurity($security)->build(); try { @@ -142,7 +150,11 @@ $security = new Components\Security( ); $sdk = Plex_API\PlexAPI::builder() - ->setXPlexClientIdentifier('gcgzw5rz2xovp84b4vha3a40') + ->setClientID('gcgzw5rz2xovp84b4vha3a40') + ->setClientName('Plex Web') + ->setClientVersion('4.133.0') + ->setClientPlatform('Chrome') + ->setDeviceName('Linux') ->setSecurity($security)->build(); try { @@ -190,7 +202,11 @@ use LukeHagar\Plex_API; use LukeHagar\Plex_API\Models\Operations; $sdk = Plex_API\PlexAPI::builder() - ->setXPlexClientIdentifier('gcgzw5rz2xovp84b4vha3a40') + ->setClientID('gcgzw5rz2xovp84b4vha3a40') + ->setClientName('Plex Web') + ->setClientVersion('4.133.0') + ->setClientPlatform('Chrome') + ->setDeviceName('Linux') ->build(); try { @@ -213,7 +229,7 @@ try { | Parameter | Type | Required | Description | Example | | --------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| `xPlexClientIdentifier` | *string* | :heavy_minus_sign: | The unique identifier for the client application
This is used to track the client application and its usage
(UUID, serial number, or other number unique per device)
| gcgzw5rz2xovp84b4vha3a40 | +| `clientID` | *string* | :heavy_minus_sign: | The unique identifier for the client application
This is used to track the client application and its usage
(UUID, serial number, or other number unique per device)
| gcgzw5rz2xovp84b4vha3a40 | | `requestBody` | [Operations\PostUsersSignInDataRequestBody](../../Models/Operations/PostUsersSignInDataRequestBody.md) | :heavy_minus_sign: | Login credentials | | | `$serverURL` | *string* | :heavy_minus_sign: | An optional server URL to use. | http://localhost:8080 | diff --git a/docs/sdks/butler/README.md b/docs/sdks/butler/README.md index 6adf287..9c69b69 100644 --- a/docs/sdks/butler/README.md +++ b/docs/sdks/butler/README.md @@ -32,7 +32,11 @@ $security = new Components\Security( ); $sdk = Plex_API\PlexAPI::builder() - ->setXPlexClientIdentifier('gcgzw5rz2xovp84b4vha3a40') + ->setClientID('gcgzw5rz2xovp84b4vha3a40') + ->setClientName('Plex Web') + ->setClientVersion('4.133.0') + ->setClientPlatform('Chrome') + ->setDeviceName('Linux') ->setSecurity($security)->build(); try { @@ -83,7 +87,11 @@ $security = new Components\Security( ); $sdk = Plex_API\PlexAPI::builder() - ->setXPlexClientIdentifier('gcgzw5rz2xovp84b4vha3a40') + ->setClientID('gcgzw5rz2xovp84b4vha3a40') + ->setClientName('Plex Web') + ->setClientVersion('4.133.0') + ->setClientPlatform('Chrome') + ->setDeviceName('Linux') ->setSecurity($security)->build(); try { @@ -130,7 +138,11 @@ $security = new Components\Security( ); $sdk = Plex_API\PlexAPI::builder() - ->setXPlexClientIdentifier('gcgzw5rz2xovp84b4vha3a40') + ->setClientID('gcgzw5rz2xovp84b4vha3a40') + ->setClientName('Plex Web') + ->setClientVersion('4.133.0') + ->setClientPlatform('Chrome') + ->setDeviceName('Linux') ->setSecurity($security)->build(); try { @@ -182,7 +194,11 @@ $security = new Components\Security( ); $sdk = Plex_API\PlexAPI::builder() - ->setXPlexClientIdentifier('gcgzw5rz2xovp84b4vha3a40') + ->setClientID('gcgzw5rz2xovp84b4vha3a40') + ->setClientName('Plex Web') + ->setClientVersion('4.133.0') + ->setClientPlatform('Chrome') + ->setDeviceName('Linux') ->setSecurity($security)->build(); try { @@ -237,7 +253,11 @@ $security = new Components\Security( ); $sdk = Plex_API\PlexAPI::builder() - ->setXPlexClientIdentifier('gcgzw5rz2xovp84b4vha3a40') + ->setClientID('gcgzw5rz2xovp84b4vha3a40') + ->setClientName('Plex Web') + ->setClientVersion('4.133.0') + ->setClientPlatform('Chrome') + ->setDeviceName('Linux') ->setSecurity($security)->build(); try { diff --git a/docs/sdks/hubs/README.md b/docs/sdks/hubs/README.md index 04d7eb4..1bc3add 100644 --- a/docs/sdks/hubs/README.md +++ b/docs/sdks/hubs/README.md @@ -30,7 +30,11 @@ $security = new Components\Security( ); $sdk = Plex_API\PlexAPI::builder() - ->setXPlexClientIdentifier('gcgzw5rz2xovp84b4vha3a40') + ->setClientID('gcgzw5rz2xovp84b4vha3a40') + ->setClientName('Plex Web') + ->setClientVersion('4.133.0') + ->setClientPlatform('Chrome') + ->setDeviceName('Linux') ->setSecurity($security)->build(); try { @@ -86,7 +90,11 @@ $security = new Components\Security( ); $sdk = Plex_API\PlexAPI::builder() - ->setXPlexClientIdentifier('gcgzw5rz2xovp84b4vha3a40') + ->setClientID('gcgzw5rz2xovp84b4vha3a40') + ->setClientName('Plex Web') + ->setClientVersion('4.133.0') + ->setClientPlatform('Chrome') + ->setDeviceName('Linux') ->setSecurity($security)->build(); try { diff --git a/docs/sdks/library/README.md b/docs/sdks/library/README.md index 8931ab9..ee626db 100644 --- a/docs/sdks/library/README.md +++ b/docs/sdks/library/README.md @@ -39,7 +39,11 @@ $security = new Components\Security( ); $sdk = Plex_API\PlexAPI::builder() - ->setXPlexClientIdentifier('gcgzw5rz2xovp84b4vha3a40') + ->setClientID('gcgzw5rz2xovp84b4vha3a40') + ->setClientName('Plex Web') + ->setClientVersion('4.133.0') + ->setClientPlatform('Chrome') + ->setDeviceName('Linux') ->setSecurity($security)->build(); try { @@ -94,7 +98,11 @@ $security = new Components\Security( ); $sdk = Plex_API\PlexAPI::builder() - ->setXPlexClientIdentifier('gcgzw5rz2xovp84b4vha3a40') + ->setClientID('gcgzw5rz2xovp84b4vha3a40') + ->setClientName('Plex Web') + ->setClientVersion('4.133.0') + ->setClientPlatform('Chrome') + ->setDeviceName('Linux') ->setSecurity($security)->build(); try { @@ -154,7 +162,11 @@ $security = new Components\Security( ); $sdk = Plex_API\PlexAPI::builder() - ->setXPlexClientIdentifier('gcgzw5rz2xovp84b4vha3a40') + ->setClientID('gcgzw5rz2xovp84b4vha3a40') + ->setClientName('Plex Web') + ->setClientVersion('4.133.0') + ->setClientPlatform('Chrome') + ->setDeviceName('Linux') ->setSecurity($security)->build(); try { @@ -240,7 +252,11 @@ $security = new Components\Security( ); $sdk = Plex_API\PlexAPI::builder() - ->setXPlexClientIdentifier('gcgzw5rz2xovp84b4vha3a40') + ->setClientID('gcgzw5rz2xovp84b4vha3a40') + ->setClientName('Plex Web') + ->setClientVersion('4.133.0') + ->setClientPlatform('Chrome') + ->setDeviceName('Linux') ->setSecurity($security)->build(); try { @@ -294,7 +310,11 @@ $security = new Components\Security( ); $sdk = Plex_API\PlexAPI::builder() - ->setXPlexClientIdentifier('gcgzw5rz2xovp84b4vha3a40') + ->setClientID('gcgzw5rz2xovp84b4vha3a40') + ->setClientName('Plex Web') + ->setClientVersion('4.133.0') + ->setClientPlatform('Chrome') + ->setDeviceName('Linux') ->setSecurity($security)->build(); try { @@ -368,7 +388,11 @@ $security = new Components\Security( ); $sdk = Plex_API\PlexAPI::builder() - ->setXPlexClientIdentifier('gcgzw5rz2xovp84b4vha3a40') + ->setClientID('gcgzw5rz2xovp84b4vha3a40') + ->setClientName('Plex Web') + ->setClientVersion('4.133.0') + ->setClientPlatform('Chrome') + ->setDeviceName('Linux') ->setSecurity($security)->build(); try { @@ -431,7 +455,11 @@ $security = new Components\Security( ); $sdk = Plex_API\PlexAPI::builder() - ->setXPlexClientIdentifier('gcgzw5rz2xovp84b4vha3a40') + ->setClientID('gcgzw5rz2xovp84b4vha3a40') + ->setClientName('Plex Web') + ->setClientVersion('4.133.0') + ->setClientPlatform('Chrome') + ->setDeviceName('Linux') ->setSecurity($security)->build(); try { @@ -504,7 +532,11 @@ $security = new Components\Security( ); $sdk = Plex_API\PlexAPI::builder() - ->setXPlexClientIdentifier('gcgzw5rz2xovp84b4vha3a40') + ->setClientID('gcgzw5rz2xovp84b4vha3a40') + ->setClientName('Plex Web') + ->setClientVersion('4.133.0') + ->setClientPlatform('Chrome') + ->setDeviceName('Linux') ->setSecurity($security)->build(); try { @@ -559,7 +591,11 @@ $security = new Components\Security( ); $sdk = Plex_API\PlexAPI::builder() - ->setXPlexClientIdentifier('gcgzw5rz2xovp84b4vha3a40') + ->setClientID('gcgzw5rz2xovp84b4vha3a40') + ->setClientName('Plex Web') + ->setClientVersion('4.133.0') + ->setClientPlatform('Chrome') + ->setDeviceName('Linux') ->setSecurity($security)->build(); try { @@ -613,7 +649,11 @@ $security = new Components\Security( ); $sdk = Plex_API\PlexAPI::builder() - ->setXPlexClientIdentifier('gcgzw5rz2xovp84b4vha3a40') + ->setClientID('gcgzw5rz2xovp84b4vha3a40') + ->setClientName('Plex Web') + ->setClientVersion('4.133.0') + ->setClientPlatform('Chrome') + ->setDeviceName('Linux') ->setSecurity($security)->build(); try { @@ -669,7 +709,11 @@ $security = new Components\Security( ); $sdk = Plex_API\PlexAPI::builder() - ->setXPlexClientIdentifier('gcgzw5rz2xovp84b4vha3a40') + ->setClientID('gcgzw5rz2xovp84b4vha3a40') + ->setClientName('Plex Web') + ->setClientVersion('4.133.0') + ->setClientPlatform('Chrome') + ->setDeviceName('Linux') ->setSecurity($security)->build(); try { @@ -724,7 +768,11 @@ $security = new Components\Security( ); $sdk = Plex_API\PlexAPI::builder() - ->setXPlexClientIdentifier('gcgzw5rz2xovp84b4vha3a40') + ->setClientID('gcgzw5rz2xovp84b4vha3a40') + ->setClientName('Plex Web') + ->setClientVersion('4.133.0') + ->setClientPlatform('Chrome') + ->setDeviceName('Linux') ->setSecurity($security)->build(); try { diff --git a/docs/sdks/log/README.md b/docs/sdks/log/README.md index 2a32eaa..48dc3dd 100644 --- a/docs/sdks/log/README.md +++ b/docs/sdks/log/README.md @@ -32,7 +32,11 @@ $security = new Components\Security( ); $sdk = Plex_API\PlexAPI::builder() - ->setXPlexClientIdentifier('gcgzw5rz2xovp84b4vha3a40') + ->setClientID('gcgzw5rz2xovp84b4vha3a40') + ->setClientName('Plex Web') + ->setClientVersion('4.133.0') + ->setClientPlatform('Chrome') + ->setDeviceName('Linux') ->setSecurity($security)->build(); try { @@ -108,7 +112,11 @@ $security = new Components\Security( ); $sdk = Plex_API\PlexAPI::builder() - ->setXPlexClientIdentifier('gcgzw5rz2xovp84b4vha3a40') + ->setClientID('gcgzw5rz2xovp84b4vha3a40') + ->setClientName('Plex Web') + ->setClientVersion('4.133.0') + ->setClientPlatform('Chrome') + ->setDeviceName('Linux') ->setSecurity($security)->build(); try { @@ -164,7 +172,11 @@ $security = new Components\Security( ); $sdk = Plex_API\PlexAPI::builder() - ->setXPlexClientIdentifier('gcgzw5rz2xovp84b4vha3a40') + ->setClientID('gcgzw5rz2xovp84b4vha3a40') + ->setClientName('Plex Web') + ->setClientVersion('4.133.0') + ->setClientPlatform('Chrome') + ->setDeviceName('Linux') ->setSecurity($security)->build(); try { diff --git a/docs/sdks/media/README.md b/docs/sdks/media/README.md index eb40183..c9194c1 100644 --- a/docs/sdks/media/README.md +++ b/docs/sdks/media/README.md @@ -32,7 +32,11 @@ $security = new Components\Security( ); $sdk = Plex_API\PlexAPI::builder() - ->setXPlexClientIdentifier('gcgzw5rz2xovp84b4vha3a40') + ->setClientID('gcgzw5rz2xovp84b4vha3a40') + ->setClientName('Plex Web') + ->setClientVersion('4.133.0') + ->setClientPlatform('Chrome') + ->setDeviceName('Linux') ->setSecurity($security)->build(); try { @@ -85,7 +89,11 @@ $security = new Components\Security( ); $sdk = Plex_API\PlexAPI::builder() - ->setXPlexClientIdentifier('gcgzw5rz2xovp84b4vha3a40') + ->setClientID('gcgzw5rz2xovp84b4vha3a40') + ->setClientName('Plex Web') + ->setClientVersion('4.133.0') + ->setClientPlatform('Chrome') + ->setDeviceName('Linux') ->setSecurity($security)->build(); try { @@ -139,7 +147,11 @@ $security = new Components\Security( ); $sdk = Plex_API\PlexAPI::builder() - ->setXPlexClientIdentifier('gcgzw5rz2xovp84b4vha3a40') + ->setClientID('gcgzw5rz2xovp84b4vha3a40') + ->setClientName('Plex Web') + ->setClientVersion('4.133.0') + ->setClientPlatform('Chrome') + ->setDeviceName('Linux') ->setSecurity($security)->build(); try { @@ -195,7 +207,11 @@ $security = new Components\Security( ); $sdk = Plex_API\PlexAPI::builder() - ->setXPlexClientIdentifier('gcgzw5rz2xovp84b4vha3a40') + ->setClientID('gcgzw5rz2xovp84b4vha3a40') + ->setClientName('Plex Web') + ->setClientVersion('4.133.0') + ->setClientPlatform('Chrome') + ->setDeviceName('Linux') ->setSecurity($security)->build(); try { @@ -256,7 +272,11 @@ $security = new Components\Security( ); $sdk = Plex_API\PlexAPI::builder() - ->setXPlexClientIdentifier('gcgzw5rz2xovp84b4vha3a40') + ->setClientID('gcgzw5rz2xovp84b4vha3a40') + ->setClientName('Plex Web') + ->setClientVersion('4.133.0') + ->setClientPlatform('Chrome') + ->setDeviceName('Linux') ->setSecurity($security)->build(); try { diff --git a/docs/sdks/playlists/README.md b/docs/sdks/playlists/README.md index d8adcf4..f611ccf 100644 --- a/docs/sdks/playlists/README.md +++ b/docs/sdks/playlists/README.md @@ -43,7 +43,11 @@ $security = new Components\Security( ); $sdk = Plex_API\PlexAPI::builder() - ->setXPlexClientIdentifier('gcgzw5rz2xovp84b4vha3a40') + ->setClientID('gcgzw5rz2xovp84b4vha3a40') + ->setClientName('Plex Web') + ->setClientVersion('4.133.0') + ->setClientPlatform('Chrome') + ->setDeviceName('Linux') ->setSecurity($security)->build(); try { @@ -102,7 +106,11 @@ $security = new Components\Security( ); $sdk = Plex_API\PlexAPI::builder() - ->setXPlexClientIdentifier('gcgzw5rz2xovp84b4vha3a40') + ->setClientID('gcgzw5rz2xovp84b4vha3a40') + ->setClientName('Plex Web') + ->setClientVersion('4.133.0') + ->setClientPlatform('Chrome') + ->setDeviceName('Linux') ->setSecurity($security)->build(); try { @@ -158,7 +166,11 @@ $security = new Components\Security( ); $sdk = Plex_API\PlexAPI::builder() - ->setXPlexClientIdentifier('gcgzw5rz2xovp84b4vha3a40') + ->setClientID('gcgzw5rz2xovp84b4vha3a40') + ->setClientName('Plex Web') + ->setClientVersion('4.133.0') + ->setClientPlatform('Chrome') + ->setDeviceName('Linux') ->setSecurity($security)->build(); try { @@ -212,7 +224,11 @@ $security = new Components\Security( ); $sdk = Plex_API\PlexAPI::builder() - ->setXPlexClientIdentifier('gcgzw5rz2xovp84b4vha3a40') + ->setClientID('gcgzw5rz2xovp84b4vha3a40') + ->setClientName('Plex Web') + ->setClientVersion('4.133.0') + ->setClientPlatform('Chrome') + ->setDeviceName('Linux') ->setSecurity($security)->build(); try { @@ -266,7 +282,11 @@ $security = new Components\Security( ); $sdk = Plex_API\PlexAPI::builder() - ->setXPlexClientIdentifier('gcgzw5rz2xovp84b4vha3a40') + ->setClientID('gcgzw5rz2xovp84b4vha3a40') + ->setClientName('Plex Web') + ->setClientVersion('4.133.0') + ->setClientPlatform('Chrome') + ->setDeviceName('Linux') ->setSecurity($security)->build(); try { @@ -326,7 +346,11 @@ $security = new Components\Security( ); $sdk = Plex_API\PlexAPI::builder() - ->setXPlexClientIdentifier('gcgzw5rz2xovp84b4vha3a40') + ->setClientID('gcgzw5rz2xovp84b4vha3a40') + ->setClientName('Plex Web') + ->setClientVersion('4.133.0') + ->setClientPlatform('Chrome') + ->setDeviceName('Linux') ->setSecurity($security)->build(); try { @@ -381,7 +405,11 @@ $security = new Components\Security( ); $sdk = Plex_API\PlexAPI::builder() - ->setXPlexClientIdentifier('gcgzw5rz2xovp84b4vha3a40') + ->setClientID('gcgzw5rz2xovp84b4vha3a40') + ->setClientName('Plex Web') + ->setClientVersion('4.133.0') + ->setClientPlatform('Chrome') + ->setDeviceName('Linux') ->setSecurity($security)->build(); try { @@ -436,7 +464,11 @@ $security = new Components\Security( ); $sdk = Plex_API\PlexAPI::builder() - ->setXPlexClientIdentifier('gcgzw5rz2xovp84b4vha3a40') + ->setClientID('gcgzw5rz2xovp84b4vha3a40') + ->setClientName('Plex Web') + ->setClientVersion('4.133.0') + ->setClientPlatform('Chrome') + ->setDeviceName('Linux') ->setSecurity($security)->build(); try { @@ -493,7 +525,11 @@ $security = new Components\Security( ); $sdk = Plex_API\PlexAPI::builder() - ->setXPlexClientIdentifier('gcgzw5rz2xovp84b4vha3a40') + ->setClientID('gcgzw5rz2xovp84b4vha3a40') + ->setClientName('Plex Web') + ->setClientVersion('4.133.0') + ->setClientPlatform('Chrome') + ->setDeviceName('Linux') ->setSecurity($security)->build(); try { diff --git a/docs/sdks/plex/README.md b/docs/sdks/plex/README.md index 299db06..8aa55a6 100644 --- a/docs/sdks/plex/README.md +++ b/docs/sdks/plex/README.md @@ -34,7 +34,11 @@ $security = new Components\Security( ); $sdk = Plex_API\PlexAPI::builder() - ->setXPlexClientIdentifier('gcgzw5rz2xovp84b4vha3a40') + ->setClientID('gcgzw5rz2xovp84b4vha3a40') + ->setClientName('Plex Web') + ->setClientVersion('4.133.0') + ->setClientPlatform('Chrome') + ->setDeviceName('Linux') ->setSecurity($security)->build(); try { @@ -86,7 +90,11 @@ $security = new Components\Security( ); $sdk = Plex_API\PlexAPI::builder() - ->setXPlexClientIdentifier('gcgzw5rz2xovp84b4vha3a40') + ->setClientID('gcgzw5rz2xovp84b4vha3a40') + ->setClientName('Plex Web') + ->setClientVersion('4.133.0') + ->setClientPlatform('Chrome') + ->setDeviceName('Linux') ->setSecurity($security)->build(); try { @@ -133,7 +141,11 @@ require 'vendor/autoload.php'; use LukeHagar\Plex_API; $sdk = Plex_API\PlexAPI::builder() - ->setXPlexClientIdentifier('gcgzw5rz2xovp84b4vha3a40') + ->setClientID('gcgzw5rz2xovp84b4vha3a40') + ->setClientName('Plex Web') + ->setClientVersion('4.133.0') + ->setClientPlatform('Chrome') + ->setDeviceName('Linux') ->build(); try { @@ -185,7 +197,11 @@ $security = new Components\Security( ); $sdk = Plex_API\PlexAPI::builder() - ->setXPlexClientIdentifier('gcgzw5rz2xovp84b4vha3a40') + ->setClientID('gcgzw5rz2xovp84b4vha3a40') + ->setClientName('Plex Web') + ->setClientVersion('4.133.0') + ->setClientPlatform('Chrome') + ->setDeviceName('Linux') ->setSecurity($security)->build(); try { @@ -232,7 +248,11 @@ $security = new Components\Security( ); $sdk = Plex_API\PlexAPI::builder() - ->setXPlexClientIdentifier('gcgzw5rz2xovp84b4vha3a40') + ->setClientID('gcgzw5rz2xovp84b4vha3a40') + ->setClientName('Plex Web') + ->setClientVersion('4.133.0') + ->setClientPlatform('Chrome') + ->setDeviceName('Linux') ->setSecurity($security)->build(); try { @@ -251,7 +271,7 @@ try { | Parameter | Type | Required | Description | Example | | --------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| `xPlexClientIdentifier` | *string* | :heavy_minus_sign: | The unique identifier for the client application
This is used to track the client application and its usage
(UUID, serial number, or other number unique per device)
| gcgzw5rz2xovp84b4vha3a40 | +| `clientID` | *string* | :heavy_minus_sign: | The unique identifier for the client application
This is used to track the client application and its usage
(UUID, serial number, or other number unique per device)
| gcgzw5rz2xovp84b4vha3a40 | | `includeHttps` | [Operations\IncludeHttps](../../Models/Operations/IncludeHttps.md) | :heavy_minus_sign: | Include Https entries in the results | 1 | | `includeRelay` | [Operations\IncludeRelay](../../Models/Operations/IncludeRelay.md) | :heavy_minus_sign: | Include Relay addresses in the results
E.g: https://10-0-0-25.bbf8e10c7fa20447cacee74cd9914cde.plex.direct:32400
| 1 | | `includeIPv6` | [Operations\IncludeIPv6](../../Models/Operations/IncludeIPv6.md) | :heavy_minus_sign: | Include IPv6 entries in the results | 1 | @@ -272,7 +292,7 @@ try { ## getPin -Retrieve a Pin from Plex.tv for authentication flows +Retrieve a Pin ID from Plex.tv to use for authentication flows ### Example Usage @@ -282,14 +302,19 @@ declare(strict_types=1); require 'vendor/autoload.php'; use LukeHagar\Plex_API; +use LukeHagar\Plex_API\Models\Operations; $sdk = Plex_API\PlexAPI::builder() - ->setXPlexClientIdentifier('gcgzw5rz2xovp84b4vha3a40') + ->setClientID('gcgzw5rz2xovp84b4vha3a40') + ->setClientName('Plex Web') + ->setClientVersion('4.133.0') + ->setClientPlatform('Chrome') + ->setDeviceName('Linux') ->build(); try { - - $response = $sdk->plex->getPin(false, 'gcgzw5rz2xovp84b4vha3a40', 'Plex Web'); + $request = new Operations\GetPinRequest(); + $response = $sdk->plex->getPin($request); if ($response->authPinContainer !== null) { // handle response @@ -301,12 +326,10 @@ try { ### Parameters -| Parameter | Type | Required | Description | Example | -| --------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| `strong` | *bool* | :heavy_minus_sign: | Determines the kind of code returned by the API call
Strong codes are used for Pin authentication flows
Non-Strong codes are used for `Plex.tv/link`
| | -| `xPlexClientIdentifier` | *string* | :heavy_minus_sign: | The unique identifier for the client application
This is used to track the client application and its usage
(UUID, serial number, or other number unique per device)
| gcgzw5rz2xovp84b4vha3a40 | -| `xPlexProduct` | *string* | :heavy_minus_sign: | N/A | Plex Web | -| `$serverURL` | *string* | :heavy_minus_sign: | An optional server URL to use. | http://localhost:8080 | +| Parameter | Type | Required | Description | +| -------------------------------------------------------------------- | -------------------------------------------------------------------- | -------------------------------------------------------------------- | -------------------------------------------------------------------- | +| `$request` | [Operations\GetPinRequest](../../Models/Operations/GetPinRequest.md) | :heavy_check_mark: | The request object to use for the request. | +| `$serverURL` | *string* | :heavy_minus_sign: | An optional server URL to use. | ### Response @@ -334,7 +357,11 @@ require 'vendor/autoload.php'; use LukeHagar\Plex_API; $sdk = Plex_API\PlexAPI::builder() - ->setXPlexClientIdentifier('gcgzw5rz2xovp84b4vha3a40') + ->setClientID('gcgzw5rz2xovp84b4vha3a40') + ->setClientName('Plex Web') + ->setClientVersion('4.133.0') + ->setClientPlatform('Chrome') + ->setDeviceName('Linux') ->build(); try { @@ -354,7 +381,7 @@ try { | Parameter | Type | Required | Description | Example | | --------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | `pinID` | *int* | :heavy_check_mark: | The PinID to retrieve an access token for | | -| `xPlexClientIdentifier` | *string* | :heavy_minus_sign: | The unique identifier for the client application
This is used to track the client application and its usage
(UUID, serial number, or other number unique per device)
| gcgzw5rz2xovp84b4vha3a40 | +| `clientID` | *string* | :heavy_minus_sign: | The unique identifier for the client application
This is used to track the client application and its usage
(UUID, serial number, or other number unique per device)
| gcgzw5rz2xovp84b4vha3a40 | | `$serverURL` | *string* | :heavy_minus_sign: | An optional server URL to use. | http://localhost:8080 | ### Response diff --git a/docs/sdks/search/README.md b/docs/sdks/search/README.md index 531820f..3b377d0 100644 --- a/docs/sdks/search/README.md +++ b/docs/sdks/search/README.md @@ -42,7 +42,11 @@ $security = new Components\Security( ); $sdk = Plex_API\PlexAPI::builder() - ->setXPlexClientIdentifier('gcgzw5rz2xovp84b4vha3a40') + ->setClientID('gcgzw5rz2xovp84b4vha3a40') + ->setClientName('Plex Web') + ->setClientVersion('4.133.0') + ->setClientPlatform('Chrome') + ->setDeviceName('Linux') ->setSecurity($security)->build(); try { @@ -101,7 +105,11 @@ $security = new Components\Security( ); $sdk = Plex_API\PlexAPI::builder() - ->setXPlexClientIdentifier('gcgzw5rz2xovp84b4vha3a40') + ->setClientID('gcgzw5rz2xovp84b4vha3a40') + ->setClientName('Plex Web') + ->setClientVersion('4.133.0') + ->setClientPlatform('Chrome') + ->setDeviceName('Linux') ->setSecurity($security)->build(); try { @@ -156,7 +164,11 @@ $security = new Components\Security( ); $sdk = Plex_API\PlexAPI::builder() - ->setXPlexClientIdentifier('gcgzw5rz2xovp84b4vha3a40') + ->setClientID('gcgzw5rz2xovp84b4vha3a40') + ->setClientName('Plex Web') + ->setClientVersion('4.133.0') + ->setClientPlatform('Chrome') + ->setDeviceName('Linux') ->setSecurity($security)->build(); try { diff --git a/docs/sdks/server/README.md b/docs/sdks/server/README.md index ec3d519..fb39ab1 100644 --- a/docs/sdks/server/README.md +++ b/docs/sdks/server/README.md @@ -36,7 +36,11 @@ $security = new Components\Security( ); $sdk = Plex_API\PlexAPI::builder() - ->setXPlexClientIdentifier('gcgzw5rz2xovp84b4vha3a40') + ->setClientID('gcgzw5rz2xovp84b4vha3a40') + ->setClientName('Plex Web') + ->setClientVersion('4.133.0') + ->setClientPlatform('Chrome') + ->setDeviceName('Linux') ->setSecurity($security)->build(); try { @@ -82,7 +86,11 @@ $security = new Components\Security( ); $sdk = Plex_API\PlexAPI::builder() - ->setXPlexClientIdentifier('gcgzw5rz2xovp84b4vha3a40') + ->setClientID('gcgzw5rz2xovp84b4vha3a40') + ->setClientName('Plex Web') + ->setClientVersion('4.133.0') + ->setClientPlatform('Chrome') + ->setDeviceName('Linux') ->setSecurity($security)->build(); try { @@ -128,7 +136,11 @@ $security = new Components\Security( ); $sdk = Plex_API\PlexAPI::builder() - ->setXPlexClientIdentifier('gcgzw5rz2xovp84b4vha3a40') + ->setClientID('gcgzw5rz2xovp84b4vha3a40') + ->setClientName('Plex Web') + ->setClientVersion('4.133.0') + ->setClientPlatform('Chrome') + ->setDeviceName('Linux') ->setSecurity($security)->build(); try { @@ -174,7 +186,11 @@ $security = new Components\Security( ); $sdk = Plex_API\PlexAPI::builder() - ->setXPlexClientIdentifier('gcgzw5rz2xovp84b4vha3a40') + ->setClientID('gcgzw5rz2xovp84b4vha3a40') + ->setClientName('Plex Web') + ->setClientVersion('4.133.0') + ->setClientPlatform('Chrome') + ->setDeviceName('Linux') ->setSecurity($security)->build(); try { @@ -215,7 +231,11 @@ require 'vendor/autoload.php'; use LukeHagar\Plex_API; $sdk = Plex_API\PlexAPI::builder() - ->setXPlexClientIdentifier('gcgzw5rz2xovp84b4vha3a40') + ->setClientID('gcgzw5rz2xovp84b4vha3a40') + ->setClientName('Plex Web') + ->setClientVersion('4.133.0') + ->setClientPlatform('Chrome') + ->setDeviceName('Linux') ->build(); try { @@ -260,7 +280,11 @@ $security = new Components\Security( ); $sdk = Plex_API\PlexAPI::builder() - ->setXPlexClientIdentifier('gcgzw5rz2xovp84b4vha3a40') + ->setClientID('gcgzw5rz2xovp84b4vha3a40') + ->setClientName('Plex Web') + ->setClientVersion('4.133.0') + ->setClientPlatform('Chrome') + ->setDeviceName('Linux') ->setSecurity($security)->build(); try { @@ -308,7 +332,11 @@ $security = new Components\Security( ); $sdk = Plex_API\PlexAPI::builder() - ->setXPlexClientIdentifier('gcgzw5rz2xovp84b4vha3a40') + ->setClientID('gcgzw5rz2xovp84b4vha3a40') + ->setClientName('Plex Web') + ->setClientVersion('4.133.0') + ->setClientPlatform('Chrome') + ->setDeviceName('Linux') ->setSecurity($security)->build(); try { @@ -369,7 +397,11 @@ $security = new Components\Security( ); $sdk = Plex_API\PlexAPI::builder() - ->setXPlexClientIdentifier('gcgzw5rz2xovp84b4vha3a40') + ->setClientID('gcgzw5rz2xovp84b4vha3a40') + ->setClientName('Plex Web') + ->setClientVersion('4.133.0') + ->setClientPlatform('Chrome') + ->setDeviceName('Linux') ->setSecurity($security)->build(); try { @@ -422,7 +454,11 @@ $security = new Components\Security( ); $sdk = Plex_API\PlexAPI::builder() - ->setXPlexClientIdentifier('gcgzw5rz2xovp84b4vha3a40') + ->setClientID('gcgzw5rz2xovp84b4vha3a40') + ->setClientName('Plex Web') + ->setClientVersion('4.133.0') + ->setClientPlatform('Chrome') + ->setDeviceName('Linux') ->setSecurity($security)->build(); try { diff --git a/docs/sdks/sessions/README.md b/docs/sdks/sessions/README.md index a8082cf..74a5315 100644 --- a/docs/sdks/sessions/README.md +++ b/docs/sdks/sessions/README.md @@ -31,7 +31,11 @@ $security = new Components\Security( ); $sdk = Plex_API\PlexAPI::builder() - ->setXPlexClientIdentifier('gcgzw5rz2xovp84b4vha3a40') + ->setClientID('gcgzw5rz2xovp84b4vha3a40') + ->setClientName('Plex Web') + ->setClientVersion('4.133.0') + ->setClientPlatform('Chrome') + ->setDeviceName('Linux') ->setSecurity($security)->build(); try { @@ -78,7 +82,11 @@ $security = new Components\Security( ); $sdk = Plex_API\PlexAPI::builder() - ->setXPlexClientIdentifier('gcgzw5rz2xovp84b4vha3a40') + ->setClientID('gcgzw5rz2xovp84b4vha3a40') + ->setClientName('Plex Web') + ->setClientVersion('4.133.0') + ->setClientPlatform('Chrome') + ->setDeviceName('Linux') ->setSecurity($security)->build(); try { @@ -134,7 +142,11 @@ $security = new Components\Security( ); $sdk = Plex_API\PlexAPI::builder() - ->setXPlexClientIdentifier('gcgzw5rz2xovp84b4vha3a40') + ->setClientID('gcgzw5rz2xovp84b4vha3a40') + ->setClientName('Plex Web') + ->setClientVersion('4.133.0') + ->setClientPlatform('Chrome') + ->setDeviceName('Linux') ->setSecurity($security)->build(); try { @@ -180,7 +192,11 @@ $security = new Components\Security( ); $sdk = Plex_API\PlexAPI::builder() - ->setXPlexClientIdentifier('gcgzw5rz2xovp84b4vha3a40') + ->setClientID('gcgzw5rz2xovp84b4vha3a40') + ->setClientName('Plex Web') + ->setClientVersion('4.133.0') + ->setClientPlatform('Chrome') + ->setDeviceName('Linux') ->setSecurity($security)->build(); try { diff --git a/docs/sdks/statistics/README.md b/docs/sdks/statistics/README.md index 226365b..381ebd7 100644 --- a/docs/sdks/statistics/README.md +++ b/docs/sdks/statistics/README.md @@ -30,7 +30,11 @@ $security = new Components\Security( ); $sdk = Plex_API\PlexAPI::builder() - ->setXPlexClientIdentifier('gcgzw5rz2xovp84b4vha3a40') + ->setClientID('gcgzw5rz2xovp84b4vha3a40') + ->setClientName('Plex Web') + ->setClientVersion('4.133.0') + ->setClientPlatform('Chrome') + ->setDeviceName('Linux') ->setSecurity($security)->build(); try { @@ -83,7 +87,11 @@ $security = new Components\Security( ); $sdk = Plex_API\PlexAPI::builder() - ->setXPlexClientIdentifier('gcgzw5rz2xovp84b4vha3a40') + ->setClientID('gcgzw5rz2xovp84b4vha3a40') + ->setClientName('Plex Web') + ->setClientVersion('4.133.0') + ->setClientPlatform('Chrome') + ->setDeviceName('Linux') ->setSecurity($security)->build(); try { @@ -136,7 +144,11 @@ $security = new Components\Security( ); $sdk = Plex_API\PlexAPI::builder() - ->setXPlexClientIdentifier('gcgzw5rz2xovp84b4vha3a40') + ->setClientID('gcgzw5rz2xovp84b4vha3a40') + ->setClientName('Plex Web') + ->setClientVersion('4.133.0') + ->setClientPlatform('Chrome') + ->setDeviceName('Linux') ->setSecurity($security)->build(); try { diff --git a/docs/sdks/updater/README.md b/docs/sdks/updater/README.md index 8badf85..cf7f773 100644 --- a/docs/sdks/updater/README.md +++ b/docs/sdks/updater/README.md @@ -31,7 +31,11 @@ $security = new Components\Security( ); $sdk = Plex_API\PlexAPI::builder() - ->setXPlexClientIdentifier('gcgzw5rz2xovp84b4vha3a40') + ->setClientID('gcgzw5rz2xovp84b4vha3a40') + ->setClientName('Plex Web') + ->setClientVersion('4.133.0') + ->setClientPlatform('Chrome') + ->setDeviceName('Linux') ->setSecurity($security)->build(); try { @@ -78,7 +82,11 @@ $security = new Components\Security( ); $sdk = Plex_API\PlexAPI::builder() - ->setXPlexClientIdentifier('gcgzw5rz2xovp84b4vha3a40') + ->setClientID('gcgzw5rz2xovp84b4vha3a40') + ->setClientName('Plex Web') + ->setClientVersion('4.133.0') + ->setClientPlatform('Chrome') + ->setDeviceName('Linux') ->setSecurity($security)->build(); try { @@ -133,7 +141,11 @@ $security = new Components\Security( ); $sdk = Plex_API\PlexAPI::builder() - ->setXPlexClientIdentifier('gcgzw5rz2xovp84b4vha3a40') + ->setClientID('gcgzw5rz2xovp84b4vha3a40') + ->setClientName('Plex Web') + ->setClientVersion('4.133.0') + ->setClientPlatform('Chrome') + ->setDeviceName('Linux') ->setSecurity($security)->build(); try { diff --git a/docs/sdks/video/README.md b/docs/sdks/video/README.md index 79e51e9..6cec703 100644 --- a/docs/sdks/video/README.md +++ b/docs/sdks/video/README.md @@ -30,7 +30,11 @@ $security = new Components\Security( ); $sdk = Plex_API\PlexAPI::builder() - ->setXPlexClientIdentifier('gcgzw5rz2xovp84b4vha3a40') + ->setClientID('gcgzw5rz2xovp84b4vha3a40') + ->setClientName('Plex Web') + ->setClientVersion('4.133.0') + ->setClientPlatform('Chrome') + ->setDeviceName('Linux') ->setSecurity($security)->build(); try { @@ -95,7 +99,11 @@ $security = new Components\Security( ); $sdk = Plex_API\PlexAPI::builder() - ->setXPlexClientIdentifier('gcgzw5rz2xovp84b4vha3a40') + ->setClientID('gcgzw5rz2xovp84b4vha3a40') + ->setClientName('Plex Web') + ->setClientVersion('4.133.0') + ->setClientPlatform('Chrome') + ->setDeviceName('Linux') ->setSecurity($security)->build(); try { diff --git a/docs/sdks/watchlist/README.md b/docs/sdks/watchlist/README.md index 8bd2a7d..fd46ee8 100644 --- a/docs/sdks/watchlist/README.md +++ b/docs/sdks/watchlist/README.md @@ -29,7 +29,11 @@ $security = new Components\Security( ); $sdk = Plex_API\PlexAPI::builder() - ->setXPlexClientIdentifier('gcgzw5rz2xovp84b4vha3a40') + ->setClientID('gcgzw5rz2xovp84b4vha3a40') + ->setClientName('Plex Web') + ->setClientVersion('4.133.0') + ->setClientPlatform('Chrome') + ->setDeviceName('Linux') ->setSecurity($security)->build(); try { diff --git a/src/Authentication.php b/src/Authentication.php index 8ac3961..ce81cc3 100644 --- a/src/Authentication.php +++ b/src/Authentication.php @@ -226,19 +226,19 @@ public function getTokenDetails( * * Sign in user with username and password and return user data with Plex authentication token * - * @param ?string $xPlexClientIdentifier + * @param ?string $clientID * @param ?Operations\PostUsersSignInDataRequestBody $requestBody * @param string $serverURL * @return Operations\PostUsersSignInDataResponse * @throws \LukeHagar\Plex_API\Models\Errors\SDKException */ public function postUsersSignInData( - ?string $xPlexClientIdentifier = null, + ?string $clientID = null, ?Operations\PostUsersSignInDataRequestBody $requestBody = null, ?string $serverURL = null, ): Operations\PostUsersSignInDataResponse { $request = new Operations\PostUsersSignInDataRequest( - xPlexClientIdentifier: $xPlexClientIdentifier, + clientID: $clientID, requestBody: $requestBody, ); $baseUrl = Utils\Utils::templateUrl(Authentication::POST_USERS_SIGN_IN_DATA_SERVERS[0], [ diff --git a/src/Models/Operations/GeoData.php b/src/Models/Operations/GeoData.php index cbe761c..5119e56 100644 --- a/src/Models/Operations/GeoData.php +++ b/src/Models/Operations/GeoData.php @@ -63,10 +63,10 @@ class GeoData /** * The postal code of the location. * - * @var int $postalCode + * @var string $postalCode */ #[\JMS\Serializer\Annotation\SerializedName('postal_code')] - public int $postalCode; + public string $postalCode; /** * Indicates if the country has privacy restrictions. @@ -107,13 +107,13 @@ class GeoData * @param string $city * @param bool $europeanUnionMember * @param string $timeZone - * @param int $postalCode + * @param string $postalCode * @param bool $inPrivacyRestrictedCountry * @param bool $inPrivacyRestrictedRegion * @param string $subdivisions * @param string $coordinates */ - public function __construct(string $code, string $continentCode, string $country, string $city, bool $europeanUnionMember, string $timeZone, int $postalCode, bool $inPrivacyRestrictedCountry, bool $inPrivacyRestrictedRegion, string $subdivisions, string $coordinates) + public function __construct(string $code, string $continentCode, string $country, string $city, bool $europeanUnionMember, string $timeZone, string $postalCode, bool $inPrivacyRestrictedCountry, bool $inPrivacyRestrictedRegion, string $subdivisions, string $coordinates) { $this->code = $code; $this->continentCode = $continentCode; diff --git a/src/Models/Operations/GetGeoDataGeoData.php b/src/Models/Operations/GetGeoDataGeoData.php index 8952c53..17752c8 100644 --- a/src/Models/Operations/GetGeoDataGeoData.php +++ b/src/Models/Operations/GetGeoDataGeoData.php @@ -63,10 +63,10 @@ class GetGeoDataGeoData /** * The postal code of the location. * - * @var int $postalCode + * @var string $postalCode */ #[\JMS\Serializer\Annotation\SerializedName('postal_code')] - public int $postalCode; + public string $postalCode; /** * Indicates if the country has privacy restrictions. @@ -107,13 +107,13 @@ class GetGeoDataGeoData * @param string $city * @param bool $europeanUnionMember * @param string $timeZone - * @param int $postalCode + * @param string $postalCode * @param bool $inPrivacyRestrictedCountry * @param bool $inPrivacyRestrictedRegion * @param string $subdivisions * @param string $coordinates */ - public function __construct(string $code, string $continentCode, string $country, string $city, bool $europeanUnionMember, string $timeZone, int $postalCode, bool $inPrivacyRestrictedCountry, bool $inPrivacyRestrictedRegion, string $subdivisions, string $coordinates) + public function __construct(string $code, string $continentCode, string $country, string $city, bool $europeanUnionMember, string $timeZone, string $postalCode, bool $inPrivacyRestrictedCountry, bool $inPrivacyRestrictedRegion, string $subdivisions, string $coordinates) { $this->code = $code; $this->continentCode = $continentCode; diff --git a/src/Models/Operations/GetPinAuthPinContainer.php b/src/Models/Operations/GetPinAuthPinContainer.php index 691a53f..acea29e 100644 --- a/src/Models/Operations/GetPinAuthPinContainer.php +++ b/src/Models/Operations/GetPinAuthPinContainer.php @@ -88,12 +88,11 @@ class GetPinAuthPinContainer /** * - * @var mixed $authToken + * @var ?string $authToken */ #[\JMS\Serializer\Annotation\SerializedName('authToken')] - #[\JMS\Serializer\Annotation\Type('mixed')] #[\JMS\Serializer\Annotation\SkipWhenNull] - public mixed $authToken = null; + public ?string $authToken = null; /** * @@ -115,10 +114,10 @@ class GetPinAuthPinContainer * @param int $expiresIn * @param \DateTime $createdAt * @param \DateTime $expiresAt - * @param mixed $authToken + * @param ?string $authToken * @param mixed $newRegistration */ - public function __construct(int $id, string $code, string $product, bool $trusted, string $qr, string $clientIdentifier, GeoData $location, int $expiresIn, \DateTime $createdAt, \DateTime $expiresAt, mixed $authToken = null, mixed $newRegistration = null) + public function __construct(int $id, string $code, string $product, bool $trusted, string $qr, string $clientIdentifier, GeoData $location, int $expiresIn, \DateTime $createdAt, \DateTime $expiresAt, ?string $authToken = null, mixed $newRegistration = null) { $this->id = $id; $this->code = $code; diff --git a/src/Models/Operations/GetPinRequest.php b/src/Models/Operations/GetPinRequest.php index cb61b67..1f36d9a 100644 --- a/src/Models/Operations/GetPinRequest.php +++ b/src/Models/Operations/GetPinRequest.php @@ -30,27 +30,54 @@ class GetPinRequest * (UUID, serial number, or other number unique per device) * * - * @var ?string $xPlexClientIdentifier + * @var ?string $clientID */ #[SpeakeasyMetadata('queryParam:style=form,explode=true,name=X-Plex-Client-Identifier')] - public ?string $xPlexClientIdentifier = null; + public ?string $clientID = null; /** * - * @var ?string $xPlexProduct + * @var ?string $clientName */ #[SpeakeasyMetadata('queryParam:style=form,explode=true,name=X-Plex-Product')] - public ?string $xPlexProduct = null; + public ?string $clientName = null; + + /** + * + * @var ?string $deviceName + */ + #[SpeakeasyMetadata('queryParam:style=form,explode=true,name=X-Plex-Device')] + public ?string $deviceName = null; + + /** + * + * @var ?string $clientVersion + */ + #[SpeakeasyMetadata('queryParam:style=form,explode=true,name=X-Plex-Version')] + public ?string $clientVersion = null; + + /** + * + * @var ?string $clientPlatform + */ + #[SpeakeasyMetadata('queryParam:style=form,explode=true,name=X-Plex-Platform')] + public ?string $clientPlatform = null; /** * @param ?bool $strong - * @param ?string $xPlexClientIdentifier - * @param ?string $xPlexProduct + * @param ?string $clientID + * @param ?string $clientName + * @param ?string $deviceName + * @param ?string $clientVersion + * @param ?string $clientPlatform */ - public function __construct(?bool $strong = null, ?string $xPlexClientIdentifier = null, ?string $xPlexProduct = null) + public function __construct(?bool $strong = null, ?string $clientID = null, ?string $clientName = null, ?string $deviceName = null, ?string $clientVersion = null, ?string $clientPlatform = null) { $this->strong = $strong; - $this->xPlexClientIdentifier = $xPlexClientIdentifier; - $this->xPlexProduct = $xPlexProduct; + $this->clientID = $clientID; + $this->clientName = $clientName; + $this->deviceName = $deviceName; + $this->clientVersion = $clientVersion; + $this->clientPlatform = $clientPlatform; } } \ No newline at end of file diff --git a/src/Models/Operations/GetServerResourcesRequest.php b/src/Models/Operations/GetServerResourcesRequest.php index c51f4c7..7139cf7 100644 --- a/src/Models/Operations/GetServerResourcesRequest.php +++ b/src/Models/Operations/GetServerResourcesRequest.php @@ -18,10 +18,10 @@ class GetServerResourcesRequest * (UUID, serial number, or other number unique per device) * * - * @var ?string $xPlexClientIdentifier + * @var ?string $clientID */ #[SpeakeasyMetadata('queryParam:style=form,explode=true,name=X-Plex-Client-Identifier')] - public ?string $xPlexClientIdentifier = null; + public ?string $clientID = null; /** * Include Https entries in the results @@ -51,14 +51,14 @@ class GetServerResourcesRequest public ?IncludeIPv6 $includeIPv6 = null; /** - * @param ?string $xPlexClientIdentifier + * @param ?string $clientID * @param ?IncludeHttps $includeHttps * @param ?IncludeRelay $includeRelay * @param ?IncludeIPv6 $includeIPv6 */ - public function __construct(?string $xPlexClientIdentifier = null, ?IncludeHttps $includeHttps = null, ?IncludeRelay $includeRelay = null, ?IncludeIPv6 $includeIPv6 = null) + public function __construct(?string $clientID = null, ?IncludeHttps $includeHttps = null, ?IncludeRelay $includeRelay = null, ?IncludeIPv6 $includeIPv6 = null) { - $this->xPlexClientIdentifier = $xPlexClientIdentifier; + $this->clientID = $clientID; $this->includeHttps = $includeHttps; $this->includeRelay = $includeRelay; $this->includeIPv6 = $includeIPv6; diff --git a/src/Models/Operations/GetTokenByPinIdAuthPinContainer.php b/src/Models/Operations/GetTokenByPinIdAuthPinContainer.php index 54f37b0..9be3db0 100644 --- a/src/Models/Operations/GetTokenByPinIdAuthPinContainer.php +++ b/src/Models/Operations/GetTokenByPinIdAuthPinContainer.php @@ -88,12 +88,11 @@ class GetTokenByPinIdAuthPinContainer /** * - * @var mixed $authToken + * @var ?string $authToken */ #[\JMS\Serializer\Annotation\SerializedName('authToken')] - #[\JMS\Serializer\Annotation\Type('mixed')] #[\JMS\Serializer\Annotation\SkipWhenNull] - public mixed $authToken = null; + public ?string $authToken = null; /** * @@ -115,10 +114,10 @@ class GetTokenByPinIdAuthPinContainer * @param int $expiresIn * @param \DateTime $createdAt * @param \DateTime $expiresAt - * @param mixed $authToken + * @param ?string $authToken * @param mixed $newRegistration */ - public function __construct(int $id, string $code, string $product, bool $trusted, string $qr, string $clientIdentifier, GetTokenByPinIdGeoData $location, int $expiresIn, \DateTime $createdAt, \DateTime $expiresAt, mixed $authToken = null, mixed $newRegistration = null) + public function __construct(int $id, string $code, string $product, bool $trusted, string $qr, string $clientIdentifier, GetTokenByPinIdGeoData $location, int $expiresIn, \DateTime $createdAt, \DateTime $expiresAt, ?string $authToken = null, mixed $newRegistration = null) { $this->id = $id; $this->code = $code; diff --git a/src/Models/Operations/GetTokenByPinIdGeoData.php b/src/Models/Operations/GetTokenByPinIdGeoData.php index b1bc376..6a4bb69 100644 --- a/src/Models/Operations/GetTokenByPinIdGeoData.php +++ b/src/Models/Operations/GetTokenByPinIdGeoData.php @@ -63,10 +63,10 @@ class GetTokenByPinIdGeoData /** * The postal code of the location. * - * @var int $postalCode + * @var string $postalCode */ #[\JMS\Serializer\Annotation\SerializedName('postal_code')] - public int $postalCode; + public string $postalCode; /** * Indicates if the country has privacy restrictions. @@ -107,13 +107,13 @@ class GetTokenByPinIdGeoData * @param string $city * @param bool $europeanUnionMember * @param string $timeZone - * @param int $postalCode + * @param string $postalCode * @param bool $inPrivacyRestrictedCountry * @param bool $inPrivacyRestrictedRegion * @param string $subdivisions * @param string $coordinates */ - public function __construct(string $code, string $continentCode, string $country, string $city, bool $europeanUnionMember, string $timeZone, int $postalCode, bool $inPrivacyRestrictedCountry, bool $inPrivacyRestrictedRegion, string $subdivisions, string $coordinates) + public function __construct(string $code, string $continentCode, string $country, string $city, bool $europeanUnionMember, string $timeZone, string $postalCode, bool $inPrivacyRestrictedCountry, bool $inPrivacyRestrictedRegion, string $subdivisions, string $coordinates) { $this->code = $code; $this->continentCode = $continentCode; diff --git a/src/Models/Operations/GetTokenByPinIdRequest.php b/src/Models/Operations/GetTokenByPinIdRequest.php index 642edcd..56b2054 100644 --- a/src/Models/Operations/GetTokenByPinIdRequest.php +++ b/src/Models/Operations/GetTokenByPinIdRequest.php @@ -26,18 +26,18 @@ class GetTokenByPinIdRequest * (UUID, serial number, or other number unique per device) * * - * @var ?string $xPlexClientIdentifier + * @var ?string $clientID */ #[SpeakeasyMetadata('queryParam:style=form,explode=true,name=X-Plex-Client-Identifier')] - public ?string $xPlexClientIdentifier = null; + public ?string $clientID = null; /** * @param int $pinID - * @param ?string $xPlexClientIdentifier + * @param ?string $clientID */ - public function __construct(int $pinID, ?string $xPlexClientIdentifier = null) + public function __construct(int $pinID, ?string $clientID = null) { $this->pinID = $pinID; - $this->xPlexClientIdentifier = $xPlexClientIdentifier; + $this->clientID = $clientID; } } \ No newline at end of file diff --git a/src/Models/Operations/PostUsersSignInDataRequest.php b/src/Models/Operations/PostUsersSignInDataRequest.php index 8858266..de7dc30 100644 --- a/src/Models/Operations/PostUsersSignInDataRequest.php +++ b/src/Models/Operations/PostUsersSignInDataRequest.php @@ -18,10 +18,10 @@ class PostUsersSignInDataRequest * (UUID, serial number, or other number unique per device) * * - * @var ?string $xPlexClientIdentifier + * @var ?string $clientID */ #[SpeakeasyMetadata('queryParam:style=form,explode=true,name=X-Plex-Client-Identifier')] - public ?string $xPlexClientIdentifier = null; + public ?string $clientID = null; /** * Login credentials @@ -32,12 +32,12 @@ class PostUsersSignInDataRequest public ?PostUsersSignInDataRequestBody $requestBody = null; /** - * @param ?string $xPlexClientIdentifier + * @param ?string $clientID * @param ?PostUsersSignInDataRequestBody $requestBody */ - public function __construct(?string $xPlexClientIdentifier = null, ?PostUsersSignInDataRequestBody $requestBody = null) + public function __construct(?string $clientID = null, ?PostUsersSignInDataRequestBody $requestBody = null) { - $this->xPlexClientIdentifier = $xPlexClientIdentifier; + $this->clientID = $clientID; $this->requestBody = $requestBody; } } \ No newline at end of file diff --git a/src/Plex.php b/src/Plex.php index d03c82a..3fb5eee 100644 --- a/src/Plex.php +++ b/src/Plex.php @@ -311,7 +311,7 @@ public function getHomeData( * * Get Plex server access tokens and server connections * - * @param ?string $xPlexClientIdentifier + * @param ?string $clientID * @param ?Operations\IncludeHttps $includeHttps * @param ?Operations\IncludeRelay $includeRelay * @param ?Operations\IncludeIPv6 $includeIPv6 @@ -320,14 +320,14 @@ public function getHomeData( * @throws \LukeHagar\Plex_API\Models\Errors\SDKException */ public function getServerResources( - ?string $xPlexClientIdentifier = null, + ?string $clientID = null, ?Operations\IncludeHttps $includeHttps = null, ?Operations\IncludeRelay $includeRelay = null, ?Operations\IncludeIPv6 $includeIPv6 = null, ?string $serverURL = null, ): Operations\GetServerResourcesResponse { $request = new Operations\GetServerResourcesRequest( - xPlexClientIdentifier: $xPlexClientIdentifier, + clientID: $clientID, includeHttps: $includeHttps, includeRelay: $includeRelay, includeIPv6: $includeIPv6, @@ -391,26 +391,17 @@ public function getServerResources( /** * Get a Pin * - * Retrieve a Pin from Plex.tv for authentication flows + * Retrieve a Pin ID from Plex.tv to use for authentication flows * - * @param ?bool $strong - * @param ?string $xPlexClientIdentifier - * @param ?string $xPlexProduct + * @param Operations\GetPinRequest $request * @param string $serverURL * @return Operations\GetPinResponse * @throws \LukeHagar\Plex_API\Models\Errors\SDKException */ public function getPin( - ?bool $strong = null, - ?string $xPlexClientIdentifier = null, - ?string $xPlexProduct = null, + ?Operations\GetPinRequest $request, ?string $serverURL = null, ): Operations\GetPinResponse { - $request = new Operations\GetPinRequest( - strong: $strong, - xPlexClientIdentifier: $xPlexClientIdentifier, - xPlexProduct: $xPlexProduct, - ); $baseUrl = Utils\Utils::templateUrl(Plex::GET_PIN_SERVERS[0], [ ]); if (! empty($serverURL)) { @@ -426,7 +417,7 @@ public function getPin( $contentType = $httpResponse->getHeader('Content-Type')[0] ?? ''; $statusCode = $httpResponse->getStatusCode(); - if ($statusCode == 200) { + if ($statusCode == 201) { if (Utils\Utils::matchContentType($contentType, 'application/json')) { $serializer = Utils\JSON::createSerializer(); $obj = $serializer->deserialize((string) $httpResponse->getBody(), '\LukeHagar\Plex_API\Models\Operations\GetPinAuthPinContainer', 'json', DeserializationContext::create()->setRequireAllRequiredProperties(true)); @@ -462,19 +453,19 @@ public function getPin( * Retrieve an Access Token from Plex.tv after the Pin has been authenticated * * @param int $pinID - * @param ?string $xPlexClientIdentifier + * @param ?string $clientID * @param string $serverURL * @return Operations\GetTokenByPinIdResponse * @throws \LukeHagar\Plex_API\Models\Errors\SDKException */ public function getTokenByPinId( int $pinID, - ?string $xPlexClientIdentifier = null, + ?string $clientID = null, ?string $serverURL = null, ): Operations\GetTokenByPinIdResponse { $request = new Operations\GetTokenByPinIdRequest( pinID: $pinID, - xPlexClientIdentifier: $xPlexClientIdentifier, + clientID: $clientID, ); $baseUrl = Utils\Utils::templateUrl(Plex::GET_TOKEN_BY_PIN_ID_SERVERS[0], [ ]); diff --git a/src/PlexAPIBuilder.php b/src/PlexAPIBuilder.php index e6ebcdf..077f3c4 100644 --- a/src/PlexAPIBuilder.php +++ b/src/PlexAPIBuilder.php @@ -142,18 +142,82 @@ public function setPort(string $port): PlexAPIBuilder return $this; } /** - * setXPlexClientIdentifier is used to configure the X-Plex-Client-Identifier parameter for the SDK. + * setClientID is used to configure the ClientID parameter for the SDK. * - * @param string $xPlexClientIdentifier + * @param string $clientID * @return PlexAPIBuilder */ - public function setXPlexClientIdentifier(string $xPlexClientIdentifier): PlexAPIBuilder + public function setClientID(string $clientID): PlexAPIBuilder { if (! array_key_exists('queryParam', $this->sdkConfig->globals['parameters'])) { $this->sdkConfig->globals['parameters']['queryParam'] = []; } - $this->sdkConfig->globals['parameters']['queryParam']['xPlexClientIdentifier'] = $xPlexClientIdentifier; + $this->sdkConfig->globals['parameters']['queryParam']['clientID'] = $clientID; + + return $this; + } + /** + * setClientName is used to configure the ClientName parameter for the SDK. + * + * @param string $clientName + * @return PlexAPIBuilder + */ + public function setClientName(string $clientName): PlexAPIBuilder + { + if (! array_key_exists('queryParam', $this->sdkConfig->globals['parameters'])) { + $this->sdkConfig->globals['parameters']['queryParam'] = []; + } + + $this->sdkConfig->globals['parameters']['queryParam']['clientName'] = $clientName; + + return $this; + } + /** + * setClientVersion is used to configure the ClientVersion parameter for the SDK. + * + * @param string $clientVersion + * @return PlexAPIBuilder + */ + public function setClientVersion(string $clientVersion): PlexAPIBuilder + { + if (! array_key_exists('queryParam', $this->sdkConfig->globals['parameters'])) { + $this->sdkConfig->globals['parameters']['queryParam'] = []; + } + + $this->sdkConfig->globals['parameters']['queryParam']['clientVersion'] = $clientVersion; + + return $this; + } + /** + * setClientPlatform is used to configure the ClientPlatform parameter for the SDK. + * + * @param string $clientPlatform + * @return PlexAPIBuilder + */ + public function setClientPlatform(string $clientPlatform): PlexAPIBuilder + { + if (! array_key_exists('queryParam', $this->sdkConfig->globals['parameters'])) { + $this->sdkConfig->globals['parameters']['queryParam'] = []; + } + + $this->sdkConfig->globals['parameters']['queryParam']['clientPlatform'] = $clientPlatform; + + return $this; + } + /** + * setDeviceName is used to configure the DeviceName parameter for the SDK. + * + * @param string $deviceName + * @return PlexAPIBuilder + */ + public function setDeviceName(string $deviceName): PlexAPIBuilder + { + if (! array_key_exists('queryParam', $this->sdkConfig->globals['parameters'])) { + $this->sdkConfig->globals['parameters']['queryParam'] = []; + } + + $this->sdkConfig->globals['parameters']['queryParam']['deviceName'] = $deviceName; return $this; } diff --git a/src/SDKConfiguration.php b/src/SDKConfiguration.php index f92e45b..3e20138 100644 --- a/src/SDKConfiguration.php +++ b/src/SDKConfiguration.php @@ -36,11 +36,11 @@ class SDKConfiguration public string $openapiDocVersion = '0.0.3'; - public string $sdkVersion = '0.8.0'; + public string $sdkVersion = '0.8.1'; - public string $genVersion = '2.415.8'; + public string $genVersion = '2.416.6'; - public string $userAgent = 'speakeasy-sdk/php 0.8.0 2.415.8 0.0.3 lukehagar/plex-api'; + public string $userAgent = 'speakeasy-sdk/php 0.8.1 2.416.6 0.0.3 lukehagar/plex-api'; /** @var array>> */ public ?array $globals = [ 'parameters' => [],