mirror of
https://github.com/LukeHagar/plexjava.git
synced 2025-12-06 04:20:46 +00:00
ci: regenerated with OpenAPI Doc , Speakeasy CLI 1.399.2
This commit is contained in:
@@ -1,12 +1,12 @@
|
|||||||
lockVersion: 2.0.0
|
lockVersion: 2.0.0
|
||||||
id: 1732900d-e173-47c1-a90d-d45182eb35d9
|
id: 1732900d-e173-47c1-a90d-d45182eb35d9
|
||||||
management:
|
management:
|
||||||
docChecksum: a6fee1797b2da7ccbaf7743772a40b56
|
docChecksum: 5bf578a672589649d8ed83c3927c50a6
|
||||||
docVersion: 0.0.3
|
docVersion: 0.0.3
|
||||||
speakeasyVersion: 1.397.3
|
speakeasyVersion: 1.399.2
|
||||||
generationVersion: 2.415.8
|
generationVersion: 2.416.6
|
||||||
releaseVersion: 0.3.5
|
releaseVersion: 0.3.6
|
||||||
configChecksum: 4c3849409a619a08ad17d85569b6ab77
|
configChecksum: 106e80c4c09cf1eee551ea41f14701cc
|
||||||
repoURL: https://github.com/LukeHagar/plexjava.git
|
repoURL: https://github.com/LukeHagar/plexjava.git
|
||||||
published: true
|
published: true
|
||||||
features:
|
features:
|
||||||
@@ -1843,7 +1843,7 @@ examples:
|
|||||||
speakeasy-default-get-geo-data:
|
speakeasy-default-get-geo-data:
|
||||||
responses:
|
responses:
|
||||||
"200":
|
"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"}
|
||||||
"401":
|
"401":
|
||||||
application/json: {"errors": []}
|
application/json: {"errors": []}
|
||||||
"400":
|
"400":
|
||||||
@@ -1876,12 +1876,17 @@ examples:
|
|||||||
"":
|
"":
|
||||||
parameters:
|
parameters:
|
||||||
query:
|
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:
|
responses:
|
||||||
"200":
|
"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}
|
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":
|
"400":
|
||||||
application/json: {"errors": []}
|
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:
|
getTokenByPinId:
|
||||||
"":
|
"":
|
||||||
parameters:
|
parameters:
|
||||||
|
|||||||
@@ -12,7 +12,7 @@ generation:
|
|||||||
auth:
|
auth:
|
||||||
oAuth2ClientCredentialsEnabled: true
|
oAuth2ClientCredentialsEnabled: true
|
||||||
java:
|
java:
|
||||||
version: 0.3.5
|
version: 0.3.6
|
||||||
additionalDependencies: []
|
additionalDependencies: []
|
||||||
additionalPlugins: []
|
additionalPlugins: []
|
||||||
artifactID: plexapi
|
artifactID: plexapi
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
speakeasyVersion: 1.397.3
|
speakeasyVersion: 1.399.2
|
||||||
sources:
|
sources:
|
||||||
my-source:
|
my-source:
|
||||||
sourceNamespace: my-source
|
sourceNamespace: my-source
|
||||||
@@ -8,8 +8,8 @@ sources:
|
|||||||
- latest
|
- latest
|
||||||
plexapi:
|
plexapi:
|
||||||
sourceNamespace: plexapi
|
sourceNamespace: plexapi
|
||||||
sourceRevisionDigest: sha256:533fe97486e3fe2d84e890b7bbcdba4543d415e45181386154e011861f6da36f
|
sourceRevisionDigest: sha256:31e943dab53dd0133fcd12a24e04d511637bd7f37b78fd71efded53c650bf729
|
||||||
sourceBlobDigest: sha256:f7e2709f52370dff16c1851a7a4e44a89f2e978e9cae335bffc10625950b3bd9
|
sourceBlobDigest: sha256:a652fa39754f0c22a1454f628fe84983b34662ee8a153a3461d50b833f8bc5c2
|
||||||
tags:
|
tags:
|
||||||
- latest
|
- latest
|
||||||
- main
|
- main
|
||||||
@@ -17,10 +17,10 @@ targets:
|
|||||||
plexjava:
|
plexjava:
|
||||||
source: plexapi
|
source: plexapi
|
||||||
sourceNamespace: plexapi
|
sourceNamespace: plexapi
|
||||||
sourceRevisionDigest: sha256:533fe97486e3fe2d84e890b7bbcdba4543d415e45181386154e011861f6da36f
|
sourceRevisionDigest: sha256:31e943dab53dd0133fcd12a24e04d511637bd7f37b78fd71efded53c650bf729
|
||||||
sourceBlobDigest: sha256:f7e2709f52370dff16c1851a7a4e44a89f2e978e9cae335bffc10625950b3bd9
|
sourceBlobDigest: sha256:a652fa39754f0c22a1454f628fe84983b34662ee8a153a3461d50b833f8bc5c2
|
||||||
codeSamplesNamespace: code-samples-java-plexjava
|
codeSamplesNamespace: code-samples-java-plexjava
|
||||||
codeSamplesRevisionDigest: sha256:03bbcd874f602bc3c4399006b5786cf79cc602609d21aeb38a332f69e03fde9e
|
codeSamplesRevisionDigest: sha256:573447c09306bdcc7cfddf7a74130c0bc1d3596050a8108ad85819c2afd5efb6
|
||||||
workflow:
|
workflow:
|
||||||
workflowVersion: 1.0.0
|
workflowVersion: 1.0.0
|
||||||
speakeasyVersion: latest
|
speakeasyVersion: latest
|
||||||
|
|||||||
60
README.md
60
README.md
@@ -37,7 +37,7 @@ The samples below show how a published SDK artifact is used:
|
|||||||
|
|
||||||
Gradle:
|
Gradle:
|
||||||
```groovy
|
```groovy
|
||||||
implementation 'dev.plexapi:plexapi:0.3.5'
|
implementation 'dev.plexapi:plexapi:0.3.6'
|
||||||
```
|
```
|
||||||
|
|
||||||
Maven:
|
Maven:
|
||||||
@@ -45,7 +45,7 @@ Maven:
|
|||||||
<dependency>
|
<dependency>
|
||||||
<groupId>dev.plexapi</groupId>
|
<groupId>dev.plexapi</groupId>
|
||||||
<artifactId>plexapi</artifactId>
|
<artifactId>plexapi</artifactId>
|
||||||
<version>0.3.5</version>
|
<version>0.3.6</version>
|
||||||
</dependency>
|
</dependency>
|
||||||
```
|
```
|
||||||
|
|
||||||
@@ -83,7 +83,11 @@ public class Application {
|
|||||||
try {
|
try {
|
||||||
PlexAPI sdk = PlexAPI.builder()
|
PlexAPI sdk = PlexAPI.builder()
|
||||||
.accessToken("<YOUR_API_KEY_HERE>")
|
.accessToken("<YOUR_API_KEY_HERE>")
|
||||||
.xPlexClientIdentifier("gcgzw5rz2xovp84b4vha3a40")
|
.clientID("gcgzw5rz2xovp84b4vha3a40")
|
||||||
|
.clientName("Plex Web")
|
||||||
|
.clientVersion("4.133.0")
|
||||||
|
.clientPlatform("Chrome")
|
||||||
|
.deviceName("Linux")
|
||||||
.build();
|
.build();
|
||||||
|
|
||||||
GetServerCapabilitiesResponse res = sdk.server().getServerCapabilities()
|
GetServerCapabilitiesResponse res = sdk.server().getServerCapabilities()
|
||||||
@@ -246,21 +250,25 @@ public class Application {
|
|||||||
<!-- Start Global Parameters [global-parameters] -->
|
<!-- Start Global Parameters [global-parameters] -->
|
||||||
## Global Parameters
|
## 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
|
### Available Globals
|
||||||
|
|
||||||
The following global parameter is available.
|
The following global parameters are available.
|
||||||
|
|
||||||
| Name | Type | Required | Description |
|
| Name | Type | Required | Description |
|
||||||
| ---- | ---- |:--------:| ----------- |
|
| ---- | ---- |:--------:| ----------- |
|
||||||
| xPlexClientIdentifier | java.lang.String | | The unique identifier for the client application
|
| clientID | java.lang.String | | The unique identifier for the client application
|
||||||
This is used to track the client application and its usage
|
This is used to track the client application and its usage
|
||||||
(UUID, serial number, or other number unique per device)
|
(UUID, serial number, or other number unique per device)
|
||||||
|
|
|
|
||||||
|
| clientName | java.lang.String | | The clientName parameter. |
|
||||||
|
| clientVersion | java.lang.String | | The clientVersion parameter. |
|
||||||
|
| clientPlatform | java.lang.String | | The clientPlatform parameter. |
|
||||||
|
| deviceName | java.lang.String | | The deviceName parameter. |
|
||||||
|
|
||||||
|
|
||||||
### Example
|
### Example
|
||||||
@@ -282,11 +290,15 @@ public class Application {
|
|||||||
try {
|
try {
|
||||||
PlexAPI sdk = PlexAPI.builder()
|
PlexAPI sdk = PlexAPI.builder()
|
||||||
.accessToken("<YOUR_API_KEY_HERE>")
|
.accessToken("<YOUR_API_KEY_HERE>")
|
||||||
.xPlexClientIdentifier("gcgzw5rz2xovp84b4vha3a40")
|
.clientID("gcgzw5rz2xovp84b4vha3a40")
|
||||||
|
.clientName("Plex Web")
|
||||||
|
.clientVersion("4.133.0")
|
||||||
|
.clientPlatform("Chrome")
|
||||||
|
.deviceName("Linux")
|
||||||
.build();
|
.build();
|
||||||
|
|
||||||
GetServerResourcesResponse res = sdk.plex().getServerResources()
|
GetServerResourcesResponse res = sdk.plex().getServerResources()
|
||||||
.xPlexClientIdentifier("gcgzw5rz2xovp84b4vha3a40")
|
.clientID("gcgzw5rz2xovp84b4vha3a40")
|
||||||
.includeHttps(IncludeHttps.ONE)
|
.includeHttps(IncludeHttps.ONE)
|
||||||
.includeRelay(IncludeRelay.ONE)
|
.includeRelay(IncludeRelay.ONE)
|
||||||
.includeIPv6(IncludeIPv6.ONE)
|
.includeIPv6(IncludeIPv6.ONE)
|
||||||
@@ -341,7 +353,11 @@ public class Application {
|
|||||||
try {
|
try {
|
||||||
PlexAPI sdk = PlexAPI.builder()
|
PlexAPI sdk = PlexAPI.builder()
|
||||||
.accessToken("<YOUR_API_KEY_HERE>")
|
.accessToken("<YOUR_API_KEY_HERE>")
|
||||||
.xPlexClientIdentifier("gcgzw5rz2xovp84b4vha3a40")
|
.clientID("gcgzw5rz2xovp84b4vha3a40")
|
||||||
|
.clientName("Plex Web")
|
||||||
|
.clientVersion("4.133.0")
|
||||||
|
.clientPlatform("Chrome")
|
||||||
|
.deviceName("Linux")
|
||||||
.build();
|
.build();
|
||||||
|
|
||||||
GetServerCapabilitiesResponse res = sdk.server().getServerCapabilities()
|
GetServerCapabilitiesResponse res = sdk.server().getServerCapabilities()
|
||||||
@@ -397,7 +413,11 @@ public class Application {
|
|||||||
PlexAPI sdk = PlexAPI.builder()
|
PlexAPI sdk = PlexAPI.builder()
|
||||||
.serverIndex(0)
|
.serverIndex(0)
|
||||||
.accessToken("<YOUR_API_KEY_HERE>")
|
.accessToken("<YOUR_API_KEY_HERE>")
|
||||||
.xPlexClientIdentifier("gcgzw5rz2xovp84b4vha3a40")
|
.clientID("gcgzw5rz2xovp84b4vha3a40")
|
||||||
|
.clientName("Plex Web")
|
||||||
|
.clientVersion("4.133.0")
|
||||||
|
.clientPlatform("Chrome")
|
||||||
|
.deviceName("Linux")
|
||||||
.build();
|
.build();
|
||||||
|
|
||||||
GetServerCapabilitiesResponse res = sdk.server().getServerCapabilities()
|
GetServerCapabilitiesResponse res = sdk.server().getServerCapabilities()
|
||||||
@@ -449,7 +469,11 @@ public class Application {
|
|||||||
PlexAPI sdk = PlexAPI.builder()
|
PlexAPI sdk = PlexAPI.builder()
|
||||||
.serverURL("{protocol}://{ip}:{port}")
|
.serverURL("{protocol}://{ip}:{port}")
|
||||||
.accessToken("<YOUR_API_KEY_HERE>")
|
.accessToken("<YOUR_API_KEY_HERE>")
|
||||||
.xPlexClientIdentifier("gcgzw5rz2xovp84b4vha3a40")
|
.clientID("gcgzw5rz2xovp84b4vha3a40")
|
||||||
|
.clientName("Plex Web")
|
||||||
|
.clientVersion("4.133.0")
|
||||||
|
.clientPlatform("Chrome")
|
||||||
|
.deviceName("Linux")
|
||||||
.build();
|
.build();
|
||||||
|
|
||||||
GetServerCapabilitiesResponse res = sdk.server().getServerCapabilities()
|
GetServerCapabilitiesResponse res = sdk.server().getServerCapabilities()
|
||||||
@@ -493,7 +517,11 @@ public class Application {
|
|||||||
try {
|
try {
|
||||||
PlexAPI sdk = PlexAPI.builder()
|
PlexAPI sdk = PlexAPI.builder()
|
||||||
.accessToken("<YOUR_API_KEY_HERE>")
|
.accessToken("<YOUR_API_KEY_HERE>")
|
||||||
.xPlexClientIdentifier("gcgzw5rz2xovp84b4vha3a40")
|
.clientID("gcgzw5rz2xovp84b4vha3a40")
|
||||||
|
.clientName("Plex Web")
|
||||||
|
.clientVersion("4.133.0")
|
||||||
|
.clientPlatform("Chrome")
|
||||||
|
.deviceName("Linux")
|
||||||
.build();
|
.build();
|
||||||
|
|
||||||
GetCompanionsDataResponse res = sdk.plex().getCompanionsData()
|
GetCompanionsDataResponse res = sdk.plex().getCompanionsData()
|
||||||
@@ -548,7 +576,11 @@ public class Application {
|
|||||||
try {
|
try {
|
||||||
PlexAPI sdk = PlexAPI.builder()
|
PlexAPI sdk = PlexAPI.builder()
|
||||||
.accessToken("<YOUR_API_KEY_HERE>")
|
.accessToken("<YOUR_API_KEY_HERE>")
|
||||||
.xPlexClientIdentifier("gcgzw5rz2xovp84b4vha3a40")
|
.clientID("gcgzw5rz2xovp84b4vha3a40")
|
||||||
|
.clientName("Plex Web")
|
||||||
|
.clientVersion("4.133.0")
|
||||||
|
.clientPlatform("Chrome")
|
||||||
|
.deviceName("Linux")
|
||||||
.build();
|
.build();
|
||||||
|
|
||||||
GetServerCapabilitiesResponse res = sdk.server().getServerCapabilities()
|
GetServerCapabilitiesResponse res = sdk.server().getServerCapabilities()
|
||||||
|
|||||||
10
RELEASES.md
10
RELEASES.md
@@ -59,3 +59,13 @@ Based on:
|
|||||||
- [java v0.3.5] .
|
- [java v0.3.5] .
|
||||||
### Releases
|
### Releases
|
||||||
- [Maven Central v0.3.5] https://central.sonatype.com/artifact/dev.plexapi/plexapi/0.3.5 - .
|
- [Maven Central v0.3.5] https://central.sonatype.com/artifact/dev.plexapi/plexapi/0.3.5 - .
|
||||||
|
|
||||||
|
## 2024-09-19 00:24:42
|
||||||
|
### Changes
|
||||||
|
Based on:
|
||||||
|
- OpenAPI Doc
|
||||||
|
- Speakeasy CLI 1.399.2 (2.416.6) https://github.com/speakeasy-api/speakeasy
|
||||||
|
### Generated
|
||||||
|
- [java v0.3.6] .
|
||||||
|
### Releases
|
||||||
|
- [Maven Central v0.3.6] https://central.sonatype.com/artifact/dev.plexapi/plexapi/0.3.6 - .
|
||||||
6
USAGE.md
6
USAGE.md
@@ -13,7 +13,11 @@ public class Application {
|
|||||||
try {
|
try {
|
||||||
PlexAPI sdk = PlexAPI.builder()
|
PlexAPI sdk = PlexAPI.builder()
|
||||||
.accessToken("<YOUR_API_KEY_HERE>")
|
.accessToken("<YOUR_API_KEY_HERE>")
|
||||||
.xPlexClientIdentifier("gcgzw5rz2xovp84b4vha3a40")
|
.clientID("gcgzw5rz2xovp84b4vha3a40")
|
||||||
|
.clientName("Plex Web")
|
||||||
|
.clientVersion("4.133.0")
|
||||||
|
.clientPlatform("Chrome")
|
||||||
|
.deviceName("Linux")
|
||||||
.build();
|
.build();
|
||||||
|
|
||||||
GetServerCapabilitiesResponse res = sdk.server().getServerCapabilities()
|
GetServerCapabilitiesResponse res = sdk.server().getServerCapabilities()
|
||||||
|
|||||||
@@ -63,7 +63,7 @@ tasks.withType(Javadoc) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
group = "dev.plexapi"
|
group = "dev.plexapi"
|
||||||
version = "0.3.5"
|
version = "0.3.6"
|
||||||
|
|
||||||
sourcesJar {
|
sourcesJar {
|
||||||
archiveBaseName = "plexapi"
|
archiveBaseName = "plexapi"
|
||||||
@@ -101,7 +101,7 @@ publishing {
|
|||||||
maven(MavenPublication) {
|
maven(MavenPublication) {
|
||||||
groupId = 'dev.plexapi'
|
groupId = 'dev.plexapi'
|
||||||
artifactId = 'plexapi'
|
artifactId = 'plexapi'
|
||||||
version = '0.3.5'
|
version = '0.3.6'
|
||||||
|
|
||||||
from components.java
|
from components.java
|
||||||
|
|
||||||
|
|||||||
458
codeSamples.yaml
458
codeSamples.yaml
@@ -22,7 +22,11 @@ actions:
|
|||||||
try {
|
try {
|
||||||
PlexAPI sdk = PlexAPI.builder()
|
PlexAPI sdk = PlexAPI.builder()
|
||||||
.accessToken("<YOUR_API_KEY_HERE>")
|
.accessToken("<YOUR_API_KEY_HERE>")
|
||||||
.xPlexClientIdentifier("gcgzw5rz2xovp84b4vha3a40")
|
.clientID("gcgzw5rz2xovp84b4vha3a40")
|
||||||
|
.clientName("Plex Web")
|
||||||
|
.clientVersion("4.133.0")
|
||||||
|
.clientPlatform("Chrome")
|
||||||
|
.deviceName("Linux")
|
||||||
.build();
|
.build();
|
||||||
|
|
||||||
GetServerCapabilitiesResponse res = sdk.server().getServerCapabilities()
|
GetServerCapabilitiesResponse res = sdk.server().getServerCapabilities()
|
||||||
@@ -66,7 +70,11 @@ actions:
|
|||||||
try {
|
try {
|
||||||
PlexAPI sdk = PlexAPI.builder()
|
PlexAPI sdk = PlexAPI.builder()
|
||||||
.accessToken("<YOUR_API_KEY_HERE>")
|
.accessToken("<YOUR_API_KEY_HERE>")
|
||||||
.xPlexClientIdentifier("gcgzw5rz2xovp84b4vha3a40")
|
.clientID("gcgzw5rz2xovp84b4vha3a40")
|
||||||
|
.clientName("Plex Web")
|
||||||
|
.clientVersion("4.133.0")
|
||||||
|
.clientPlatform("Chrome")
|
||||||
|
.deviceName("Linux")
|
||||||
.build();
|
.build();
|
||||||
|
|
||||||
GetServerPreferencesResponse res = sdk.server().getServerPreferences()
|
GetServerPreferencesResponse res = sdk.server().getServerPreferences()
|
||||||
@@ -110,7 +118,11 @@ actions:
|
|||||||
try {
|
try {
|
||||||
PlexAPI sdk = PlexAPI.builder()
|
PlexAPI sdk = PlexAPI.builder()
|
||||||
.accessToken("<YOUR_API_KEY_HERE>")
|
.accessToken("<YOUR_API_KEY_HERE>")
|
||||||
.xPlexClientIdentifier("gcgzw5rz2xovp84b4vha3a40")
|
.clientID("gcgzw5rz2xovp84b4vha3a40")
|
||||||
|
.clientName("Plex Web")
|
||||||
|
.clientVersion("4.133.0")
|
||||||
|
.clientPlatform("Chrome")
|
||||||
|
.deviceName("Linux")
|
||||||
.build();
|
.build();
|
||||||
|
|
||||||
UpdatePlayProgressResponse res = sdk.media().updatePlayProgress()
|
UpdatePlayProgressResponse res = sdk.media().updatePlayProgress()
|
||||||
@@ -155,7 +167,11 @@ actions:
|
|||||||
try {
|
try {
|
||||||
PlexAPI sdk = PlexAPI.builder()
|
PlexAPI sdk = PlexAPI.builder()
|
||||||
.accessToken("<YOUR_API_KEY_HERE>")
|
.accessToken("<YOUR_API_KEY_HERE>")
|
||||||
.xPlexClientIdentifier("gcgzw5rz2xovp84b4vha3a40")
|
.clientID("gcgzw5rz2xovp84b4vha3a40")
|
||||||
|
.clientName("Plex Web")
|
||||||
|
.clientVersion("4.133.0")
|
||||||
|
.clientPlatform("Chrome")
|
||||||
|
.deviceName("Linux")
|
||||||
.build();
|
.build();
|
||||||
|
|
||||||
MarkPlayedResponse res = sdk.media().markPlayed()
|
MarkPlayedResponse res = sdk.media().markPlayed()
|
||||||
@@ -200,7 +216,11 @@ actions:
|
|||||||
try {
|
try {
|
||||||
PlexAPI sdk = PlexAPI.builder()
|
PlexAPI sdk = PlexAPI.builder()
|
||||||
.accessToken("<YOUR_API_KEY_HERE>")
|
.accessToken("<YOUR_API_KEY_HERE>")
|
||||||
.xPlexClientIdentifier("gcgzw5rz2xovp84b4vha3a40")
|
.clientID("gcgzw5rz2xovp84b4vha3a40")
|
||||||
|
.clientName("Plex Web")
|
||||||
|
.clientVersion("4.133.0")
|
||||||
|
.clientPlatform("Chrome")
|
||||||
|
.deviceName("Linux")
|
||||||
.build();
|
.build();
|
||||||
|
|
||||||
GetTimelineRequest req = GetTimelineRequest.builder()
|
GetTimelineRequest req = GetTimelineRequest.builder()
|
||||||
@@ -256,7 +276,11 @@ actions:
|
|||||||
try {
|
try {
|
||||||
PlexAPI sdk = PlexAPI.builder()
|
PlexAPI sdk = PlexAPI.builder()
|
||||||
.accessToken("<YOUR_API_KEY_HERE>")
|
.accessToken("<YOUR_API_KEY_HERE>")
|
||||||
.xPlexClientIdentifier("gcgzw5rz2xovp84b4vha3a40")
|
.clientID("gcgzw5rz2xovp84b4vha3a40")
|
||||||
|
.clientName("Plex Web")
|
||||||
|
.clientVersion("4.133.0")
|
||||||
|
.clientPlatform("Chrome")
|
||||||
|
.deviceName("Linux")
|
||||||
.build();
|
.build();
|
||||||
|
|
||||||
MarkUnplayedResponse res = sdk.media().markUnplayed()
|
MarkUnplayedResponse res = sdk.media().markUnplayed()
|
||||||
@@ -299,7 +323,11 @@ actions:
|
|||||||
try {
|
try {
|
||||||
PlexAPI sdk = PlexAPI.builder()
|
PlexAPI sdk = PlexAPI.builder()
|
||||||
.accessToken("<YOUR_API_KEY_HERE>")
|
.accessToken("<YOUR_API_KEY_HERE>")
|
||||||
.xPlexClientIdentifier("gcgzw5rz2xovp84b4vha3a40")
|
.clientID("gcgzw5rz2xovp84b4vha3a40")
|
||||||
|
.clientName("Plex Web")
|
||||||
|
.clientVersion("4.133.0")
|
||||||
|
.clientPlatform("Chrome")
|
||||||
|
.deviceName("Linux")
|
||||||
.build();
|
.build();
|
||||||
|
|
||||||
GetServerActivitiesResponse res = sdk.activities().getServerActivities()
|
GetServerActivitiesResponse res = sdk.activities().getServerActivities()
|
||||||
@@ -343,7 +371,11 @@ actions:
|
|||||||
try {
|
try {
|
||||||
PlexAPI sdk = PlexAPI.builder()
|
PlexAPI sdk = PlexAPI.builder()
|
||||||
.accessToken("<YOUR_API_KEY_HERE>")
|
.accessToken("<YOUR_API_KEY_HERE>")
|
||||||
.xPlexClientIdentifier("gcgzw5rz2xovp84b4vha3a40")
|
.clientID("gcgzw5rz2xovp84b4vha3a40")
|
||||||
|
.clientName("Plex Web")
|
||||||
|
.clientVersion("4.133.0")
|
||||||
|
.clientPlatform("Chrome")
|
||||||
|
.deviceName("Linux")
|
||||||
.build();
|
.build();
|
||||||
|
|
||||||
CancelServerActivitiesResponse res = sdk.activities().cancelServerActivities()
|
CancelServerActivitiesResponse res = sdk.activities().cancelServerActivities()
|
||||||
@@ -386,7 +418,11 @@ actions:
|
|||||||
try {
|
try {
|
||||||
PlexAPI sdk = PlexAPI.builder()
|
PlexAPI sdk = PlexAPI.builder()
|
||||||
.accessToken("<YOUR_API_KEY_HERE>")
|
.accessToken("<YOUR_API_KEY_HERE>")
|
||||||
.xPlexClientIdentifier("gcgzw5rz2xovp84b4vha3a40")
|
.clientID("gcgzw5rz2xovp84b4vha3a40")
|
||||||
|
.clientName("Plex Web")
|
||||||
|
.clientVersion("4.133.0")
|
||||||
|
.clientPlatform("Chrome")
|
||||||
|
.deviceName("Linux")
|
||||||
.build();
|
.build();
|
||||||
|
|
||||||
StopAllTasksResponse res = sdk.butler().stopAllTasks()
|
StopAllTasksResponse res = sdk.butler().stopAllTasks()
|
||||||
@@ -428,7 +464,11 @@ actions:
|
|||||||
try {
|
try {
|
||||||
PlexAPI sdk = PlexAPI.builder()
|
PlexAPI sdk = PlexAPI.builder()
|
||||||
.accessToken("<YOUR_API_KEY_HERE>")
|
.accessToken("<YOUR_API_KEY_HERE>")
|
||||||
.xPlexClientIdentifier("gcgzw5rz2xovp84b4vha3a40")
|
.clientID("gcgzw5rz2xovp84b4vha3a40")
|
||||||
|
.clientName("Plex Web")
|
||||||
|
.clientVersion("4.133.0")
|
||||||
|
.clientPlatform("Chrome")
|
||||||
|
.deviceName("Linux")
|
||||||
.build();
|
.build();
|
||||||
|
|
||||||
GetButlerTasksResponse res = sdk.butler().getButlerTasks()
|
GetButlerTasksResponse res = sdk.butler().getButlerTasks()
|
||||||
@@ -472,7 +512,11 @@ actions:
|
|||||||
try {
|
try {
|
||||||
PlexAPI sdk = PlexAPI.builder()
|
PlexAPI sdk = PlexAPI.builder()
|
||||||
.accessToken("<YOUR_API_KEY_HERE>")
|
.accessToken("<YOUR_API_KEY_HERE>")
|
||||||
.xPlexClientIdentifier("gcgzw5rz2xovp84b4vha3a40")
|
.clientID("gcgzw5rz2xovp84b4vha3a40")
|
||||||
|
.clientName("Plex Web")
|
||||||
|
.clientVersion("4.133.0")
|
||||||
|
.clientPlatform("Chrome")
|
||||||
|
.deviceName("Linux")
|
||||||
.build();
|
.build();
|
||||||
|
|
||||||
StartAllTasksResponse res = sdk.butler().startAllTasks()
|
StartAllTasksResponse res = sdk.butler().startAllTasks()
|
||||||
@@ -515,7 +559,11 @@ actions:
|
|||||||
try {
|
try {
|
||||||
PlexAPI sdk = PlexAPI.builder()
|
PlexAPI sdk = PlexAPI.builder()
|
||||||
.accessToken("<YOUR_API_KEY_HERE>")
|
.accessToken("<YOUR_API_KEY_HERE>")
|
||||||
.xPlexClientIdentifier("gcgzw5rz2xovp84b4vha3a40")
|
.clientID("gcgzw5rz2xovp84b4vha3a40")
|
||||||
|
.clientName("Plex Web")
|
||||||
|
.clientVersion("4.133.0")
|
||||||
|
.clientPlatform("Chrome")
|
||||||
|
.deviceName("Linux")
|
||||||
.build();
|
.build();
|
||||||
|
|
||||||
StopTaskResponse res = sdk.butler().stopTask()
|
StopTaskResponse res = sdk.butler().stopTask()
|
||||||
@@ -559,7 +607,11 @@ actions:
|
|||||||
try {
|
try {
|
||||||
PlexAPI sdk = PlexAPI.builder()
|
PlexAPI sdk = PlexAPI.builder()
|
||||||
.accessToken("<YOUR_API_KEY_HERE>")
|
.accessToken("<YOUR_API_KEY_HERE>")
|
||||||
.xPlexClientIdentifier("gcgzw5rz2xovp84b4vha3a40")
|
.clientID("gcgzw5rz2xovp84b4vha3a40")
|
||||||
|
.clientName("Plex Web")
|
||||||
|
.clientVersion("4.133.0")
|
||||||
|
.clientPlatform("Chrome")
|
||||||
|
.deviceName("Linux")
|
||||||
.build();
|
.build();
|
||||||
|
|
||||||
StartTaskResponse res = sdk.butler().startTask()
|
StartTaskResponse res = sdk.butler().startTask()
|
||||||
@@ -602,7 +654,11 @@ actions:
|
|||||||
try {
|
try {
|
||||||
PlexAPI sdk = PlexAPI.builder()
|
PlexAPI sdk = PlexAPI.builder()
|
||||||
.accessToken("<YOUR_API_KEY_HERE>")
|
.accessToken("<YOUR_API_KEY_HERE>")
|
||||||
.xPlexClientIdentifier("gcgzw5rz2xovp84b4vha3a40")
|
.clientID("gcgzw5rz2xovp84b4vha3a40")
|
||||||
|
.clientName("Plex Web")
|
||||||
|
.clientVersion("4.133.0")
|
||||||
|
.clientPlatform("Chrome")
|
||||||
|
.deviceName("Linux")
|
||||||
.build();
|
.build();
|
||||||
|
|
||||||
GetAvailableClientsResponse res = sdk.server().getAvailableClients()
|
GetAvailableClientsResponse res = sdk.server().getAvailableClients()
|
||||||
@@ -646,7 +702,11 @@ actions:
|
|||||||
try {
|
try {
|
||||||
PlexAPI sdk = PlexAPI.builder()
|
PlexAPI sdk = PlexAPI.builder()
|
||||||
.accessToken("<YOUR_API_KEY_HERE>")
|
.accessToken("<YOUR_API_KEY_HERE>")
|
||||||
.xPlexClientIdentifier("gcgzw5rz2xovp84b4vha3a40")
|
.clientID("gcgzw5rz2xovp84b4vha3a40")
|
||||||
|
.clientName("Plex Web")
|
||||||
|
.clientVersion("4.133.0")
|
||||||
|
.clientPlatform("Chrome")
|
||||||
|
.deviceName("Linux")
|
||||||
.build();
|
.build();
|
||||||
|
|
||||||
GetCompanionsDataResponse res = sdk.plex().getCompanionsData()
|
GetCompanionsDataResponse res = sdk.plex().getCompanionsData()
|
||||||
@@ -690,7 +750,11 @@ actions:
|
|||||||
try {
|
try {
|
||||||
PlexAPI sdk = PlexAPI.builder()
|
PlexAPI sdk = PlexAPI.builder()
|
||||||
.accessToken("<YOUR_API_KEY_HERE>")
|
.accessToken("<YOUR_API_KEY_HERE>")
|
||||||
.xPlexClientIdentifier("gcgzw5rz2xovp84b4vha3a40")
|
.clientID("gcgzw5rz2xovp84b4vha3a40")
|
||||||
|
.clientName("Plex Web")
|
||||||
|
.clientVersion("4.133.0")
|
||||||
|
.clientPlatform("Chrome")
|
||||||
|
.deviceName("Linux")
|
||||||
.build();
|
.build();
|
||||||
|
|
||||||
GetDevicesResponse res = sdk.server().getDevices()
|
GetDevicesResponse res = sdk.server().getDevices()
|
||||||
@@ -734,7 +798,11 @@ actions:
|
|||||||
try {
|
try {
|
||||||
PlexAPI sdk = PlexAPI.builder()
|
PlexAPI sdk = PlexAPI.builder()
|
||||||
.accessToken("<YOUR_API_KEY_HERE>")
|
.accessToken("<YOUR_API_KEY_HERE>")
|
||||||
.xPlexClientIdentifier("gcgzw5rz2xovp84b4vha3a40")
|
.clientID("gcgzw5rz2xovp84b4vha3a40")
|
||||||
|
.clientName("Plex Web")
|
||||||
|
.clientVersion("4.133.0")
|
||||||
|
.clientPlatform("Chrome")
|
||||||
|
.deviceName("Linux")
|
||||||
.build();
|
.build();
|
||||||
|
|
||||||
GetUserFriendsResponse res = sdk.plex().getUserFriends()
|
GetUserFriendsResponse res = sdk.plex().getUserFriends()
|
||||||
@@ -777,7 +845,11 @@ actions:
|
|||||||
public static void main(String[] args) throws Exception {
|
public static void main(String[] args) throws Exception {
|
||||||
try {
|
try {
|
||||||
PlexAPI sdk = PlexAPI.builder()
|
PlexAPI sdk = PlexAPI.builder()
|
||||||
.xPlexClientIdentifier("gcgzw5rz2xovp84b4vha3a40")
|
.clientID("gcgzw5rz2xovp84b4vha3a40")
|
||||||
|
.clientName("Plex Web")
|
||||||
|
.clientVersion("4.133.0")
|
||||||
|
.clientPlatform("Chrome")
|
||||||
|
.deviceName("Linux")
|
||||||
.build();
|
.build();
|
||||||
|
|
||||||
GetGeoDataResponse res = sdk.plex().getGeoData()
|
GetGeoDataResponse res = sdk.plex().getGeoData()
|
||||||
@@ -821,7 +893,11 @@ actions:
|
|||||||
try {
|
try {
|
||||||
PlexAPI sdk = PlexAPI.builder()
|
PlexAPI sdk = PlexAPI.builder()
|
||||||
.accessToken("<YOUR_API_KEY_HERE>")
|
.accessToken("<YOUR_API_KEY_HERE>")
|
||||||
.xPlexClientIdentifier("gcgzw5rz2xovp84b4vha3a40")
|
.clientID("gcgzw5rz2xovp84b4vha3a40")
|
||||||
|
.clientName("Plex Web")
|
||||||
|
.clientVersion("4.133.0")
|
||||||
|
.clientPlatform("Chrome")
|
||||||
|
.deviceName("Linux")
|
||||||
.build();
|
.build();
|
||||||
|
|
||||||
GetHomeDataResponse res = sdk.plex().getHomeData()
|
GetHomeDataResponse res = sdk.plex().getHomeData()
|
||||||
@@ -866,7 +942,11 @@ actions:
|
|||||||
try {
|
try {
|
||||||
PlexAPI sdk = PlexAPI.builder()
|
PlexAPI sdk = PlexAPI.builder()
|
||||||
.accessToken("<YOUR_API_KEY_HERE>")
|
.accessToken("<YOUR_API_KEY_HERE>")
|
||||||
.xPlexClientIdentifier("gcgzw5rz2xovp84b4vha3a40")
|
.clientID("gcgzw5rz2xovp84b4vha3a40")
|
||||||
|
.clientName("Plex Web")
|
||||||
|
.clientVersion("4.133.0")
|
||||||
|
.clientPlatform("Chrome")
|
||||||
|
.deviceName("Linux")
|
||||||
.build();
|
.build();
|
||||||
|
|
||||||
GetGlobalHubsResponse res = sdk.hubs().getGlobalHubs()
|
GetGlobalHubsResponse res = sdk.hubs().getGlobalHubs()
|
||||||
@@ -912,7 +992,11 @@ actions:
|
|||||||
try {
|
try {
|
||||||
PlexAPI sdk = PlexAPI.builder()
|
PlexAPI sdk = PlexAPI.builder()
|
||||||
.accessToken("<YOUR_API_KEY_HERE>")
|
.accessToken("<YOUR_API_KEY_HERE>")
|
||||||
.xPlexClientIdentifier("gcgzw5rz2xovp84b4vha3a40")
|
.clientID("gcgzw5rz2xovp84b4vha3a40")
|
||||||
|
.clientName("Plex Web")
|
||||||
|
.clientVersion("4.133.0")
|
||||||
|
.clientPlatform("Chrome")
|
||||||
|
.deviceName("Linux")
|
||||||
.build();
|
.build();
|
||||||
|
|
||||||
PerformSearchResponse res = sdk.search().performSearch()
|
PerformSearchResponse res = sdk.search().performSearch()
|
||||||
@@ -957,7 +1041,11 @@ actions:
|
|||||||
try {
|
try {
|
||||||
PlexAPI sdk = PlexAPI.builder()
|
PlexAPI sdk = PlexAPI.builder()
|
||||||
.accessToken("<YOUR_API_KEY_HERE>")
|
.accessToken("<YOUR_API_KEY_HERE>")
|
||||||
.xPlexClientIdentifier("gcgzw5rz2xovp84b4vha3a40")
|
.clientID("gcgzw5rz2xovp84b4vha3a40")
|
||||||
|
.clientName("Plex Web")
|
||||||
|
.clientVersion("4.133.0")
|
||||||
|
.clientPlatform("Chrome")
|
||||||
|
.deviceName("Linux")
|
||||||
.build();
|
.build();
|
||||||
|
|
||||||
PerformVoiceSearchResponse res = sdk.search().performVoiceSearch()
|
PerformVoiceSearchResponse res = sdk.search().performVoiceSearch()
|
||||||
@@ -1003,7 +1091,11 @@ actions:
|
|||||||
try {
|
try {
|
||||||
PlexAPI sdk = PlexAPI.builder()
|
PlexAPI sdk = PlexAPI.builder()
|
||||||
.accessToken("<YOUR_API_KEY_HERE>")
|
.accessToken("<YOUR_API_KEY_HERE>")
|
||||||
.xPlexClientIdentifier("gcgzw5rz2xovp84b4vha3a40")
|
.clientID("gcgzw5rz2xovp84b4vha3a40")
|
||||||
|
.clientName("Plex Web")
|
||||||
|
.clientVersion("4.133.0")
|
||||||
|
.clientPlatform("Chrome")
|
||||||
|
.deviceName("Linux")
|
||||||
.build();
|
.build();
|
||||||
|
|
||||||
GetLibraryHubsResponse res = sdk.hubs().getLibraryHubs()
|
GetLibraryHubsResponse res = sdk.hubs().getLibraryHubs()
|
||||||
@@ -1049,7 +1141,11 @@ actions:
|
|||||||
public static void main(String[] args) throws Exception {
|
public static void main(String[] args) throws Exception {
|
||||||
try {
|
try {
|
||||||
PlexAPI sdk = PlexAPI.builder()
|
PlexAPI sdk = PlexAPI.builder()
|
||||||
.xPlexClientIdentifier("gcgzw5rz2xovp84b4vha3a40")
|
.clientID("gcgzw5rz2xovp84b4vha3a40")
|
||||||
|
.clientName("Plex Web")
|
||||||
|
.clientVersion("4.133.0")
|
||||||
|
.clientPlatform("Chrome")
|
||||||
|
.deviceName("Linux")
|
||||||
.build();
|
.build();
|
||||||
|
|
||||||
GetServerIdentityResponse res = sdk.server().getServerIdentity()
|
GetServerIdentityResponse res = sdk.server().getServerIdentity()
|
||||||
@@ -1091,7 +1187,11 @@ actions:
|
|||||||
try {
|
try {
|
||||||
PlexAPI sdk = PlexAPI.builder()
|
PlexAPI sdk = PlexAPI.builder()
|
||||||
.accessToken("<YOUR_API_KEY_HERE>")
|
.accessToken("<YOUR_API_KEY_HERE>")
|
||||||
.xPlexClientIdentifier("gcgzw5rz2xovp84b4vha3a40")
|
.clientID("gcgzw5rz2xovp84b4vha3a40")
|
||||||
|
.clientName("Plex Web")
|
||||||
|
.clientVersion("4.133.0")
|
||||||
|
.clientPlatform("Chrome")
|
||||||
|
.deviceName("Linux")
|
||||||
.build();
|
.build();
|
||||||
|
|
||||||
GetTopWatchedContentResponse res = sdk.library().getTopWatchedContent()
|
GetTopWatchedContentResponse res = sdk.library().getTopWatchedContent()
|
||||||
@@ -1137,7 +1237,11 @@ actions:
|
|||||||
try {
|
try {
|
||||||
PlexAPI sdk = PlexAPI.builder()
|
PlexAPI sdk = PlexAPI.builder()
|
||||||
.accessToken("<YOUR_API_KEY_HERE>")
|
.accessToken("<YOUR_API_KEY_HERE>")
|
||||||
.xPlexClientIdentifier("gcgzw5rz2xovp84b4vha3a40")
|
.clientID("gcgzw5rz2xovp84b4vha3a40")
|
||||||
|
.clientName("Plex Web")
|
||||||
|
.clientVersion("4.133.0")
|
||||||
|
.clientPlatform("Chrome")
|
||||||
|
.deviceName("Linux")
|
||||||
.build();
|
.build();
|
||||||
|
|
||||||
GetFileHashResponse res = sdk.library().getFileHash()
|
GetFileHashResponse res = sdk.library().getFileHash()
|
||||||
@@ -1181,7 +1285,11 @@ actions:
|
|||||||
try {
|
try {
|
||||||
PlexAPI sdk = PlexAPI.builder()
|
PlexAPI sdk = PlexAPI.builder()
|
||||||
.accessToken("<YOUR_API_KEY_HERE>")
|
.accessToken("<YOUR_API_KEY_HERE>")
|
||||||
.xPlexClientIdentifier("gcgzw5rz2xovp84b4vha3a40")
|
.clientID("gcgzw5rz2xovp84b4vha3a40")
|
||||||
|
.clientName("Plex Web")
|
||||||
|
.clientVersion("4.133.0")
|
||||||
|
.clientPlatform("Chrome")
|
||||||
|
.deviceName("Linux")
|
||||||
.build();
|
.build();
|
||||||
|
|
||||||
GetMetaDataByRatingKeyResponse res = sdk.library().getMetaDataByRatingKey()
|
GetMetaDataByRatingKeyResponse res = sdk.library().getMetaDataByRatingKey()
|
||||||
@@ -1227,7 +1335,11 @@ actions:
|
|||||||
try {
|
try {
|
||||||
PlexAPI sdk = PlexAPI.builder()
|
PlexAPI sdk = PlexAPI.builder()
|
||||||
.accessToken("<YOUR_API_KEY_HERE>")
|
.accessToken("<YOUR_API_KEY_HERE>")
|
||||||
.xPlexClientIdentifier("gcgzw5rz2xovp84b4vha3a40")
|
.clientID("gcgzw5rz2xovp84b4vha3a40")
|
||||||
|
.clientName("Plex Web")
|
||||||
|
.clientVersion("4.133.0")
|
||||||
|
.clientPlatform("Chrome")
|
||||||
|
.deviceName("Linux")
|
||||||
.build();
|
.build();
|
||||||
|
|
||||||
GetBannerImageRequest req = GetBannerImageRequest.builder()
|
GetBannerImageRequest req = GetBannerImageRequest.builder()
|
||||||
@@ -1281,7 +1393,11 @@ actions:
|
|||||||
try {
|
try {
|
||||||
PlexAPI sdk = PlexAPI.builder()
|
PlexAPI sdk = PlexAPI.builder()
|
||||||
.accessToken("<YOUR_API_KEY_HERE>")
|
.accessToken("<YOUR_API_KEY_HERE>")
|
||||||
.xPlexClientIdentifier("gcgzw5rz2xovp84b4vha3a40")
|
.clientID("gcgzw5rz2xovp84b4vha3a40")
|
||||||
|
.clientName("Plex Web")
|
||||||
|
.clientVersion("4.133.0")
|
||||||
|
.clientPlatform("Chrome")
|
||||||
|
.deviceName("Linux")
|
||||||
.build();
|
.build();
|
||||||
|
|
||||||
GetMetadataChildrenResponse res = sdk.library().getMetadataChildren()
|
GetMetadataChildrenResponse res = sdk.library().getMetadataChildren()
|
||||||
@@ -1328,7 +1444,11 @@ actions:
|
|||||||
try {
|
try {
|
||||||
PlexAPI sdk = PlexAPI.builder()
|
PlexAPI sdk = PlexAPI.builder()
|
||||||
.accessToken("<YOUR_API_KEY_HERE>")
|
.accessToken("<YOUR_API_KEY_HERE>")
|
||||||
.xPlexClientIdentifier("gcgzw5rz2xovp84b4vha3a40")
|
.clientID("gcgzw5rz2xovp84b4vha3a40")
|
||||||
|
.clientName("Plex Web")
|
||||||
|
.clientVersion("4.133.0")
|
||||||
|
.clientPlatform("Chrome")
|
||||||
|
.deviceName("Linux")
|
||||||
.build();
|
.build();
|
||||||
|
|
||||||
GetThumbImageRequest req = GetThumbImageRequest.builder()
|
GetThumbImageRequest req = GetThumbImageRequest.builder()
|
||||||
@@ -1382,7 +1502,11 @@ actions:
|
|||||||
try {
|
try {
|
||||||
PlexAPI sdk = PlexAPI.builder()
|
PlexAPI sdk = PlexAPI.builder()
|
||||||
.accessToken("<YOUR_API_KEY_HERE>")
|
.accessToken("<YOUR_API_KEY_HERE>")
|
||||||
.xPlexClientIdentifier("gcgzw5rz2xovp84b4vha3a40")
|
.clientID("gcgzw5rz2xovp84b4vha3a40")
|
||||||
|
.clientName("Plex Web")
|
||||||
|
.clientVersion("4.133.0")
|
||||||
|
.clientPlatform("Chrome")
|
||||||
|
.deviceName("Linux")
|
||||||
.build();
|
.build();
|
||||||
|
|
||||||
GetOnDeckResponse res = sdk.library().getOnDeck()
|
GetOnDeckResponse res = sdk.library().getOnDeck()
|
||||||
@@ -1426,7 +1550,11 @@ actions:
|
|||||||
try {
|
try {
|
||||||
PlexAPI sdk = PlexAPI.builder()
|
PlexAPI sdk = PlexAPI.builder()
|
||||||
.accessToken("<YOUR_API_KEY_HERE>")
|
.accessToken("<YOUR_API_KEY_HERE>")
|
||||||
.xPlexClientIdentifier("gcgzw5rz2xovp84b4vha3a40")
|
.clientID("gcgzw5rz2xovp84b4vha3a40")
|
||||||
|
.clientName("Plex Web")
|
||||||
|
.clientVersion("4.133.0")
|
||||||
|
.clientPlatform("Chrome")
|
||||||
|
.deviceName("Linux")
|
||||||
.build();
|
.build();
|
||||||
|
|
||||||
GetRecentlyAddedResponse res = sdk.library().getRecentlyAdded()
|
GetRecentlyAddedResponse res = sdk.library().getRecentlyAdded()
|
||||||
@@ -1472,7 +1600,11 @@ actions:
|
|||||||
try {
|
try {
|
||||||
PlexAPI sdk = PlexAPI.builder()
|
PlexAPI sdk = PlexAPI.builder()
|
||||||
.accessToken("<YOUR_API_KEY_HERE>")
|
.accessToken("<YOUR_API_KEY_HERE>")
|
||||||
.xPlexClientIdentifier("gcgzw5rz2xovp84b4vha3a40")
|
.clientID("gcgzw5rz2xovp84b4vha3a40")
|
||||||
|
.clientName("Plex Web")
|
||||||
|
.clientVersion("4.133.0")
|
||||||
|
.clientPlatform("Chrome")
|
||||||
|
.deviceName("Linux")
|
||||||
.build();
|
.build();
|
||||||
|
|
||||||
GetAllLibrariesResponse res = sdk.library().getAllLibraries()
|
GetAllLibrariesResponse res = sdk.library().getAllLibraries()
|
||||||
@@ -1518,7 +1650,11 @@ actions:
|
|||||||
try {
|
try {
|
||||||
PlexAPI sdk = PlexAPI.builder()
|
PlexAPI sdk = PlexAPI.builder()
|
||||||
.accessToken("<YOUR_API_KEY_HERE>")
|
.accessToken("<YOUR_API_KEY_HERE>")
|
||||||
.xPlexClientIdentifier("gcgzw5rz2xovp84b4vha3a40")
|
.clientID("gcgzw5rz2xovp84b4vha3a40")
|
||||||
|
.clientName("Plex Web")
|
||||||
|
.clientVersion("4.133.0")
|
||||||
|
.clientPlatform("Chrome")
|
||||||
|
.deviceName("Linux")
|
||||||
.build();
|
.build();
|
||||||
|
|
||||||
GetWatchListRequest req = GetWatchListRequest.builder()
|
GetWatchListRequest req = GetWatchListRequest.builder()
|
||||||
@@ -1570,7 +1706,11 @@ actions:
|
|||||||
try {
|
try {
|
||||||
PlexAPI sdk = PlexAPI.builder()
|
PlexAPI sdk = PlexAPI.builder()
|
||||||
.accessToken("<YOUR_API_KEY_HERE>")
|
.accessToken("<YOUR_API_KEY_HERE>")
|
||||||
.xPlexClientIdentifier("gcgzw5rz2xovp84b4vha3a40")
|
.clientID("gcgzw5rz2xovp84b4vha3a40")
|
||||||
|
.clientName("Plex Web")
|
||||||
|
.clientVersion("4.133.0")
|
||||||
|
.clientPlatform("Chrome")
|
||||||
|
.deviceName("Linux")
|
||||||
.build();
|
.build();
|
||||||
|
|
||||||
DeleteLibraryResponse res = sdk.library().deleteLibrary()
|
DeleteLibraryResponse res = sdk.library().deleteLibrary()
|
||||||
@@ -1614,7 +1754,11 @@ actions:
|
|||||||
try {
|
try {
|
||||||
PlexAPI sdk = PlexAPI.builder()
|
PlexAPI sdk = PlexAPI.builder()
|
||||||
.accessToken("<YOUR_API_KEY_HERE>")
|
.accessToken("<YOUR_API_KEY_HERE>")
|
||||||
.xPlexClientIdentifier("gcgzw5rz2xovp84b4vha3a40")
|
.clientID("gcgzw5rz2xovp84b4vha3a40")
|
||||||
|
.clientName("Plex Web")
|
||||||
|
.clientVersion("4.133.0")
|
||||||
|
.clientPlatform("Chrome")
|
||||||
|
.deviceName("Linux")
|
||||||
.build();
|
.build();
|
||||||
|
|
||||||
GetLibraryDetailsResponse res = sdk.library().getLibraryDetails()
|
GetLibraryDetailsResponse res = sdk.library().getLibraryDetails()
|
||||||
@@ -1661,7 +1805,11 @@ actions:
|
|||||||
try {
|
try {
|
||||||
PlexAPI sdk = PlexAPI.builder()
|
PlexAPI sdk = PlexAPI.builder()
|
||||||
.accessToken("<YOUR_API_KEY_HERE>")
|
.accessToken("<YOUR_API_KEY_HERE>")
|
||||||
.xPlexClientIdentifier("gcgzw5rz2xovp84b4vha3a40")
|
.clientID("gcgzw5rz2xovp84b4vha3a40")
|
||||||
|
.clientName("Plex Web")
|
||||||
|
.clientVersion("4.133.0")
|
||||||
|
.clientPlatform("Chrome")
|
||||||
|
.deviceName("Linux")
|
||||||
.build();
|
.build();
|
||||||
|
|
||||||
GetRefreshLibraryMetadataResponse res = sdk.library().getRefreshLibraryMetadata()
|
GetRefreshLibraryMetadataResponse res = sdk.library().getRefreshLibraryMetadata()
|
||||||
@@ -1706,7 +1854,11 @@ actions:
|
|||||||
try {
|
try {
|
||||||
PlexAPI sdk = PlexAPI.builder()
|
PlexAPI sdk = PlexAPI.builder()
|
||||||
.accessToken("<YOUR_API_KEY_HERE>")
|
.accessToken("<YOUR_API_KEY_HERE>")
|
||||||
.xPlexClientIdentifier("gcgzw5rz2xovp84b4vha3a40")
|
.clientID("gcgzw5rz2xovp84b4vha3a40")
|
||||||
|
.clientName("Plex Web")
|
||||||
|
.clientVersion("4.133.0")
|
||||||
|
.clientPlatform("Chrome")
|
||||||
|
.deviceName("Linux")
|
||||||
.build();
|
.build();
|
||||||
|
|
||||||
GetSearchLibraryResponse res = sdk.library().getSearchLibrary()
|
GetSearchLibraryResponse res = sdk.library().getSearchLibrary()
|
||||||
@@ -1757,7 +1909,11 @@ actions:
|
|||||||
try {
|
try {
|
||||||
PlexAPI sdk = PlexAPI.builder()
|
PlexAPI sdk = PlexAPI.builder()
|
||||||
.accessToken("<YOUR_API_KEY_HERE>")
|
.accessToken("<YOUR_API_KEY_HERE>")
|
||||||
.xPlexClientIdentifier("gcgzw5rz2xovp84b4vha3a40")
|
.clientID("gcgzw5rz2xovp84b4vha3a40")
|
||||||
|
.clientName("Plex Web")
|
||||||
|
.clientVersion("4.133.0")
|
||||||
|
.clientPlatform("Chrome")
|
||||||
|
.deviceName("Linux")
|
||||||
.build();
|
.build();
|
||||||
|
|
||||||
GetLibraryItemsRequest req = GetLibraryItemsRequest.builder()
|
GetLibraryItemsRequest req = GetLibraryItemsRequest.builder()
|
||||||
@@ -1813,7 +1969,11 @@ actions:
|
|||||||
try {
|
try {
|
||||||
PlexAPI sdk = PlexAPI.builder()
|
PlexAPI sdk = PlexAPI.builder()
|
||||||
.accessToken("<YOUR_API_KEY_HERE>")
|
.accessToken("<YOUR_API_KEY_HERE>")
|
||||||
.xPlexClientIdentifier("gcgzw5rz2xovp84b4vha3a40")
|
.clientID("gcgzw5rz2xovp84b4vha3a40")
|
||||||
|
.clientName("Plex Web")
|
||||||
|
.clientVersion("4.133.0")
|
||||||
|
.clientPlatform("Chrome")
|
||||||
|
.deviceName("Linux")
|
||||||
.build();
|
.build();
|
||||||
|
|
||||||
LogLineResponse res = sdk.log().logLine()
|
LogLineResponse res = sdk.log().logLine()
|
||||||
@@ -1859,7 +2019,11 @@ actions:
|
|||||||
try {
|
try {
|
||||||
PlexAPI sdk = PlexAPI.builder()
|
PlexAPI sdk = PlexAPI.builder()
|
||||||
.accessToken("<YOUR_API_KEY_HERE>")
|
.accessToken("<YOUR_API_KEY_HERE>")
|
||||||
.xPlexClientIdentifier("gcgzw5rz2xovp84b4vha3a40")
|
.clientID("gcgzw5rz2xovp84b4vha3a40")
|
||||||
|
.clientName("Plex Web")
|
||||||
|
.clientVersion("4.133.0")
|
||||||
|
.clientPlatform("Chrome")
|
||||||
|
.deviceName("Linux")
|
||||||
.build();
|
.build();
|
||||||
|
|
||||||
String req = "level=4&message=Test%20message%201&source=postman\nlevel=3&message=Test%20message%202&source=postman
|
String req = "level=4&message=Test%20message%201&source=postman\nlevel=3&message=Test%20message%202&source=postman
|
||||||
@@ -1905,7 +2069,11 @@ actions:
|
|||||||
try {
|
try {
|
||||||
PlexAPI sdk = PlexAPI.builder()
|
PlexAPI sdk = PlexAPI.builder()
|
||||||
.accessToken("<YOUR_API_KEY_HERE>")
|
.accessToken("<YOUR_API_KEY_HERE>")
|
||||||
.xPlexClientIdentifier("gcgzw5rz2xovp84b4vha3a40")
|
.clientID("gcgzw5rz2xovp84b4vha3a40")
|
||||||
|
.clientName("Plex Web")
|
||||||
|
.clientVersion("4.133.0")
|
||||||
|
.clientPlatform("Chrome")
|
||||||
|
.deviceName("Linux")
|
||||||
.build();
|
.build();
|
||||||
|
|
||||||
EnablePaperTrailResponse res = sdk.log().enablePaperTrail()
|
EnablePaperTrailResponse res = sdk.log().enablePaperTrail()
|
||||||
@@ -1947,7 +2115,11 @@ actions:
|
|||||||
try {
|
try {
|
||||||
PlexAPI sdk = PlexAPI.builder()
|
PlexAPI sdk = PlexAPI.builder()
|
||||||
.accessToken("<YOUR_API_KEY_HERE>")
|
.accessToken("<YOUR_API_KEY_HERE>")
|
||||||
.xPlexClientIdentifier("gcgzw5rz2xovp84b4vha3a40")
|
.clientID("gcgzw5rz2xovp84b4vha3a40")
|
||||||
|
.clientName("Plex Web")
|
||||||
|
.clientVersion("4.133.0")
|
||||||
|
.clientPlatform("Chrome")
|
||||||
|
.deviceName("Linux")
|
||||||
.build();
|
.build();
|
||||||
|
|
||||||
GetMediaProvidersResponse res = sdk.server().getMediaProviders()
|
GetMediaProvidersResponse res = sdk.server().getMediaProviders()
|
||||||
@@ -1992,7 +2164,11 @@ actions:
|
|||||||
try {
|
try {
|
||||||
PlexAPI sdk = PlexAPI.builder()
|
PlexAPI sdk = PlexAPI.builder()
|
||||||
.accessToken("<YOUR_API_KEY_HERE>")
|
.accessToken("<YOUR_API_KEY_HERE>")
|
||||||
.xPlexClientIdentifier("gcgzw5rz2xovp84b4vha3a40")
|
.clientID("gcgzw5rz2xovp84b4vha3a40")
|
||||||
|
.clientName("Plex Web")
|
||||||
|
.clientVersion("4.133.0")
|
||||||
|
.clientPlatform("Chrome")
|
||||||
|
.deviceName("Linux")
|
||||||
.build();
|
.build();
|
||||||
|
|
||||||
GetMyPlexAccountResponse res = sdk.server().getMyPlexAccount()
|
GetMyPlexAccountResponse res = sdk.server().getMyPlexAccount()
|
||||||
@@ -2039,7 +2215,11 @@ actions:
|
|||||||
try {
|
try {
|
||||||
PlexAPI sdk = PlexAPI.builder()
|
PlexAPI sdk = PlexAPI.builder()
|
||||||
.accessToken("<YOUR_API_KEY_HERE>")
|
.accessToken("<YOUR_API_KEY_HERE>")
|
||||||
.xPlexClientIdentifier("gcgzw5rz2xovp84b4vha3a40")
|
.clientID("gcgzw5rz2xovp84b4vha3a40")
|
||||||
|
.clientName("Plex Web")
|
||||||
|
.clientVersion("4.133.0")
|
||||||
|
.clientPlatform("Chrome")
|
||||||
|
.deviceName("Linux")
|
||||||
.build();
|
.build();
|
||||||
|
|
||||||
GetResizedPhotoRequest req = GetResizedPhotoRequest.builder()
|
GetResizedPhotoRequest req = GetResizedPhotoRequest.builder()
|
||||||
@@ -2083,6 +2263,7 @@ actions:
|
|||||||
|
|
||||||
import dev.plexapi.plexapi.PlexAPI;
|
import dev.plexapi.plexapi.PlexAPI;
|
||||||
import dev.plexapi.plexapi.models.errors.SDKError;
|
import dev.plexapi.plexapi.models.errors.SDKError;
|
||||||
|
import dev.plexapi.plexapi.models.operations.GetPinRequest;
|
||||||
import dev.plexapi.plexapi.models.operations.GetPinResponse;
|
import dev.plexapi.plexapi.models.operations.GetPinResponse;
|
||||||
import java.lang.Exception;
|
import java.lang.Exception;
|
||||||
|
|
||||||
@@ -2091,13 +2272,18 @@ actions:
|
|||||||
public static void main(String[] args) throws Exception {
|
public static void main(String[] args) throws Exception {
|
||||||
try {
|
try {
|
||||||
PlexAPI sdk = PlexAPI.builder()
|
PlexAPI sdk = PlexAPI.builder()
|
||||||
.xPlexClientIdentifier("gcgzw5rz2xovp84b4vha3a40")
|
.clientID("gcgzw5rz2xovp84b4vha3a40")
|
||||||
|
.clientName("Plex Web")
|
||||||
|
.clientVersion("4.133.0")
|
||||||
|
.clientPlatform("Chrome")
|
||||||
|
.deviceName("Linux")
|
||||||
|
.build();
|
||||||
|
|
||||||
|
GetPinRequest req = GetPinRequest.builder()
|
||||||
.build();
|
.build();
|
||||||
|
|
||||||
GetPinResponse res = sdk.plex().getPin()
|
GetPinResponse res = sdk.plex().getPin()
|
||||||
.strong(false)
|
.request(req)
|
||||||
.xPlexClientIdentifier("gcgzw5rz2xovp84b4vha3a40")
|
|
||||||
.xPlexProduct("Plex Web")
|
|
||||||
.call();
|
.call();
|
||||||
|
|
||||||
if (res.authPinContainer().isPresent()) {
|
if (res.authPinContainer().isPresent()) {
|
||||||
@@ -2134,11 +2320,15 @@ actions:
|
|||||||
public static void main(String[] args) throws Exception {
|
public static void main(String[] args) throws Exception {
|
||||||
try {
|
try {
|
||||||
PlexAPI sdk = PlexAPI.builder()
|
PlexAPI sdk = PlexAPI.builder()
|
||||||
.xPlexClientIdentifier("gcgzw5rz2xovp84b4vha3a40")
|
.clientID("gcgzw5rz2xovp84b4vha3a40")
|
||||||
|
.clientName("Plex Web")
|
||||||
|
.clientVersion("4.133.0")
|
||||||
|
.clientPlatform("Chrome")
|
||||||
|
.deviceName("Linux")
|
||||||
.build();
|
.build();
|
||||||
|
|
||||||
GetTokenByPinIdResponse res = sdk.plex().getTokenByPinId()
|
GetTokenByPinIdResponse res = sdk.plex().getTokenByPinId()
|
||||||
.xPlexClientIdentifier("gcgzw5rz2xovp84b4vha3a40")
|
.clientID("gcgzw5rz2xovp84b4vha3a40")
|
||||||
.pinID(408895L)
|
.pinID(408895L)
|
||||||
.call();
|
.call();
|
||||||
|
|
||||||
@@ -2182,7 +2372,11 @@ actions:
|
|||||||
try {
|
try {
|
||||||
PlexAPI sdk = PlexAPI.builder()
|
PlexAPI sdk = PlexAPI.builder()
|
||||||
.accessToken("<YOUR_API_KEY_HERE>")
|
.accessToken("<YOUR_API_KEY_HERE>")
|
||||||
.xPlexClientIdentifier("gcgzw5rz2xovp84b4vha3a40")
|
.clientID("gcgzw5rz2xovp84b4vha3a40")
|
||||||
|
.clientName("Plex Web")
|
||||||
|
.clientVersion("4.133.0")
|
||||||
|
.clientPlatform("Chrome")
|
||||||
|
.deviceName("Linux")
|
||||||
.build();
|
.build();
|
||||||
|
|
||||||
GetPlaylistsResponse res = sdk.playlists().getPlaylists()
|
GetPlaylistsResponse res = sdk.playlists().getPlaylists()
|
||||||
@@ -2231,7 +2425,11 @@ actions:
|
|||||||
try {
|
try {
|
||||||
PlexAPI sdk = PlexAPI.builder()
|
PlexAPI sdk = PlexAPI.builder()
|
||||||
.accessToken("<YOUR_API_KEY_HERE>")
|
.accessToken("<YOUR_API_KEY_HERE>")
|
||||||
.xPlexClientIdentifier("gcgzw5rz2xovp84b4vha3a40")
|
.clientID("gcgzw5rz2xovp84b4vha3a40")
|
||||||
|
.clientName("Plex Web")
|
||||||
|
.clientVersion("4.133.0")
|
||||||
|
.clientPlatform("Chrome")
|
||||||
|
.deviceName("Linux")
|
||||||
.build();
|
.build();
|
||||||
|
|
||||||
CreatePlaylistRequest req = CreatePlaylistRequest.builder()
|
CreatePlaylistRequest req = CreatePlaylistRequest.builder()
|
||||||
@@ -2284,7 +2482,11 @@ actions:
|
|||||||
try {
|
try {
|
||||||
PlexAPI sdk = PlexAPI.builder()
|
PlexAPI sdk = PlexAPI.builder()
|
||||||
.accessToken("<YOUR_API_KEY_HERE>")
|
.accessToken("<YOUR_API_KEY_HERE>")
|
||||||
.xPlexClientIdentifier("gcgzw5rz2xovp84b4vha3a40")
|
.clientID("gcgzw5rz2xovp84b4vha3a40")
|
||||||
|
.clientName("Plex Web")
|
||||||
|
.clientVersion("4.133.0")
|
||||||
|
.clientPlatform("Chrome")
|
||||||
|
.deviceName("Linux")
|
||||||
.build();
|
.build();
|
||||||
|
|
||||||
UploadPlaylistResponse res = sdk.playlists().uploadPlaylist()
|
UploadPlaylistResponse res = sdk.playlists().uploadPlaylist()
|
||||||
@@ -2328,7 +2530,11 @@ actions:
|
|||||||
try {
|
try {
|
||||||
PlexAPI sdk = PlexAPI.builder()
|
PlexAPI sdk = PlexAPI.builder()
|
||||||
.accessToken("<YOUR_API_KEY_HERE>")
|
.accessToken("<YOUR_API_KEY_HERE>")
|
||||||
.xPlexClientIdentifier("gcgzw5rz2xovp84b4vha3a40")
|
.clientID("gcgzw5rz2xovp84b4vha3a40")
|
||||||
|
.clientName("Plex Web")
|
||||||
|
.clientVersion("4.133.0")
|
||||||
|
.clientPlatform("Chrome")
|
||||||
|
.deviceName("Linux")
|
||||||
.build();
|
.build();
|
||||||
|
|
||||||
DeletePlaylistResponse res = sdk.playlists().deletePlaylist()
|
DeletePlaylistResponse res = sdk.playlists().deletePlaylist()
|
||||||
@@ -2371,7 +2577,11 @@ actions:
|
|||||||
try {
|
try {
|
||||||
PlexAPI sdk = PlexAPI.builder()
|
PlexAPI sdk = PlexAPI.builder()
|
||||||
.accessToken("<YOUR_API_KEY_HERE>")
|
.accessToken("<YOUR_API_KEY_HERE>")
|
||||||
.xPlexClientIdentifier("gcgzw5rz2xovp84b4vha3a40")
|
.clientID("gcgzw5rz2xovp84b4vha3a40")
|
||||||
|
.clientName("Plex Web")
|
||||||
|
.clientVersion("4.133.0")
|
||||||
|
.clientPlatform("Chrome")
|
||||||
|
.deviceName("Linux")
|
||||||
.build();
|
.build();
|
||||||
|
|
||||||
GetPlaylistResponse res = sdk.playlists().getPlaylist()
|
GetPlaylistResponse res = sdk.playlists().getPlaylist()
|
||||||
@@ -2416,7 +2626,11 @@ actions:
|
|||||||
try {
|
try {
|
||||||
PlexAPI sdk = PlexAPI.builder()
|
PlexAPI sdk = PlexAPI.builder()
|
||||||
.accessToken("<YOUR_API_KEY_HERE>")
|
.accessToken("<YOUR_API_KEY_HERE>")
|
||||||
.xPlexClientIdentifier("gcgzw5rz2xovp84b4vha3a40")
|
.clientID("gcgzw5rz2xovp84b4vha3a40")
|
||||||
|
.clientName("Plex Web")
|
||||||
|
.clientVersion("4.133.0")
|
||||||
|
.clientPlatform("Chrome")
|
||||||
|
.deviceName("Linux")
|
||||||
.build();
|
.build();
|
||||||
|
|
||||||
UpdatePlaylistResponse res = sdk.playlists().updatePlaylist()
|
UpdatePlaylistResponse res = sdk.playlists().updatePlaylist()
|
||||||
@@ -2461,7 +2675,11 @@ actions:
|
|||||||
try {
|
try {
|
||||||
PlexAPI sdk = PlexAPI.builder()
|
PlexAPI sdk = PlexAPI.builder()
|
||||||
.accessToken("<YOUR_API_KEY_HERE>")
|
.accessToken("<YOUR_API_KEY_HERE>")
|
||||||
.xPlexClientIdentifier("gcgzw5rz2xovp84b4vha3a40")
|
.clientID("gcgzw5rz2xovp84b4vha3a40")
|
||||||
|
.clientName("Plex Web")
|
||||||
|
.clientVersion("4.133.0")
|
||||||
|
.clientPlatform("Chrome")
|
||||||
|
.deviceName("Linux")
|
||||||
.build();
|
.build();
|
||||||
|
|
||||||
ClearPlaylistContentsResponse res = sdk.playlists().clearPlaylistContents()
|
ClearPlaylistContentsResponse res = sdk.playlists().clearPlaylistContents()
|
||||||
@@ -2505,7 +2723,11 @@ actions:
|
|||||||
try {
|
try {
|
||||||
PlexAPI sdk = PlexAPI.builder()
|
PlexAPI sdk = PlexAPI.builder()
|
||||||
.accessToken("<YOUR_API_KEY_HERE>")
|
.accessToken("<YOUR_API_KEY_HERE>")
|
||||||
.xPlexClientIdentifier("gcgzw5rz2xovp84b4vha3a40")
|
.clientID("gcgzw5rz2xovp84b4vha3a40")
|
||||||
|
.clientName("Plex Web")
|
||||||
|
.clientVersion("4.133.0")
|
||||||
|
.clientPlatform("Chrome")
|
||||||
|
.deviceName("Linux")
|
||||||
.build();
|
.build();
|
||||||
|
|
||||||
GetPlaylistContentsResponse res = sdk.playlists().getPlaylistContents()
|
GetPlaylistContentsResponse res = sdk.playlists().getPlaylistContents()
|
||||||
@@ -2551,7 +2773,11 @@ actions:
|
|||||||
try {
|
try {
|
||||||
PlexAPI sdk = PlexAPI.builder()
|
PlexAPI sdk = PlexAPI.builder()
|
||||||
.accessToken("<YOUR_API_KEY_HERE>")
|
.accessToken("<YOUR_API_KEY_HERE>")
|
||||||
.xPlexClientIdentifier("gcgzw5rz2xovp84b4vha3a40")
|
.clientID("gcgzw5rz2xovp84b4vha3a40")
|
||||||
|
.clientName("Plex Web")
|
||||||
|
.clientVersion("4.133.0")
|
||||||
|
.clientPlatform("Chrome")
|
||||||
|
.deviceName("Linux")
|
||||||
.build();
|
.build();
|
||||||
|
|
||||||
AddPlaylistContentsResponse res = sdk.playlists().addPlaylistContents()
|
AddPlaylistContentsResponse res = sdk.playlists().addPlaylistContents()
|
||||||
@@ -2601,11 +2827,15 @@ actions:
|
|||||||
try {
|
try {
|
||||||
PlexAPI sdk = PlexAPI.builder()
|
PlexAPI sdk = PlexAPI.builder()
|
||||||
.accessToken("<YOUR_API_KEY_HERE>")
|
.accessToken("<YOUR_API_KEY_HERE>")
|
||||||
.xPlexClientIdentifier("gcgzw5rz2xovp84b4vha3a40")
|
.clientID("gcgzw5rz2xovp84b4vha3a40")
|
||||||
|
.clientName("Plex Web")
|
||||||
|
.clientVersion("4.133.0")
|
||||||
|
.clientPlatform("Chrome")
|
||||||
|
.deviceName("Linux")
|
||||||
.build();
|
.build();
|
||||||
|
|
||||||
GetServerResourcesResponse res = sdk.plex().getServerResources()
|
GetServerResourcesResponse res = sdk.plex().getServerResources()
|
||||||
.xPlexClientIdentifier("gcgzw5rz2xovp84b4vha3a40")
|
.clientID("gcgzw5rz2xovp84b4vha3a40")
|
||||||
.includeHttps(IncludeHttps.ONE)
|
.includeHttps(IncludeHttps.ONE)
|
||||||
.includeRelay(IncludeRelay.ONE)
|
.includeRelay(IncludeRelay.ONE)
|
||||||
.includeIPv6(IncludeIPv6.ONE)
|
.includeIPv6(IncludeIPv6.ONE)
|
||||||
@@ -2649,7 +2879,11 @@ actions:
|
|||||||
try {
|
try {
|
||||||
PlexAPI sdk = PlexAPI.builder()
|
PlexAPI sdk = PlexAPI.builder()
|
||||||
.accessToken("<YOUR_API_KEY_HERE>")
|
.accessToken("<YOUR_API_KEY_HERE>")
|
||||||
.xPlexClientIdentifier("gcgzw5rz2xovp84b4vha3a40")
|
.clientID("gcgzw5rz2xovp84b4vha3a40")
|
||||||
|
.clientName("Plex Web")
|
||||||
|
.clientVersion("4.133.0")
|
||||||
|
.clientPlatform("Chrome")
|
||||||
|
.deviceName("Linux")
|
||||||
.build();
|
.build();
|
||||||
|
|
||||||
GetSearchResultsResponse res = sdk.search().getSearchResults()
|
GetSearchResultsResponse res = sdk.search().getSearchResults()
|
||||||
@@ -2694,7 +2928,11 @@ actions:
|
|||||||
try {
|
try {
|
||||||
PlexAPI sdk = PlexAPI.builder()
|
PlexAPI sdk = PlexAPI.builder()
|
||||||
.accessToken("<YOUR_API_KEY_HERE>")
|
.accessToken("<YOUR_API_KEY_HERE>")
|
||||||
.xPlexClientIdentifier("gcgzw5rz2xovp84b4vha3a40")
|
.clientID("gcgzw5rz2xovp84b4vha3a40")
|
||||||
|
.clientName("Plex Web")
|
||||||
|
.clientVersion("4.133.0")
|
||||||
|
.clientPlatform("Chrome")
|
||||||
|
.deviceName("Linux")
|
||||||
.build();
|
.build();
|
||||||
|
|
||||||
GetSourceConnectionInformationResponse res = sdk.authentication().getSourceConnectionInformation()
|
GetSourceConnectionInformationResponse res = sdk.authentication().getSourceConnectionInformation()
|
||||||
@@ -2739,7 +2977,11 @@ actions:
|
|||||||
try {
|
try {
|
||||||
PlexAPI sdk = PlexAPI.builder()
|
PlexAPI sdk = PlexAPI.builder()
|
||||||
.accessToken("<YOUR_API_KEY_HERE>")
|
.accessToken("<YOUR_API_KEY_HERE>")
|
||||||
.xPlexClientIdentifier("gcgzw5rz2xovp84b4vha3a40")
|
.clientID("gcgzw5rz2xovp84b4vha3a40")
|
||||||
|
.clientName("Plex Web")
|
||||||
|
.clientVersion("4.133.0")
|
||||||
|
.clientPlatform("Chrome")
|
||||||
|
.deviceName("Linux")
|
||||||
.build();
|
.build();
|
||||||
|
|
||||||
GetTransientTokenResponse res = sdk.authentication().getTransientToken()
|
GetTransientTokenResponse res = sdk.authentication().getTransientToken()
|
||||||
@@ -2783,7 +3025,11 @@ actions:
|
|||||||
try {
|
try {
|
||||||
PlexAPI sdk = PlexAPI.builder()
|
PlexAPI sdk = PlexAPI.builder()
|
||||||
.accessToken("<YOUR_API_KEY_HERE>")
|
.accessToken("<YOUR_API_KEY_HERE>")
|
||||||
.xPlexClientIdentifier("gcgzw5rz2xovp84b4vha3a40")
|
.clientID("gcgzw5rz2xovp84b4vha3a40")
|
||||||
|
.clientName("Plex Web")
|
||||||
|
.clientVersion("4.133.0")
|
||||||
|
.clientPlatform("Chrome")
|
||||||
|
.deviceName("Linux")
|
||||||
.build();
|
.build();
|
||||||
|
|
||||||
GetServerListResponse res = sdk.server().getServerList()
|
GetServerListResponse res = sdk.server().getServerList()
|
||||||
@@ -2827,7 +3073,11 @@ actions:
|
|||||||
try {
|
try {
|
||||||
PlexAPI sdk = PlexAPI.builder()
|
PlexAPI sdk = PlexAPI.builder()
|
||||||
.accessToken("<YOUR_API_KEY_HERE>")
|
.accessToken("<YOUR_API_KEY_HERE>")
|
||||||
.xPlexClientIdentifier("gcgzw5rz2xovp84b4vha3a40")
|
.clientID("gcgzw5rz2xovp84b4vha3a40")
|
||||||
|
.clientName("Plex Web")
|
||||||
|
.clientVersion("4.133.0")
|
||||||
|
.clientPlatform("Chrome")
|
||||||
|
.deviceName("Linux")
|
||||||
.build();
|
.build();
|
||||||
|
|
||||||
GetBandwidthStatisticsResponse res = sdk.statistics().getBandwidthStatistics()
|
GetBandwidthStatisticsResponse res = sdk.statistics().getBandwidthStatistics()
|
||||||
@@ -2872,7 +3122,11 @@ actions:
|
|||||||
try {
|
try {
|
||||||
PlexAPI sdk = PlexAPI.builder()
|
PlexAPI sdk = PlexAPI.builder()
|
||||||
.accessToken("<YOUR_API_KEY_HERE>")
|
.accessToken("<YOUR_API_KEY_HERE>")
|
||||||
.xPlexClientIdentifier("gcgzw5rz2xovp84b4vha3a40")
|
.clientID("gcgzw5rz2xovp84b4vha3a40")
|
||||||
|
.clientName("Plex Web")
|
||||||
|
.clientVersion("4.133.0")
|
||||||
|
.clientPlatform("Chrome")
|
||||||
|
.deviceName("Linux")
|
||||||
.build();
|
.build();
|
||||||
|
|
||||||
GetStatisticsResponse res = sdk.statistics().getStatistics()
|
GetStatisticsResponse res = sdk.statistics().getStatistics()
|
||||||
@@ -2917,7 +3171,11 @@ actions:
|
|||||||
try {
|
try {
|
||||||
PlexAPI sdk = PlexAPI.builder()
|
PlexAPI sdk = PlexAPI.builder()
|
||||||
.accessToken("<YOUR_API_KEY_HERE>")
|
.accessToken("<YOUR_API_KEY_HERE>")
|
||||||
.xPlexClientIdentifier("gcgzw5rz2xovp84b4vha3a40")
|
.clientID("gcgzw5rz2xovp84b4vha3a40")
|
||||||
|
.clientName("Plex Web")
|
||||||
|
.clientVersion("4.133.0")
|
||||||
|
.clientPlatform("Chrome")
|
||||||
|
.deviceName("Linux")
|
||||||
.build();
|
.build();
|
||||||
|
|
||||||
GetResourcesStatisticsResponse res = sdk.statistics().getResourcesStatistics()
|
GetResourcesStatisticsResponse res = sdk.statistics().getResourcesStatistics()
|
||||||
@@ -2962,7 +3220,11 @@ actions:
|
|||||||
try {
|
try {
|
||||||
PlexAPI sdk = PlexAPI.builder()
|
PlexAPI sdk = PlexAPI.builder()
|
||||||
.accessToken("<YOUR_API_KEY_HERE>")
|
.accessToken("<YOUR_API_KEY_HERE>")
|
||||||
.xPlexClientIdentifier("gcgzw5rz2xovp84b4vha3a40")
|
.clientID("gcgzw5rz2xovp84b4vha3a40")
|
||||||
|
.clientName("Plex Web")
|
||||||
|
.clientVersion("4.133.0")
|
||||||
|
.clientPlatform("Chrome")
|
||||||
|
.deviceName("Linux")
|
||||||
.build();
|
.build();
|
||||||
|
|
||||||
GetSessionsResponse res = sdk.sessions().getSessions()
|
GetSessionsResponse res = sdk.sessions().getSessions()
|
||||||
@@ -3007,7 +3269,11 @@ actions:
|
|||||||
try {
|
try {
|
||||||
PlexAPI sdk = PlexAPI.builder()
|
PlexAPI sdk = PlexAPI.builder()
|
||||||
.accessToken("<YOUR_API_KEY_HERE>")
|
.accessToken("<YOUR_API_KEY_HERE>")
|
||||||
.xPlexClientIdentifier("gcgzw5rz2xovp84b4vha3a40")
|
.clientID("gcgzw5rz2xovp84b4vha3a40")
|
||||||
|
.clientName("Plex Web")
|
||||||
|
.clientVersion("4.133.0")
|
||||||
|
.clientPlatform("Chrome")
|
||||||
|
.deviceName("Linux")
|
||||||
.build();
|
.build();
|
||||||
|
|
||||||
GetSessionHistoryResponse res = sdk.sessions().getSessionHistory()
|
GetSessionHistoryResponse res = sdk.sessions().getSessionHistory()
|
||||||
@@ -3056,7 +3322,11 @@ actions:
|
|||||||
try {
|
try {
|
||||||
PlexAPI sdk = PlexAPI.builder()
|
PlexAPI sdk = PlexAPI.builder()
|
||||||
.accessToken("<YOUR_API_KEY_HERE>")
|
.accessToken("<YOUR_API_KEY_HERE>")
|
||||||
.xPlexClientIdentifier("gcgzw5rz2xovp84b4vha3a40")
|
.clientID("gcgzw5rz2xovp84b4vha3a40")
|
||||||
|
.clientName("Plex Web")
|
||||||
|
.clientVersion("4.133.0")
|
||||||
|
.clientPlatform("Chrome")
|
||||||
|
.deviceName("Linux")
|
||||||
.build();
|
.build();
|
||||||
|
|
||||||
GetTranscodeSessionsResponse res = sdk.sessions().getTranscodeSessions()
|
GetTranscodeSessionsResponse res = sdk.sessions().getTranscodeSessions()
|
||||||
@@ -3100,7 +3370,11 @@ actions:
|
|||||||
try {
|
try {
|
||||||
PlexAPI sdk = PlexAPI.builder()
|
PlexAPI sdk = PlexAPI.builder()
|
||||||
.accessToken("<YOUR_API_KEY_HERE>")
|
.accessToken("<YOUR_API_KEY_HERE>")
|
||||||
.xPlexClientIdentifier("gcgzw5rz2xovp84b4vha3a40")
|
.clientID("gcgzw5rz2xovp84b4vha3a40")
|
||||||
|
.clientName("Plex Web")
|
||||||
|
.clientVersion("4.133.0")
|
||||||
|
.clientPlatform("Chrome")
|
||||||
|
.deviceName("Linux")
|
||||||
.build();
|
.build();
|
||||||
|
|
||||||
StopTranscodeSessionResponse res = sdk.sessions().stopTranscodeSession()
|
StopTranscodeSessionResponse res = sdk.sessions().stopTranscodeSession()
|
||||||
@@ -3145,7 +3419,11 @@ actions:
|
|||||||
try {
|
try {
|
||||||
PlexAPI sdk = PlexAPI.builder()
|
PlexAPI sdk = PlexAPI.builder()
|
||||||
.accessToken("<YOUR_API_KEY_HERE>")
|
.accessToken("<YOUR_API_KEY_HERE>")
|
||||||
.xPlexClientIdentifier("gcgzw5rz2xovp84b4vha3a40")
|
.clientID("gcgzw5rz2xovp84b4vha3a40")
|
||||||
|
.clientName("Plex Web")
|
||||||
|
.clientVersion("4.133.0")
|
||||||
|
.clientPlatform("Chrome")
|
||||||
|
.deviceName("Linux")
|
||||||
.build();
|
.build();
|
||||||
|
|
||||||
ApplyUpdatesResponse res = sdk.updater().applyUpdates()
|
ApplyUpdatesResponse res = sdk.updater().applyUpdates()
|
||||||
@@ -3190,7 +3468,11 @@ actions:
|
|||||||
try {
|
try {
|
||||||
PlexAPI sdk = PlexAPI.builder()
|
PlexAPI sdk = PlexAPI.builder()
|
||||||
.accessToken("<YOUR_API_KEY_HERE>")
|
.accessToken("<YOUR_API_KEY_HERE>")
|
||||||
.xPlexClientIdentifier("gcgzw5rz2xovp84b4vha3a40")
|
.clientID("gcgzw5rz2xovp84b4vha3a40")
|
||||||
|
.clientName("Plex Web")
|
||||||
|
.clientVersion("4.133.0")
|
||||||
|
.clientPlatform("Chrome")
|
||||||
|
.deviceName("Linux")
|
||||||
.build();
|
.build();
|
||||||
|
|
||||||
CheckForUpdatesResponse res = sdk.updater().checkForUpdates()
|
CheckForUpdatesResponse res = sdk.updater().checkForUpdates()
|
||||||
@@ -3233,7 +3515,11 @@ actions:
|
|||||||
try {
|
try {
|
||||||
PlexAPI sdk = PlexAPI.builder()
|
PlexAPI sdk = PlexAPI.builder()
|
||||||
.accessToken("<YOUR_API_KEY_HERE>")
|
.accessToken("<YOUR_API_KEY_HERE>")
|
||||||
.xPlexClientIdentifier("gcgzw5rz2xovp84b4vha3a40")
|
.clientID("gcgzw5rz2xovp84b4vha3a40")
|
||||||
|
.clientName("Plex Web")
|
||||||
|
.clientVersion("4.133.0")
|
||||||
|
.clientPlatform("Chrome")
|
||||||
|
.deviceName("Linux")
|
||||||
.build();
|
.build();
|
||||||
|
|
||||||
GetUpdateStatusResponse res = sdk.updater().getUpdateStatus()
|
GetUpdateStatusResponse res = sdk.updater().getUpdateStatus()
|
||||||
@@ -3277,7 +3563,11 @@ actions:
|
|||||||
try {
|
try {
|
||||||
PlexAPI sdk = PlexAPI.builder()
|
PlexAPI sdk = PlexAPI.builder()
|
||||||
.accessToken("<YOUR_API_KEY_HERE>")
|
.accessToken("<YOUR_API_KEY_HERE>")
|
||||||
.xPlexClientIdentifier("gcgzw5rz2xovp84b4vha3a40")
|
.clientID("gcgzw5rz2xovp84b4vha3a40")
|
||||||
|
.clientName("Plex Web")
|
||||||
|
.clientVersion("4.133.0")
|
||||||
|
.clientPlatform("Chrome")
|
||||||
|
.deviceName("Linux")
|
||||||
.build();
|
.build();
|
||||||
|
|
||||||
GetTokenDetailsResponse res = sdk.authentication().getTokenDetails()
|
GetTokenDetailsResponse res = sdk.authentication().getTokenDetails()
|
||||||
@@ -3321,11 +3611,15 @@ actions:
|
|||||||
public static void main(String[] args) throws Exception {
|
public static void main(String[] args) throws Exception {
|
||||||
try {
|
try {
|
||||||
PlexAPI sdk = PlexAPI.builder()
|
PlexAPI sdk = PlexAPI.builder()
|
||||||
.xPlexClientIdentifier("gcgzw5rz2xovp84b4vha3a40")
|
.clientID("gcgzw5rz2xovp84b4vha3a40")
|
||||||
|
.clientName("Plex Web")
|
||||||
|
.clientVersion("4.133.0")
|
||||||
|
.clientPlatform("Chrome")
|
||||||
|
.deviceName("Linux")
|
||||||
.build();
|
.build();
|
||||||
|
|
||||||
PostUsersSignInDataResponse res = sdk.authentication().postUsersSignInData()
|
PostUsersSignInDataResponse res = sdk.authentication().postUsersSignInData()
|
||||||
.xPlexClientIdentifier("gcgzw5rz2xovp84b4vha3a40")
|
.clientID("gcgzw5rz2xovp84b4vha3a40")
|
||||||
.requestBody(PostUsersSignInDataRequestBody.builder()
|
.requestBody(PostUsersSignInDataRequestBody.builder()
|
||||||
.login("username@email.com")
|
.login("username@email.com")
|
||||||
.password("password123")
|
.password("password123")
|
||||||
@@ -3372,7 +3666,11 @@ actions:
|
|||||||
try {
|
try {
|
||||||
PlexAPI sdk = PlexAPI.builder()
|
PlexAPI sdk = PlexAPI.builder()
|
||||||
.accessToken("<YOUR_API_KEY_HERE>")
|
.accessToken("<YOUR_API_KEY_HERE>")
|
||||||
.xPlexClientIdentifier("gcgzw5rz2xovp84b4vha3a40")
|
.clientID("gcgzw5rz2xovp84b4vha3a40")
|
||||||
|
.clientName("Plex Web")
|
||||||
|
.clientVersion("4.133.0")
|
||||||
|
.clientPlatform("Chrome")
|
||||||
|
.deviceName("Linux")
|
||||||
.build();
|
.build();
|
||||||
|
|
||||||
StartUniversalTranscodeRequest req = StartUniversalTranscodeRequest.builder()
|
StartUniversalTranscodeRequest req = StartUniversalTranscodeRequest.builder()
|
||||||
|
|||||||
@@ -13,7 +13,7 @@ Geo location data
|
|||||||
| `city` | *String* | :heavy_check_mark: | The name of the city. | Amsterdam |
|
| `city` | *String* | :heavy_check_mark: | The name of the city. | Amsterdam |
|
||||||
| `europeanUnionMember` | *Optional<Boolean>* | :heavy_minus_sign: | Indicates if the country is a member of the European Union. | true |
|
| `europeanUnionMember` | *Optional<Boolean>* | :heavy_minus_sign: | 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 |
|
| `timeZone` | *String* | :heavy_check_mark: | The time zone of the country. | America/St_Thomas |
|
||||||
| `postalCode` | *long* | :heavy_check_mark: | The postal code of the location. | 802 |
|
| `postalCode` | *String* | :heavy_check_mark: | The postal code of the location. | 802 |
|
||||||
| `inPrivacyRestrictedCountry` | *Optional<Boolean>* | :heavy_minus_sign: | Indicates if the country has privacy restrictions. | true |
|
| `inPrivacyRestrictedCountry` | *Optional<Boolean>* | :heavy_minus_sign: | Indicates if the country has privacy restrictions. | true |
|
||||||
| `inPrivacyRestrictedRegion` | *Optional<Boolean>* | :heavy_minus_sign: | Indicates if the region has privacy restrictions. | true |
|
| `inPrivacyRestrictedRegion` | *Optional<Boolean>* | :heavy_minus_sign: | Indicates if the region has privacy restrictions. | true |
|
||||||
| `subdivisions` | *String* | :heavy_check_mark: | The name of the primary administrative subdivision. | Saint Thomas |
|
| `subdivisions` | *String* | :heavy_check_mark: | The name of the primary administrative subdivision. | Saint Thomas |
|
||||||
|
|||||||
@@ -13,7 +13,7 @@ Geo location data
|
|||||||
| `city` | *String* | :heavy_check_mark: | The name of the city. | Amsterdam |
|
| `city` | *String* | :heavy_check_mark: | The name of the city. | Amsterdam |
|
||||||
| `europeanUnionMember` | *Optional<Boolean>* | :heavy_minus_sign: | Indicates if the country is a member of the European Union. | true |
|
| `europeanUnionMember` | *Optional<Boolean>* | :heavy_minus_sign: | 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 |
|
| `timeZone` | *String* | :heavy_check_mark: | The time zone of the country. | America/St_Thomas |
|
||||||
| `postalCode` | *long* | :heavy_check_mark: | The postal code of the location. | 802 |
|
| `postalCode` | *String* | :heavy_check_mark: | The postal code of the location. | 802 |
|
||||||
| `inPrivacyRestrictedCountry` | *Optional<Boolean>* | :heavy_minus_sign: | Indicates if the country has privacy restrictions. | true |
|
| `inPrivacyRestrictedCountry` | *Optional<Boolean>* | :heavy_minus_sign: | Indicates if the country has privacy restrictions. | true |
|
||||||
| `inPrivacyRestrictedRegion` | *Optional<Boolean>* | :heavy_minus_sign: | Indicates if the region has privacy restrictions. | true |
|
| `inPrivacyRestrictedRegion` | *Optional<Boolean>* | :heavy_minus_sign: | Indicates if the region has privacy restrictions. | true |
|
||||||
| `subdivisions` | *String* | :heavy_check_mark: | The name of the primary administrative subdivision. | Saint Thomas |
|
| `subdivisions` | *String* | :heavy_check_mark: | The name of the primary administrative subdivision. | Saint Thomas |
|
||||||
|
|||||||
@@ -9,13 +9,13 @@ Requests a new pin id used in the authentication flow
|
|||||||
| ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
|
| ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
|
||||||
| `id` | *long* | :heavy_check_mark: | N/A | 308667304 |
|
| `id` | *long* | :heavy_check_mark: | N/A | 308667304 |
|
||||||
| `code` | *String* | :heavy_check_mark: | N/A | 7RQZ |
|
| `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` | *Optional<Boolean>* | :heavy_minus_sign: | N/A | |
|
| `trusted` | *Optional<Boolean>* | :heavy_minus_sign: | N/A | |
|
||||||
| `qr` | *String* | :heavy_check_mark: | N/A | https://plex.tv/api/v2/pins/qr/7RQZ |
|
| `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` | [GeoData](../../models/operations/GeoData.md) | :heavy_check_mark: | Geo location data | {<br/>"code": "VI",<br/>"continent_code": "NA",<br/>"country": "United States Virgin Islands",<br/>"city": "Amsterdam",<br/>"european_union_member": true,<br/>"time_zone": "America/St_Thomas",<br/>"postal_code": 802,<br/>"in_privacy_restricted_country": true,<br/>"in_privacy_restricted_region": true,<br/>"subdivisions": "Saint Thomas",<br/>"coordinates": "18.3381, -64.8941"<br/>} |
|
| `location` | [GeoData](../../models/operations/GeoData.md) | :heavy_check_mark: | Geo location data | {<br/>"code": "VI",<br/>"continent_code": "NA",<br/>"country": "United States Virgin Islands",<br/>"city": "Amsterdam",<br/>"european_union_member": true,<br/>"time_zone": "America/St_Thomas",<br/>"postal_code": 802,<br/>"in_privacy_restricted_country": true,<br/>"in_privacy_restricted_region": true,<br/>"subdivisions": "Saint Thomas",<br/>"coordinates": "18.3381, -64.8941"<br/>} |
|
||||||
| `expiresIn` | *Optional<Long>* | :heavy_minus_sign: | The number of seconds this pin expires, by default 900 seconds | 876 |
|
| `expiresIn` | *Optional<Long>* | :heavy_minus_sign: | The number of seconds this pin expires, by default 900 seconds | 876 |
|
||||||
| `createdAt` | [OffsetDateTime](https://docs.oracle.com/javase/8/docs/api/java/time/OffsetDateTime.html) | :heavy_check_mark: | N/A | 2024-07-16T17:03:05Z |
|
| `createdAt` | [OffsetDateTime](https://docs.oracle.com/javase/8/docs/api/java/time/OffsetDateTime.html) | :heavy_check_mark: | N/A | 2024-07-16T17:03:05Z |
|
||||||
| `expiresAt` | [OffsetDateTime](https://docs.oracle.com/javase/8/docs/api/java/time/OffsetDateTime.html) | :heavy_check_mark: | N/A | 2024-07-16T17:18:05Z |
|
| `expiresAt` | [OffsetDateTime](https://docs.oracle.com/javase/8/docs/api/java/time/OffsetDateTime.html) | :heavy_check_mark: | N/A | 2024-07-16T17:18:05Z |
|
||||||
| `authToken` | *JsonNullable<Object>* | :heavy_minus_sign: | N/A | |
|
| `authToken` | *JsonNullable<String>* | :heavy_minus_sign: | N/A | gcgzw5rz2xovp84b4vha3a40 |
|
||||||
| `newRegistration` | *JsonNullable<Object>* | :heavy_minus_sign: | N/A | |
|
| `newRegistration` | *JsonNullable<Object>* | :heavy_minus_sign: | N/A | |
|
||||||
@@ -6,5 +6,8 @@
|
|||||||
| Field | Type | Required | Description | Example |
|
| Field | Type | Required | Description | Example |
|
||||||
| --------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
|
| --------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
|
||||||
| `strong` | *Optional<Boolean>* | :heavy_minus_sign: | Determines the kind of code returned by the API call<br/>Strong codes are used for Pin authentication flows<br/>Non-Strong codes are used for `Plex.tv/link`<br/> | |
|
| `strong` | *Optional<Boolean>* | :heavy_minus_sign: | Determines the kind of code returned by the API call<br/>Strong codes are used for Pin authentication flows<br/>Non-Strong codes are used for `Plex.tv/link`<br/> | |
|
||||||
| `xPlexClientIdentifier` | *Optional<String>* | :heavy_minus_sign: | The unique identifier for the client application<br/>This is used to track the client application and its usage<br/>(UUID, serial number, or other number unique per device)<br/> | gcgzw5rz2xovp84b4vha3a40 |
|
| `clientID` | *Optional<String>* | :heavy_minus_sign: | The unique identifier for the client application<br/>This is used to track the client application and its usage<br/>(UUID, serial number, or other number unique per device)<br/> | gcgzw5rz2xovp84b4vha3a40 |
|
||||||
| `xPlexProduct` | *Optional<String>* | :heavy_minus_sign: | N/A | Plex Web |
|
| `clientName` | *Optional<String>* | :heavy_minus_sign: | N/A | Plex Web |
|
||||||
|
| `deviceName` | *Optional<String>* | :heavy_minus_sign: | N/A | Linux |
|
||||||
|
| `clientVersion` | *Optional<String>* | :heavy_minus_sign: | N/A | 4.133.0 |
|
||||||
|
| `clientPlatform` | *Optional<String>* | :heavy_minus_sign: | N/A | Chrome |
|
||||||
@@ -5,7 +5,7 @@
|
|||||||
|
|
||||||
| Field | Type | Required | Description | Example |
|
| Field | Type | Required | Description | Example |
|
||||||
| --------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
|
| --------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
|
||||||
| `xPlexClientIdentifier` | *Optional<String>* | :heavy_minus_sign: | The unique identifier for the client application<br/>This is used to track the client application and its usage<br/>(UUID, serial number, or other number unique per device)<br/> | gcgzw5rz2xovp84b4vha3a40 |
|
| `clientID` | *Optional<String>* | :heavy_minus_sign: | The unique identifier for the client application<br/>This is used to track the client application and its usage<br/>(UUID, serial number, or other number unique per device)<br/> | gcgzw5rz2xovp84b4vha3a40 |
|
||||||
| `includeHttps` | [Optional<IncludeHttps>](../../models/operations/IncludeHttps.md) | :heavy_minus_sign: | Include Https entries in the results | 1 |
|
| `includeHttps` | [Optional<IncludeHttps>](../../models/operations/IncludeHttps.md) | :heavy_minus_sign: | Include Https entries in the results | 1 |
|
||||||
| `includeRelay` | [Optional<IncludeRelay>](../../models/operations/IncludeRelay.md) | :heavy_minus_sign: | Include Relay addresses in the results <br/>E.g: https://10-0-0-25.bbf8e10c7fa20447cacee74cd9914cde.plex.direct:32400<br/> | 1 |
|
| `includeRelay` | [Optional<IncludeRelay>](../../models/operations/IncludeRelay.md) | :heavy_minus_sign: | Include Relay addresses in the results <br/>E.g: https://10-0-0-25.bbf8e10c7fa20447cacee74cd9914cde.plex.direct:32400<br/> | 1 |
|
||||||
| `includeIPv6` | [Optional<IncludeIPv6>](../../models/operations/IncludeIPv6.md) | :heavy_minus_sign: | Include IPv6 entries in the results | 1 |
|
| `includeIPv6` | [Optional<IncludeIPv6>](../../models/operations/IncludeIPv6.md) | :heavy_minus_sign: | Include IPv6 entries in the results | 1 |
|
||||||
@@ -9,13 +9,13 @@ The Pin with a non-null authToken when it has been verified by the user
|
|||||||
| ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
|
| ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
|
||||||
| `id` | *long* | :heavy_check_mark: | N/A | 308667304 |
|
| `id` | *long* | :heavy_check_mark: | N/A | 308667304 |
|
||||||
| `code` | *String* | :heavy_check_mark: | N/A | 7RQZ |
|
| `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` | *Optional<Boolean>* | :heavy_minus_sign: | N/A | |
|
| `trusted` | *Optional<Boolean>* | :heavy_minus_sign: | N/A | |
|
||||||
| `qr` | *String* | :heavy_check_mark: | N/A | https://plex.tv/api/v2/pins/qr/7RQZ |
|
| `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` | [GetTokenByPinIdGeoData](../../models/operations/GetTokenByPinIdGeoData.md) | :heavy_check_mark: | Geo location data | {<br/>"code": "VI",<br/>"continent_code": "NA",<br/>"country": "United States Virgin Islands",<br/>"city": "Amsterdam",<br/>"european_union_member": true,<br/>"time_zone": "America/St_Thomas",<br/>"postal_code": 802,<br/>"in_privacy_restricted_country": true,<br/>"in_privacy_restricted_region": true,<br/>"subdivisions": "Saint Thomas",<br/>"coordinates": "18.3381, -64.8941"<br/>} |
|
| `location` | [GetTokenByPinIdGeoData](../../models/operations/GetTokenByPinIdGeoData.md) | :heavy_check_mark: | Geo location data | {<br/>"code": "VI",<br/>"continent_code": "NA",<br/>"country": "United States Virgin Islands",<br/>"city": "Amsterdam",<br/>"european_union_member": true,<br/>"time_zone": "America/St_Thomas",<br/>"postal_code": 802,<br/>"in_privacy_restricted_country": true,<br/>"in_privacy_restricted_region": true,<br/>"subdivisions": "Saint Thomas",<br/>"coordinates": "18.3381, -64.8941"<br/>} |
|
||||||
| `expiresIn` | *Optional<Long>* | :heavy_minus_sign: | The number of seconds this pin expires, by default 900 seconds | 876 |
|
| `expiresIn` | *Optional<Long>* | :heavy_minus_sign: | The number of seconds this pin expires, by default 900 seconds | 876 |
|
||||||
| `createdAt` | [OffsetDateTime](https://docs.oracle.com/javase/8/docs/api/java/time/OffsetDateTime.html) | :heavy_check_mark: | N/A | 2024-07-16T17:03:05Z |
|
| `createdAt` | [OffsetDateTime](https://docs.oracle.com/javase/8/docs/api/java/time/OffsetDateTime.html) | :heavy_check_mark: | N/A | 2024-07-16T17:03:05Z |
|
||||||
| `expiresAt` | [OffsetDateTime](https://docs.oracle.com/javase/8/docs/api/java/time/OffsetDateTime.html) | :heavy_check_mark: | N/A | 2024-07-16T17:18:05Z |
|
| `expiresAt` | [OffsetDateTime](https://docs.oracle.com/javase/8/docs/api/java/time/OffsetDateTime.html) | :heavy_check_mark: | N/A | 2024-07-16T17:18:05Z |
|
||||||
| `authToken` | *JsonNullable<Object>* | :heavy_minus_sign: | N/A | |
|
| `authToken` | *JsonNullable<String>* | :heavy_minus_sign: | N/A | gcgzw5rz2xovp84b4vha3a40 |
|
||||||
| `newRegistration` | *JsonNullable<Object>* | :heavy_minus_sign: | N/A | |
|
| `newRegistration` | *JsonNullable<Object>* | :heavy_minus_sign: | N/A | |
|
||||||
@@ -13,7 +13,7 @@ Geo location data
|
|||||||
| `city` | *String* | :heavy_check_mark: | The name of the city. | Amsterdam |
|
| `city` | *String* | :heavy_check_mark: | The name of the city. | Amsterdam |
|
||||||
| `europeanUnionMember` | *Optional<Boolean>* | :heavy_minus_sign: | Indicates if the country is a member of the European Union. | true |
|
| `europeanUnionMember` | *Optional<Boolean>* | :heavy_minus_sign: | 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 |
|
| `timeZone` | *String* | :heavy_check_mark: | The time zone of the country. | America/St_Thomas |
|
||||||
| `postalCode` | *long* | :heavy_check_mark: | The postal code of the location. | 802 |
|
| `postalCode` | *String* | :heavy_check_mark: | The postal code of the location. | 802 |
|
||||||
| `inPrivacyRestrictedCountry` | *Optional<Boolean>* | :heavy_minus_sign: | Indicates if the country has privacy restrictions. | true |
|
| `inPrivacyRestrictedCountry` | *Optional<Boolean>* | :heavy_minus_sign: | Indicates if the country has privacy restrictions. | true |
|
||||||
| `inPrivacyRestrictedRegion` | *Optional<Boolean>* | :heavy_minus_sign: | Indicates if the region has privacy restrictions. | true |
|
| `inPrivacyRestrictedRegion` | *Optional<Boolean>* | :heavy_minus_sign: | Indicates if the region has privacy restrictions. | true |
|
||||||
| `subdivisions` | *String* | :heavy_check_mark: | The name of the primary administrative subdivision. | Saint Thomas |
|
| `subdivisions` | *String* | :heavy_check_mark: | The name of the primary administrative subdivision. | Saint Thomas |
|
||||||
|
|||||||
@@ -5,5 +5,5 @@
|
|||||||
|
|
||||||
| Field | Type | Required | Description | Example |
|
| Field | Type | Required | Description | Example |
|
||||||
| --------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
|
| --------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
|
||||||
| `xPlexClientIdentifier` | *Optional<String>* | :heavy_minus_sign: | The unique identifier for the client application<br/>This is used to track the client application and its usage<br/>(UUID, serial number, or other number unique per device)<br/> | gcgzw5rz2xovp84b4vha3a40 |
|
| `clientID` | *Optional<String>* | :heavy_minus_sign: | The unique identifier for the client application<br/>This is used to track the client application and its usage<br/>(UUID, serial number, or other number unique per device)<br/> | gcgzw5rz2xovp84b4vha3a40 |
|
||||||
| `pinID` | *long* | :heavy_check_mark: | The PinID to retrieve an access token for | |
|
| `pinID` | *long* | :heavy_check_mark: | The PinID to retrieve an access token for | |
|
||||||
@@ -5,5 +5,5 @@
|
|||||||
|
|
||||||
| Field | Type | Required | Description | Example |
|
| Field | Type | Required | Description | Example |
|
||||||
| --------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
|
| --------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
|
||||||
| `xPlexClientIdentifier` | *Optional<String>* | :heavy_minus_sign: | The unique identifier for the client application<br/>This is used to track the client application and its usage<br/>(UUID, serial number, or other number unique per device)<br/> | gcgzw5rz2xovp84b4vha3a40 |
|
| `clientID` | *Optional<String>* | :heavy_minus_sign: | The unique identifier for the client application<br/>This is used to track the client application and its usage<br/>(UUID, serial number, or other number unique per device)<br/> | gcgzw5rz2xovp84b4vha3a40 |
|
||||||
| `requestBody` | [Optional<PostUsersSignInDataRequestBody>](../../models/operations/PostUsersSignInDataRequestBody.md) | :heavy_minus_sign: | Login credentials | |
|
| `requestBody` | [Optional<PostUsersSignInDataRequestBody>](../../models/operations/PostUsersSignInDataRequestBody.md) | :heavy_minus_sign: | Login credentials | |
|
||||||
@@ -37,7 +37,11 @@ public class Application {
|
|||||||
try {
|
try {
|
||||||
PlexAPI sdk = PlexAPI.builder()
|
PlexAPI sdk = PlexAPI.builder()
|
||||||
.accessToken("<YOUR_API_KEY_HERE>")
|
.accessToken("<YOUR_API_KEY_HERE>")
|
||||||
.xPlexClientIdentifier("gcgzw5rz2xovp84b4vha3a40")
|
.clientID("gcgzw5rz2xovp84b4vha3a40")
|
||||||
|
.clientName("Plex Web")
|
||||||
|
.clientVersion("4.133.0")
|
||||||
|
.clientPlatform("Chrome")
|
||||||
|
.deviceName("Linux")
|
||||||
.build();
|
.build();
|
||||||
|
|
||||||
GetServerActivitiesResponse res = sdk.activities().getServerActivities()
|
GetServerActivitiesResponse res = sdk.activities().getServerActivities()
|
||||||
@@ -97,7 +101,11 @@ public class Application {
|
|||||||
try {
|
try {
|
||||||
PlexAPI sdk = PlexAPI.builder()
|
PlexAPI sdk = PlexAPI.builder()
|
||||||
.accessToken("<YOUR_API_KEY_HERE>")
|
.accessToken("<YOUR_API_KEY_HERE>")
|
||||||
.xPlexClientIdentifier("gcgzw5rz2xovp84b4vha3a40")
|
.clientID("gcgzw5rz2xovp84b4vha3a40")
|
||||||
|
.clientName("Plex Web")
|
||||||
|
.clientVersion("4.133.0")
|
||||||
|
.clientPlatform("Chrome")
|
||||||
|
.deviceName("Linux")
|
||||||
.build();
|
.build();
|
||||||
|
|
||||||
CancelServerActivitiesResponse res = sdk.activities().cancelServerActivities()
|
CancelServerActivitiesResponse res = sdk.activities().cancelServerActivities()
|
||||||
|
|||||||
@@ -36,7 +36,11 @@ public class Application {
|
|||||||
try {
|
try {
|
||||||
PlexAPI sdk = PlexAPI.builder()
|
PlexAPI sdk = PlexAPI.builder()
|
||||||
.accessToken("<YOUR_API_KEY_HERE>")
|
.accessToken("<YOUR_API_KEY_HERE>")
|
||||||
.xPlexClientIdentifier("gcgzw5rz2xovp84b4vha3a40")
|
.clientID("gcgzw5rz2xovp84b4vha3a40")
|
||||||
|
.clientName("Plex Web")
|
||||||
|
.clientVersion("4.133.0")
|
||||||
|
.clientPlatform("Chrome")
|
||||||
|
.deviceName("Linux")
|
||||||
.build();
|
.build();
|
||||||
|
|
||||||
GetTransientTokenResponse res = sdk.authentication().getTransientToken()
|
GetTransientTokenResponse res = sdk.authentication().getTransientToken()
|
||||||
@@ -105,7 +109,11 @@ public class Application {
|
|||||||
try {
|
try {
|
||||||
PlexAPI sdk = PlexAPI.builder()
|
PlexAPI sdk = PlexAPI.builder()
|
||||||
.accessToken("<YOUR_API_KEY_HERE>")
|
.accessToken("<YOUR_API_KEY_HERE>")
|
||||||
.xPlexClientIdentifier("gcgzw5rz2xovp84b4vha3a40")
|
.clientID("gcgzw5rz2xovp84b4vha3a40")
|
||||||
|
.clientName("Plex Web")
|
||||||
|
.clientVersion("4.133.0")
|
||||||
|
.clientPlatform("Chrome")
|
||||||
|
.deviceName("Linux")
|
||||||
.build();
|
.build();
|
||||||
|
|
||||||
GetSourceConnectionInformationResponse res = sdk.authentication().getSourceConnectionInformation()
|
GetSourceConnectionInformationResponse res = sdk.authentication().getSourceConnectionInformation()
|
||||||
@@ -170,7 +178,11 @@ public class Application {
|
|||||||
try {
|
try {
|
||||||
PlexAPI sdk = PlexAPI.builder()
|
PlexAPI sdk = PlexAPI.builder()
|
||||||
.accessToken("<YOUR_API_KEY_HERE>")
|
.accessToken("<YOUR_API_KEY_HERE>")
|
||||||
.xPlexClientIdentifier("gcgzw5rz2xovp84b4vha3a40")
|
.clientID("gcgzw5rz2xovp84b4vha3a40")
|
||||||
|
.clientName("Plex Web")
|
||||||
|
.clientVersion("4.133.0")
|
||||||
|
.clientPlatform("Chrome")
|
||||||
|
.deviceName("Linux")
|
||||||
.build();
|
.build();
|
||||||
|
|
||||||
GetTokenDetailsResponse res = sdk.authentication().getTokenDetails()
|
GetTokenDetailsResponse res = sdk.authentication().getTokenDetails()
|
||||||
@@ -236,11 +248,15 @@ public class Application {
|
|||||||
public static void main(String[] args) throws Exception {
|
public static void main(String[] args) throws Exception {
|
||||||
try {
|
try {
|
||||||
PlexAPI sdk = PlexAPI.builder()
|
PlexAPI sdk = PlexAPI.builder()
|
||||||
.xPlexClientIdentifier("gcgzw5rz2xovp84b4vha3a40")
|
.clientID("gcgzw5rz2xovp84b4vha3a40")
|
||||||
|
.clientName("Plex Web")
|
||||||
|
.clientVersion("4.133.0")
|
||||||
|
.clientPlatform("Chrome")
|
||||||
|
.deviceName("Linux")
|
||||||
.build();
|
.build();
|
||||||
|
|
||||||
PostUsersSignInDataResponse res = sdk.authentication().postUsersSignInData()
|
PostUsersSignInDataResponse res = sdk.authentication().postUsersSignInData()
|
||||||
.xPlexClientIdentifier("gcgzw5rz2xovp84b4vha3a40")
|
.clientID("gcgzw5rz2xovp84b4vha3a40")
|
||||||
.requestBody(PostUsersSignInDataRequestBody.builder()
|
.requestBody(PostUsersSignInDataRequestBody.builder()
|
||||||
.login("username@email.com")
|
.login("username@email.com")
|
||||||
.password("password123")
|
.password("password123")
|
||||||
@@ -273,7 +289,7 @@ public class Application {
|
|||||||
|
|
||||||
| Parameter | Type | Required | Description | Example |
|
| Parameter | Type | Required | Description | Example |
|
||||||
| --------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
|
| --------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
|
||||||
| `xPlexClientIdentifier` | *Optional<String>* | :heavy_minus_sign: | The unique identifier for the client application<br/>This is used to track the client application and its usage<br/>(UUID, serial number, or other number unique per device)<br/> | gcgzw5rz2xovp84b4vha3a40 |
|
| `clientID` | *Optional<String>* | :heavy_minus_sign: | The unique identifier for the client application<br/>This is used to track the client application and its usage<br/>(UUID, serial number, or other number unique per device)<br/> | gcgzw5rz2xovp84b4vha3a40 |
|
||||||
| `requestBody` | [Optional<PostUsersSignInDataRequestBody>](../../models/operations/PostUsersSignInDataRequestBody.md) | :heavy_minus_sign: | Login credentials | |
|
| `requestBody` | [Optional<PostUsersSignInDataRequestBody>](../../models/operations/PostUsersSignInDataRequestBody.md) | :heavy_minus_sign: | Login credentials | |
|
||||||
| `serverURL` | *String* | :heavy_minus_sign: | An optional server URL to use. | http://localhost:8080 |
|
| `serverURL` | *String* | :heavy_minus_sign: | An optional server URL to use. | http://localhost:8080 |
|
||||||
|
|
||||||
|
|||||||
@@ -34,7 +34,11 @@ public class Application {
|
|||||||
try {
|
try {
|
||||||
PlexAPI sdk = PlexAPI.builder()
|
PlexAPI sdk = PlexAPI.builder()
|
||||||
.accessToken("<YOUR_API_KEY_HERE>")
|
.accessToken("<YOUR_API_KEY_HERE>")
|
||||||
.xPlexClientIdentifier("gcgzw5rz2xovp84b4vha3a40")
|
.clientID("gcgzw5rz2xovp84b4vha3a40")
|
||||||
|
.clientName("Plex Web")
|
||||||
|
.clientVersion("4.133.0")
|
||||||
|
.clientPlatform("Chrome")
|
||||||
|
.deviceName("Linux")
|
||||||
.build();
|
.build();
|
||||||
|
|
||||||
GetButlerTasksResponse res = sdk.butler().getButlerTasks()
|
GetButlerTasksResponse res = sdk.butler().getButlerTasks()
|
||||||
@@ -99,7 +103,11 @@ public class Application {
|
|||||||
try {
|
try {
|
||||||
PlexAPI sdk = PlexAPI.builder()
|
PlexAPI sdk = PlexAPI.builder()
|
||||||
.accessToken("<YOUR_API_KEY_HERE>")
|
.accessToken("<YOUR_API_KEY_HERE>")
|
||||||
.xPlexClientIdentifier("gcgzw5rz2xovp84b4vha3a40")
|
.clientID("gcgzw5rz2xovp84b4vha3a40")
|
||||||
|
.clientName("Plex Web")
|
||||||
|
.clientVersion("4.133.0")
|
||||||
|
.clientPlatform("Chrome")
|
||||||
|
.deviceName("Linux")
|
||||||
.build();
|
.build();
|
||||||
|
|
||||||
StartAllTasksResponse res = sdk.butler().startAllTasks()
|
StartAllTasksResponse res = sdk.butler().startAllTasks()
|
||||||
@@ -158,7 +166,11 @@ public class Application {
|
|||||||
try {
|
try {
|
||||||
PlexAPI sdk = PlexAPI.builder()
|
PlexAPI sdk = PlexAPI.builder()
|
||||||
.accessToken("<YOUR_API_KEY_HERE>")
|
.accessToken("<YOUR_API_KEY_HERE>")
|
||||||
.xPlexClientIdentifier("gcgzw5rz2xovp84b4vha3a40")
|
.clientID("gcgzw5rz2xovp84b4vha3a40")
|
||||||
|
.clientName("Plex Web")
|
||||||
|
.clientVersion("4.133.0")
|
||||||
|
.clientPlatform("Chrome")
|
||||||
|
.deviceName("Linux")
|
||||||
.build();
|
.build();
|
||||||
|
|
||||||
StopAllTasksResponse res = sdk.butler().stopAllTasks()
|
StopAllTasksResponse res = sdk.butler().stopAllTasks()
|
||||||
@@ -222,7 +234,11 @@ public class Application {
|
|||||||
try {
|
try {
|
||||||
PlexAPI sdk = PlexAPI.builder()
|
PlexAPI sdk = PlexAPI.builder()
|
||||||
.accessToken("<YOUR_API_KEY_HERE>")
|
.accessToken("<YOUR_API_KEY_HERE>")
|
||||||
.xPlexClientIdentifier("gcgzw5rz2xovp84b4vha3a40")
|
.clientID("gcgzw5rz2xovp84b4vha3a40")
|
||||||
|
.clientName("Plex Web")
|
||||||
|
.clientVersion("4.133.0")
|
||||||
|
.clientPlatform("Chrome")
|
||||||
|
.deviceName("Linux")
|
||||||
.build();
|
.build();
|
||||||
|
|
||||||
StartTaskResponse res = sdk.butler().startTask()
|
StartTaskResponse res = sdk.butler().startTask()
|
||||||
@@ -289,7 +305,11 @@ public class Application {
|
|||||||
try {
|
try {
|
||||||
PlexAPI sdk = PlexAPI.builder()
|
PlexAPI sdk = PlexAPI.builder()
|
||||||
.accessToken("<YOUR_API_KEY_HERE>")
|
.accessToken("<YOUR_API_KEY_HERE>")
|
||||||
.xPlexClientIdentifier("gcgzw5rz2xovp84b4vha3a40")
|
.clientID("gcgzw5rz2xovp84b4vha3a40")
|
||||||
|
.clientName("Plex Web")
|
||||||
|
.clientVersion("4.133.0")
|
||||||
|
.clientPlatform("Chrome")
|
||||||
|
.deviceName("Linux")
|
||||||
.build();
|
.build();
|
||||||
|
|
||||||
StopTaskResponse res = sdk.butler().stopTask()
|
StopTaskResponse res = sdk.butler().stopTask()
|
||||||
|
|||||||
@@ -32,7 +32,11 @@ public class Application {
|
|||||||
try {
|
try {
|
||||||
PlexAPI sdk = PlexAPI.builder()
|
PlexAPI sdk = PlexAPI.builder()
|
||||||
.accessToken("<YOUR_API_KEY_HERE>")
|
.accessToken("<YOUR_API_KEY_HERE>")
|
||||||
.xPlexClientIdentifier("gcgzw5rz2xovp84b4vha3a40")
|
.clientID("gcgzw5rz2xovp84b4vha3a40")
|
||||||
|
.clientName("Plex Web")
|
||||||
|
.clientVersion("4.133.0")
|
||||||
|
.clientPlatform("Chrome")
|
||||||
|
.deviceName("Linux")
|
||||||
.build();
|
.build();
|
||||||
|
|
||||||
GetGlobalHubsResponse res = sdk.hubs().getGlobalHubs()
|
GetGlobalHubsResponse res = sdk.hubs().getGlobalHubs()
|
||||||
@@ -103,7 +107,11 @@ public class Application {
|
|||||||
try {
|
try {
|
||||||
PlexAPI sdk = PlexAPI.builder()
|
PlexAPI sdk = PlexAPI.builder()
|
||||||
.accessToken("<YOUR_API_KEY_HERE>")
|
.accessToken("<YOUR_API_KEY_HERE>")
|
||||||
.xPlexClientIdentifier("gcgzw5rz2xovp84b4vha3a40")
|
.clientID("gcgzw5rz2xovp84b4vha3a40")
|
||||||
|
.clientName("Plex Web")
|
||||||
|
.clientVersion("4.133.0")
|
||||||
|
.clientPlatform("Chrome")
|
||||||
|
.deviceName("Linux")
|
||||||
.build();
|
.build();
|
||||||
|
|
||||||
GetLibraryHubsResponse res = sdk.hubs().getLibraryHubs()
|
GetLibraryHubsResponse res = sdk.hubs().getLibraryHubs()
|
||||||
|
|||||||
@@ -41,7 +41,11 @@ public class Application {
|
|||||||
try {
|
try {
|
||||||
PlexAPI sdk = PlexAPI.builder()
|
PlexAPI sdk = PlexAPI.builder()
|
||||||
.accessToken("<YOUR_API_KEY_HERE>")
|
.accessToken("<YOUR_API_KEY_HERE>")
|
||||||
.xPlexClientIdentifier("gcgzw5rz2xovp84b4vha3a40")
|
.clientID("gcgzw5rz2xovp84b4vha3a40")
|
||||||
|
.clientName("Plex Web")
|
||||||
|
.clientVersion("4.133.0")
|
||||||
|
.clientPlatform("Chrome")
|
||||||
|
.deviceName("Linux")
|
||||||
.build();
|
.build();
|
||||||
|
|
||||||
GetFileHashResponse res = sdk.library().getFileHash()
|
GetFileHashResponse res = sdk.library().getFileHash()
|
||||||
@@ -109,7 +113,11 @@ public class Application {
|
|||||||
try {
|
try {
|
||||||
PlexAPI sdk = PlexAPI.builder()
|
PlexAPI sdk = PlexAPI.builder()
|
||||||
.accessToken("<YOUR_API_KEY_HERE>")
|
.accessToken("<YOUR_API_KEY_HERE>")
|
||||||
.xPlexClientIdentifier("gcgzw5rz2xovp84b4vha3a40")
|
.clientID("gcgzw5rz2xovp84b4vha3a40")
|
||||||
|
.clientName("Plex Web")
|
||||||
|
.clientVersion("4.133.0")
|
||||||
|
.clientPlatform("Chrome")
|
||||||
|
.deviceName("Linux")
|
||||||
.build();
|
.build();
|
||||||
|
|
||||||
GetRecentlyAddedResponse res = sdk.library().getRecentlyAdded()
|
GetRecentlyAddedResponse res = sdk.library().getRecentlyAdded()
|
||||||
@@ -184,7 +192,11 @@ public class Application {
|
|||||||
try {
|
try {
|
||||||
PlexAPI sdk = PlexAPI.builder()
|
PlexAPI sdk = PlexAPI.builder()
|
||||||
.accessToken("<YOUR_API_KEY_HERE>")
|
.accessToken("<YOUR_API_KEY_HERE>")
|
||||||
.xPlexClientIdentifier("gcgzw5rz2xovp84b4vha3a40")
|
.clientID("gcgzw5rz2xovp84b4vha3a40")
|
||||||
|
.clientName("Plex Web")
|
||||||
|
.clientVersion("4.133.0")
|
||||||
|
.clientPlatform("Chrome")
|
||||||
|
.deviceName("Linux")
|
||||||
.build();
|
.build();
|
||||||
|
|
||||||
GetAllLibrariesResponse res = sdk.library().getAllLibraries()
|
GetAllLibrariesResponse res = sdk.library().getAllLibraries()
|
||||||
@@ -284,7 +296,11 @@ public class Application {
|
|||||||
try {
|
try {
|
||||||
PlexAPI sdk = PlexAPI.builder()
|
PlexAPI sdk = PlexAPI.builder()
|
||||||
.accessToken("<YOUR_API_KEY_HERE>")
|
.accessToken("<YOUR_API_KEY_HERE>")
|
||||||
.xPlexClientIdentifier("gcgzw5rz2xovp84b4vha3a40")
|
.clientID("gcgzw5rz2xovp84b4vha3a40")
|
||||||
|
.clientName("Plex Web")
|
||||||
|
.clientVersion("4.133.0")
|
||||||
|
.clientPlatform("Chrome")
|
||||||
|
.deviceName("Linux")
|
||||||
.build();
|
.build();
|
||||||
|
|
||||||
GetLibraryDetailsResponse res = sdk.library().getLibraryDetails()
|
GetLibraryDetailsResponse res = sdk.library().getLibraryDetails()
|
||||||
@@ -353,7 +369,11 @@ public class Application {
|
|||||||
try {
|
try {
|
||||||
PlexAPI sdk = PlexAPI.builder()
|
PlexAPI sdk = PlexAPI.builder()
|
||||||
.accessToken("<YOUR_API_KEY_HERE>")
|
.accessToken("<YOUR_API_KEY_HERE>")
|
||||||
.xPlexClientIdentifier("gcgzw5rz2xovp84b4vha3a40")
|
.clientID("gcgzw5rz2xovp84b4vha3a40")
|
||||||
|
.clientName("Plex Web")
|
||||||
|
.clientVersion("4.133.0")
|
||||||
|
.clientPlatform("Chrome")
|
||||||
|
.deviceName("Linux")
|
||||||
.build();
|
.build();
|
||||||
|
|
||||||
DeleteLibraryResponse res = sdk.library().deleteLibrary()
|
DeleteLibraryResponse res = sdk.library().deleteLibrary()
|
||||||
@@ -443,7 +463,11 @@ public class Application {
|
|||||||
try {
|
try {
|
||||||
PlexAPI sdk = PlexAPI.builder()
|
PlexAPI sdk = PlexAPI.builder()
|
||||||
.accessToken("<YOUR_API_KEY_HERE>")
|
.accessToken("<YOUR_API_KEY_HERE>")
|
||||||
.xPlexClientIdentifier("gcgzw5rz2xovp84b4vha3a40")
|
.clientID("gcgzw5rz2xovp84b4vha3a40")
|
||||||
|
.clientName("Plex Web")
|
||||||
|
.clientVersion("4.133.0")
|
||||||
|
.clientPlatform("Chrome")
|
||||||
|
.deviceName("Linux")
|
||||||
.build();
|
.build();
|
||||||
|
|
||||||
GetLibraryItemsRequest req = GetLibraryItemsRequest.builder()
|
GetLibraryItemsRequest req = GetLibraryItemsRequest.builder()
|
||||||
@@ -522,7 +546,11 @@ public class Application {
|
|||||||
try {
|
try {
|
||||||
PlexAPI sdk = PlexAPI.builder()
|
PlexAPI sdk = PlexAPI.builder()
|
||||||
.accessToken("<YOUR_API_KEY_HERE>")
|
.accessToken("<YOUR_API_KEY_HERE>")
|
||||||
.xPlexClientIdentifier("gcgzw5rz2xovp84b4vha3a40")
|
.clientID("gcgzw5rz2xovp84b4vha3a40")
|
||||||
|
.clientName("Plex Web")
|
||||||
|
.clientVersion("4.133.0")
|
||||||
|
.clientPlatform("Chrome")
|
||||||
|
.deviceName("Linux")
|
||||||
.build();
|
.build();
|
||||||
|
|
||||||
GetRefreshLibraryMetadataResponse res = sdk.library().getRefreshLibraryMetadata()
|
GetRefreshLibraryMetadataResponse res = sdk.library().getRefreshLibraryMetadata()
|
||||||
@@ -608,7 +636,11 @@ public class Application {
|
|||||||
try {
|
try {
|
||||||
PlexAPI sdk = PlexAPI.builder()
|
PlexAPI sdk = PlexAPI.builder()
|
||||||
.accessToken("<YOUR_API_KEY_HERE>")
|
.accessToken("<YOUR_API_KEY_HERE>")
|
||||||
.xPlexClientIdentifier("gcgzw5rz2xovp84b4vha3a40")
|
.clientID("gcgzw5rz2xovp84b4vha3a40")
|
||||||
|
.clientName("Plex Web")
|
||||||
|
.clientVersion("4.133.0")
|
||||||
|
.clientPlatform("Chrome")
|
||||||
|
.deviceName("Linux")
|
||||||
.build();
|
.build();
|
||||||
|
|
||||||
GetSearchLibraryResponse res = sdk.library().getSearchLibrary()
|
GetSearchLibraryResponse res = sdk.library().getSearchLibrary()
|
||||||
@@ -678,7 +710,11 @@ public class Application {
|
|||||||
try {
|
try {
|
||||||
PlexAPI sdk = PlexAPI.builder()
|
PlexAPI sdk = PlexAPI.builder()
|
||||||
.accessToken("<YOUR_API_KEY_HERE>")
|
.accessToken("<YOUR_API_KEY_HERE>")
|
||||||
.xPlexClientIdentifier("gcgzw5rz2xovp84b4vha3a40")
|
.clientID("gcgzw5rz2xovp84b4vha3a40")
|
||||||
|
.clientName("Plex Web")
|
||||||
|
.clientVersion("4.133.0")
|
||||||
|
.clientPlatform("Chrome")
|
||||||
|
.deviceName("Linux")
|
||||||
.build();
|
.build();
|
||||||
|
|
||||||
GetMetaDataByRatingKeyResponse res = sdk.library().getMetaDataByRatingKey()
|
GetMetaDataByRatingKeyResponse res = sdk.library().getMetaDataByRatingKey()
|
||||||
@@ -746,7 +782,11 @@ public class Application {
|
|||||||
try {
|
try {
|
||||||
PlexAPI sdk = PlexAPI.builder()
|
PlexAPI sdk = PlexAPI.builder()
|
||||||
.accessToken("<YOUR_API_KEY_HERE>")
|
.accessToken("<YOUR_API_KEY_HERE>")
|
||||||
.xPlexClientIdentifier("gcgzw5rz2xovp84b4vha3a40")
|
.clientID("gcgzw5rz2xovp84b4vha3a40")
|
||||||
|
.clientName("Plex Web")
|
||||||
|
.clientVersion("4.133.0")
|
||||||
|
.clientPlatform("Chrome")
|
||||||
|
.deviceName("Linux")
|
||||||
.build();
|
.build();
|
||||||
|
|
||||||
GetMetadataChildrenResponse res = sdk.library().getMetadataChildren()
|
GetMetadataChildrenResponse res = sdk.library().getMetadataChildren()
|
||||||
@@ -817,7 +857,11 @@ public class Application {
|
|||||||
try {
|
try {
|
||||||
PlexAPI sdk = PlexAPI.builder()
|
PlexAPI sdk = PlexAPI.builder()
|
||||||
.accessToken("<YOUR_API_KEY_HERE>")
|
.accessToken("<YOUR_API_KEY_HERE>")
|
||||||
.xPlexClientIdentifier("gcgzw5rz2xovp84b4vha3a40")
|
.clientID("gcgzw5rz2xovp84b4vha3a40")
|
||||||
|
.clientName("Plex Web")
|
||||||
|
.clientVersion("4.133.0")
|
||||||
|
.clientPlatform("Chrome")
|
||||||
|
.deviceName("Linux")
|
||||||
.build();
|
.build();
|
||||||
|
|
||||||
GetTopWatchedContentResponse res = sdk.library().getTopWatchedContent()
|
GetTopWatchedContentResponse res = sdk.library().getTopWatchedContent()
|
||||||
@@ -887,7 +931,11 @@ public class Application {
|
|||||||
try {
|
try {
|
||||||
PlexAPI sdk = PlexAPI.builder()
|
PlexAPI sdk = PlexAPI.builder()
|
||||||
.accessToken("<YOUR_API_KEY_HERE>")
|
.accessToken("<YOUR_API_KEY_HERE>")
|
||||||
.xPlexClientIdentifier("gcgzw5rz2xovp84b4vha3a40")
|
.clientID("gcgzw5rz2xovp84b4vha3a40")
|
||||||
|
.clientName("Plex Web")
|
||||||
|
.clientVersion("4.133.0")
|
||||||
|
.clientPlatform("Chrome")
|
||||||
|
.deviceName("Linux")
|
||||||
.build();
|
.build();
|
||||||
|
|
||||||
GetOnDeckResponse res = sdk.library().getOnDeck()
|
GetOnDeckResponse res = sdk.library().getOnDeck()
|
||||||
|
|||||||
@@ -34,7 +34,11 @@ public class Application {
|
|||||||
try {
|
try {
|
||||||
PlexAPI sdk = PlexAPI.builder()
|
PlexAPI sdk = PlexAPI.builder()
|
||||||
.accessToken("<YOUR_API_KEY_HERE>")
|
.accessToken("<YOUR_API_KEY_HERE>")
|
||||||
.xPlexClientIdentifier("gcgzw5rz2xovp84b4vha3a40")
|
.clientID("gcgzw5rz2xovp84b4vha3a40")
|
||||||
|
.clientName("Plex Web")
|
||||||
|
.clientVersion("4.133.0")
|
||||||
|
.clientPlatform("Chrome")
|
||||||
|
.deviceName("Linux")
|
||||||
.build();
|
.build();
|
||||||
|
|
||||||
LogLineResponse res = sdk.log().logLine()
|
LogLineResponse res = sdk.log().logLine()
|
||||||
@@ -125,7 +129,11 @@ public class Application {
|
|||||||
try {
|
try {
|
||||||
PlexAPI sdk = PlexAPI.builder()
|
PlexAPI sdk = PlexAPI.builder()
|
||||||
.accessToken("<YOUR_API_KEY_HERE>")
|
.accessToken("<YOUR_API_KEY_HERE>")
|
||||||
.xPlexClientIdentifier("gcgzw5rz2xovp84b4vha3a40")
|
.clientID("gcgzw5rz2xovp84b4vha3a40")
|
||||||
|
.clientName("Plex Web")
|
||||||
|
.clientVersion("4.133.0")
|
||||||
|
.clientPlatform("Chrome")
|
||||||
|
.deviceName("Linux")
|
||||||
.build();
|
.build();
|
||||||
|
|
||||||
String req = "level=4&message=Test%20message%201&source=postman\nlevel=3&message=Test%20message%202&source=postman
|
String req = "level=4&message=Test%20message%201&source=postman\nlevel=3&message=Test%20message%202&source=postman
|
||||||
@@ -194,7 +202,11 @@ public class Application {
|
|||||||
try {
|
try {
|
||||||
PlexAPI sdk = PlexAPI.builder()
|
PlexAPI sdk = PlexAPI.builder()
|
||||||
.accessToken("<YOUR_API_KEY_HERE>")
|
.accessToken("<YOUR_API_KEY_HERE>")
|
||||||
.xPlexClientIdentifier("gcgzw5rz2xovp84b4vha3a40")
|
.clientID("gcgzw5rz2xovp84b4vha3a40")
|
||||||
|
.clientName("Plex Web")
|
||||||
|
.clientVersion("4.133.0")
|
||||||
|
.clientPlatform("Chrome")
|
||||||
|
.deviceName("Linux")
|
||||||
.build();
|
.build();
|
||||||
|
|
||||||
EnablePaperTrailResponse res = sdk.log().enablePaperTrail()
|
EnablePaperTrailResponse res = sdk.log().enablePaperTrail()
|
||||||
|
|||||||
@@ -34,7 +34,11 @@ public class Application {
|
|||||||
try {
|
try {
|
||||||
PlexAPI sdk = PlexAPI.builder()
|
PlexAPI sdk = PlexAPI.builder()
|
||||||
.accessToken("<YOUR_API_KEY_HERE>")
|
.accessToken("<YOUR_API_KEY_HERE>")
|
||||||
.xPlexClientIdentifier("gcgzw5rz2xovp84b4vha3a40")
|
.clientID("gcgzw5rz2xovp84b4vha3a40")
|
||||||
|
.clientName("Plex Web")
|
||||||
|
.clientVersion("4.133.0")
|
||||||
|
.clientPlatform("Chrome")
|
||||||
|
.deviceName("Linux")
|
||||||
.build();
|
.build();
|
||||||
|
|
||||||
MarkPlayedResponse res = sdk.media().markPlayed()
|
MarkPlayedResponse res = sdk.media().markPlayed()
|
||||||
@@ -99,7 +103,11 @@ public class Application {
|
|||||||
try {
|
try {
|
||||||
PlexAPI sdk = PlexAPI.builder()
|
PlexAPI sdk = PlexAPI.builder()
|
||||||
.accessToken("<YOUR_API_KEY_HERE>")
|
.accessToken("<YOUR_API_KEY_HERE>")
|
||||||
.xPlexClientIdentifier("gcgzw5rz2xovp84b4vha3a40")
|
.clientID("gcgzw5rz2xovp84b4vha3a40")
|
||||||
|
.clientName("Plex Web")
|
||||||
|
.clientVersion("4.133.0")
|
||||||
|
.clientPlatform("Chrome")
|
||||||
|
.deviceName("Linux")
|
||||||
.build();
|
.build();
|
||||||
|
|
||||||
MarkUnplayedResponse res = sdk.media().markUnplayed()
|
MarkUnplayedResponse res = sdk.media().markUnplayed()
|
||||||
@@ -165,7 +173,11 @@ public class Application {
|
|||||||
try {
|
try {
|
||||||
PlexAPI sdk = PlexAPI.builder()
|
PlexAPI sdk = PlexAPI.builder()
|
||||||
.accessToken("<YOUR_API_KEY_HERE>")
|
.accessToken("<YOUR_API_KEY_HERE>")
|
||||||
.xPlexClientIdentifier("gcgzw5rz2xovp84b4vha3a40")
|
.clientID("gcgzw5rz2xovp84b4vha3a40")
|
||||||
|
.clientName("Plex Web")
|
||||||
|
.clientVersion("4.133.0")
|
||||||
|
.clientPlatform("Chrome")
|
||||||
|
.deviceName("Linux")
|
||||||
.build();
|
.build();
|
||||||
|
|
||||||
UpdatePlayProgressResponse res = sdk.media().updatePlayProgress()
|
UpdatePlayProgressResponse res = sdk.media().updatePlayProgress()
|
||||||
@@ -235,7 +247,11 @@ public class Application {
|
|||||||
try {
|
try {
|
||||||
PlexAPI sdk = PlexAPI.builder()
|
PlexAPI sdk = PlexAPI.builder()
|
||||||
.accessToken("<YOUR_API_KEY_HERE>")
|
.accessToken("<YOUR_API_KEY_HERE>")
|
||||||
.xPlexClientIdentifier("gcgzw5rz2xovp84b4vha3a40")
|
.clientID("gcgzw5rz2xovp84b4vha3a40")
|
||||||
|
.clientName("Plex Web")
|
||||||
|
.clientVersion("4.133.0")
|
||||||
|
.clientPlatform("Chrome")
|
||||||
|
.deviceName("Linux")
|
||||||
.build();
|
.build();
|
||||||
|
|
||||||
GetBannerImageRequest req = GetBannerImageRequest.builder()
|
GetBannerImageRequest req = GetBannerImageRequest.builder()
|
||||||
@@ -312,7 +328,11 @@ public class Application {
|
|||||||
try {
|
try {
|
||||||
PlexAPI sdk = PlexAPI.builder()
|
PlexAPI sdk = PlexAPI.builder()
|
||||||
.accessToken("<YOUR_API_KEY_HERE>")
|
.accessToken("<YOUR_API_KEY_HERE>")
|
||||||
.xPlexClientIdentifier("gcgzw5rz2xovp84b4vha3a40")
|
.clientID("gcgzw5rz2xovp84b4vha3a40")
|
||||||
|
.clientName("Plex Web")
|
||||||
|
.clientVersion("4.133.0")
|
||||||
|
.clientPlatform("Chrome")
|
||||||
|
.deviceName("Linux")
|
||||||
.build();
|
.build();
|
||||||
|
|
||||||
GetThumbImageRequest req = GetThumbImageRequest.builder()
|
GetThumbImageRequest req = GetThumbImageRequest.builder()
|
||||||
|
|||||||
@@ -47,7 +47,11 @@ public class Application {
|
|||||||
try {
|
try {
|
||||||
PlexAPI sdk = PlexAPI.builder()
|
PlexAPI sdk = PlexAPI.builder()
|
||||||
.accessToken("<YOUR_API_KEY_HERE>")
|
.accessToken("<YOUR_API_KEY_HERE>")
|
||||||
.xPlexClientIdentifier("gcgzw5rz2xovp84b4vha3a40")
|
.clientID("gcgzw5rz2xovp84b4vha3a40")
|
||||||
|
.clientName("Plex Web")
|
||||||
|
.clientVersion("4.133.0")
|
||||||
|
.clientPlatform("Chrome")
|
||||||
|
.deviceName("Linux")
|
||||||
.build();
|
.build();
|
||||||
|
|
||||||
CreatePlaylistRequest req = CreatePlaylistRequest.builder()
|
CreatePlaylistRequest req = CreatePlaylistRequest.builder()
|
||||||
@@ -123,7 +127,11 @@ public class Application {
|
|||||||
try {
|
try {
|
||||||
PlexAPI sdk = PlexAPI.builder()
|
PlexAPI sdk = PlexAPI.builder()
|
||||||
.accessToken("<YOUR_API_KEY_HERE>")
|
.accessToken("<YOUR_API_KEY_HERE>")
|
||||||
.xPlexClientIdentifier("gcgzw5rz2xovp84b4vha3a40")
|
.clientID("gcgzw5rz2xovp84b4vha3a40")
|
||||||
|
.clientName("Plex Web")
|
||||||
|
.clientVersion("4.133.0")
|
||||||
|
.clientPlatform("Chrome")
|
||||||
|
.deviceName("Linux")
|
||||||
.build();
|
.build();
|
||||||
|
|
||||||
GetPlaylistsResponse res = sdk.playlists().getPlaylists()
|
GetPlaylistsResponse res = sdk.playlists().getPlaylists()
|
||||||
@@ -194,7 +202,11 @@ public class Application {
|
|||||||
try {
|
try {
|
||||||
PlexAPI sdk = PlexAPI.builder()
|
PlexAPI sdk = PlexAPI.builder()
|
||||||
.accessToken("<YOUR_API_KEY_HERE>")
|
.accessToken("<YOUR_API_KEY_HERE>")
|
||||||
.xPlexClientIdentifier("gcgzw5rz2xovp84b4vha3a40")
|
.clientID("gcgzw5rz2xovp84b4vha3a40")
|
||||||
|
.clientName("Plex Web")
|
||||||
|
.clientVersion("4.133.0")
|
||||||
|
.clientPlatform("Chrome")
|
||||||
|
.deviceName("Linux")
|
||||||
.build();
|
.build();
|
||||||
|
|
||||||
GetPlaylistResponse res = sdk.playlists().getPlaylist()
|
GetPlaylistResponse res = sdk.playlists().getPlaylist()
|
||||||
@@ -262,7 +274,11 @@ public class Application {
|
|||||||
try {
|
try {
|
||||||
PlexAPI sdk = PlexAPI.builder()
|
PlexAPI sdk = PlexAPI.builder()
|
||||||
.accessToken("<YOUR_API_KEY_HERE>")
|
.accessToken("<YOUR_API_KEY_HERE>")
|
||||||
.xPlexClientIdentifier("gcgzw5rz2xovp84b4vha3a40")
|
.clientID("gcgzw5rz2xovp84b4vha3a40")
|
||||||
|
.clientName("Plex Web")
|
||||||
|
.clientVersion("4.133.0")
|
||||||
|
.clientPlatform("Chrome")
|
||||||
|
.deviceName("Linux")
|
||||||
.build();
|
.build();
|
||||||
|
|
||||||
DeletePlaylistResponse res = sdk.playlists().deletePlaylist()
|
DeletePlaylistResponse res = sdk.playlists().deletePlaylist()
|
||||||
@@ -328,7 +344,11 @@ public class Application {
|
|||||||
try {
|
try {
|
||||||
PlexAPI sdk = PlexAPI.builder()
|
PlexAPI sdk = PlexAPI.builder()
|
||||||
.accessToken("<YOUR_API_KEY_HERE>")
|
.accessToken("<YOUR_API_KEY_HERE>")
|
||||||
.xPlexClientIdentifier("gcgzw5rz2xovp84b4vha3a40")
|
.clientID("gcgzw5rz2xovp84b4vha3a40")
|
||||||
|
.clientName("Plex Web")
|
||||||
|
.clientVersion("4.133.0")
|
||||||
|
.clientPlatform("Chrome")
|
||||||
|
.deviceName("Linux")
|
||||||
.build();
|
.build();
|
||||||
|
|
||||||
UpdatePlaylistResponse res = sdk.playlists().updatePlaylist()
|
UpdatePlaylistResponse res = sdk.playlists().updatePlaylist()
|
||||||
@@ -402,7 +422,11 @@ public class Application {
|
|||||||
try {
|
try {
|
||||||
PlexAPI sdk = PlexAPI.builder()
|
PlexAPI sdk = PlexAPI.builder()
|
||||||
.accessToken("<YOUR_API_KEY_HERE>")
|
.accessToken("<YOUR_API_KEY_HERE>")
|
||||||
.xPlexClientIdentifier("gcgzw5rz2xovp84b4vha3a40")
|
.clientID("gcgzw5rz2xovp84b4vha3a40")
|
||||||
|
.clientName("Plex Web")
|
||||||
|
.clientVersion("4.133.0")
|
||||||
|
.clientPlatform("Chrome")
|
||||||
|
.deviceName("Linux")
|
||||||
.build();
|
.build();
|
||||||
|
|
||||||
GetPlaylistContentsResponse res = sdk.playlists().getPlaylistContents()
|
GetPlaylistContentsResponse res = sdk.playlists().getPlaylistContents()
|
||||||
@@ -472,7 +496,11 @@ public class Application {
|
|||||||
try {
|
try {
|
||||||
PlexAPI sdk = PlexAPI.builder()
|
PlexAPI sdk = PlexAPI.builder()
|
||||||
.accessToken("<YOUR_API_KEY_HERE>")
|
.accessToken("<YOUR_API_KEY_HERE>")
|
||||||
.xPlexClientIdentifier("gcgzw5rz2xovp84b4vha3a40")
|
.clientID("gcgzw5rz2xovp84b4vha3a40")
|
||||||
|
.clientName("Plex Web")
|
||||||
|
.clientVersion("4.133.0")
|
||||||
|
.clientPlatform("Chrome")
|
||||||
|
.deviceName("Linux")
|
||||||
.build();
|
.build();
|
||||||
|
|
||||||
ClearPlaylistContentsResponse res = sdk.playlists().clearPlaylistContents()
|
ClearPlaylistContentsResponse res = sdk.playlists().clearPlaylistContents()
|
||||||
@@ -539,7 +567,11 @@ public class Application {
|
|||||||
try {
|
try {
|
||||||
PlexAPI sdk = PlexAPI.builder()
|
PlexAPI sdk = PlexAPI.builder()
|
||||||
.accessToken("<YOUR_API_KEY_HERE>")
|
.accessToken("<YOUR_API_KEY_HERE>")
|
||||||
.xPlexClientIdentifier("gcgzw5rz2xovp84b4vha3a40")
|
.clientID("gcgzw5rz2xovp84b4vha3a40")
|
||||||
|
.clientName("Plex Web")
|
||||||
|
.clientVersion("4.133.0")
|
||||||
|
.clientPlatform("Chrome")
|
||||||
|
.deviceName("Linux")
|
||||||
.build();
|
.build();
|
||||||
|
|
||||||
AddPlaylistContentsResponse res = sdk.playlists().addPlaylistContents()
|
AddPlaylistContentsResponse res = sdk.playlists().addPlaylistContents()
|
||||||
@@ -612,7 +644,11 @@ public class Application {
|
|||||||
try {
|
try {
|
||||||
PlexAPI sdk = PlexAPI.builder()
|
PlexAPI sdk = PlexAPI.builder()
|
||||||
.accessToken("<YOUR_API_KEY_HERE>")
|
.accessToken("<YOUR_API_KEY_HERE>")
|
||||||
.xPlexClientIdentifier("gcgzw5rz2xovp84b4vha3a40")
|
.clientID("gcgzw5rz2xovp84b4vha3a40")
|
||||||
|
.clientName("Plex Web")
|
||||||
|
.clientVersion("4.133.0")
|
||||||
|
.clientPlatform("Chrome")
|
||||||
|
.deviceName("Linux")
|
||||||
.build();
|
.build();
|
||||||
|
|
||||||
UploadPlaylistResponse res = sdk.playlists().uploadPlaylist()
|
UploadPlaylistResponse res = sdk.playlists().uploadPlaylist()
|
||||||
|
|||||||
@@ -36,7 +36,11 @@ public class Application {
|
|||||||
try {
|
try {
|
||||||
PlexAPI sdk = PlexAPI.builder()
|
PlexAPI sdk = PlexAPI.builder()
|
||||||
.accessToken("<YOUR_API_KEY_HERE>")
|
.accessToken("<YOUR_API_KEY_HERE>")
|
||||||
.xPlexClientIdentifier("gcgzw5rz2xovp84b4vha3a40")
|
.clientID("gcgzw5rz2xovp84b4vha3a40")
|
||||||
|
.clientName("Plex Web")
|
||||||
|
.clientVersion("4.133.0")
|
||||||
|
.clientPlatform("Chrome")
|
||||||
|
.deviceName("Linux")
|
||||||
.build();
|
.build();
|
||||||
|
|
||||||
GetCompanionsDataResponse res = sdk.plex().getCompanionsData()
|
GetCompanionsDataResponse res = sdk.plex().getCompanionsData()
|
||||||
@@ -102,7 +106,11 @@ public class Application {
|
|||||||
try {
|
try {
|
||||||
PlexAPI sdk = PlexAPI.builder()
|
PlexAPI sdk = PlexAPI.builder()
|
||||||
.accessToken("<YOUR_API_KEY_HERE>")
|
.accessToken("<YOUR_API_KEY_HERE>")
|
||||||
.xPlexClientIdentifier("gcgzw5rz2xovp84b4vha3a40")
|
.clientID("gcgzw5rz2xovp84b4vha3a40")
|
||||||
|
.clientName("Plex Web")
|
||||||
|
.clientVersion("4.133.0")
|
||||||
|
.clientPlatform("Chrome")
|
||||||
|
.deviceName("Linux")
|
||||||
.build();
|
.build();
|
||||||
|
|
||||||
GetUserFriendsResponse res = sdk.plex().getUserFriends()
|
GetUserFriendsResponse res = sdk.plex().getUserFriends()
|
||||||
@@ -167,7 +175,11 @@ public class Application {
|
|||||||
public static void main(String[] args) throws Exception {
|
public static void main(String[] args) throws Exception {
|
||||||
try {
|
try {
|
||||||
PlexAPI sdk = PlexAPI.builder()
|
PlexAPI sdk = PlexAPI.builder()
|
||||||
.xPlexClientIdentifier("gcgzw5rz2xovp84b4vha3a40")
|
.clientID("gcgzw5rz2xovp84b4vha3a40")
|
||||||
|
.clientName("Plex Web")
|
||||||
|
.clientVersion("4.133.0")
|
||||||
|
.clientPlatform("Chrome")
|
||||||
|
.deviceName("Linux")
|
||||||
.build();
|
.build();
|
||||||
|
|
||||||
GetGeoDataResponse res = sdk.plex().getGeoData()
|
GetGeoDataResponse res = sdk.plex().getGeoData()
|
||||||
@@ -233,7 +245,11 @@ public class Application {
|
|||||||
try {
|
try {
|
||||||
PlexAPI sdk = PlexAPI.builder()
|
PlexAPI sdk = PlexAPI.builder()
|
||||||
.accessToken("<YOUR_API_KEY_HERE>")
|
.accessToken("<YOUR_API_KEY_HERE>")
|
||||||
.xPlexClientIdentifier("gcgzw5rz2xovp84b4vha3a40")
|
.clientID("gcgzw5rz2xovp84b4vha3a40")
|
||||||
|
.clientName("Plex Web")
|
||||||
|
.clientVersion("4.133.0")
|
||||||
|
.clientPlatform("Chrome")
|
||||||
|
.deviceName("Linux")
|
||||||
.build();
|
.build();
|
||||||
|
|
||||||
GetHomeDataResponse res = sdk.plex().getHomeData()
|
GetHomeDataResponse res = sdk.plex().getHomeData()
|
||||||
@@ -296,11 +312,15 @@ public class Application {
|
|||||||
try {
|
try {
|
||||||
PlexAPI sdk = PlexAPI.builder()
|
PlexAPI sdk = PlexAPI.builder()
|
||||||
.accessToken("<YOUR_API_KEY_HERE>")
|
.accessToken("<YOUR_API_KEY_HERE>")
|
||||||
.xPlexClientIdentifier("gcgzw5rz2xovp84b4vha3a40")
|
.clientID("gcgzw5rz2xovp84b4vha3a40")
|
||||||
|
.clientName("Plex Web")
|
||||||
|
.clientVersion("4.133.0")
|
||||||
|
.clientPlatform("Chrome")
|
||||||
|
.deviceName("Linux")
|
||||||
.build();
|
.build();
|
||||||
|
|
||||||
GetServerResourcesResponse res = sdk.plex().getServerResources()
|
GetServerResourcesResponse res = sdk.plex().getServerResources()
|
||||||
.xPlexClientIdentifier("gcgzw5rz2xovp84b4vha3a40")
|
.clientID("gcgzw5rz2xovp84b4vha3a40")
|
||||||
.includeHttps(IncludeHttps.ONE)
|
.includeHttps(IncludeHttps.ONE)
|
||||||
.includeRelay(IncludeRelay.ONE)
|
.includeRelay(IncludeRelay.ONE)
|
||||||
.includeIPv6(IncludeIPv6.ONE)
|
.includeIPv6(IncludeIPv6.ONE)
|
||||||
@@ -331,7 +351,7 @@ public class Application {
|
|||||||
|
|
||||||
| Parameter | Type | Required | Description | Example |
|
| Parameter | Type | Required | Description | Example |
|
||||||
| --------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
|
| --------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
|
||||||
| `xPlexClientIdentifier` | *Optional<String>* | :heavy_minus_sign: | The unique identifier for the client application<br/>This is used to track the client application and its usage<br/>(UUID, serial number, or other number unique per device)<br/> | gcgzw5rz2xovp84b4vha3a40 |
|
| `clientID` | *Optional<String>* | :heavy_minus_sign: | The unique identifier for the client application<br/>This is used to track the client application and its usage<br/>(UUID, serial number, or other number unique per device)<br/> | gcgzw5rz2xovp84b4vha3a40 |
|
||||||
| `includeHttps` | [Optional<IncludeHttps>](../../models/operations/IncludeHttps.md) | :heavy_minus_sign: | Include Https entries in the results | 1 |
|
| `includeHttps` | [Optional<IncludeHttps>](../../models/operations/IncludeHttps.md) | :heavy_minus_sign: | Include Https entries in the results | 1 |
|
||||||
| `includeRelay` | [Optional<IncludeRelay>](../../models/operations/IncludeRelay.md) | :heavy_minus_sign: | Include Relay addresses in the results <br/>E.g: https://10-0-0-25.bbf8e10c7fa20447cacee74cd9914cde.plex.direct:32400<br/> | 1 |
|
| `includeRelay` | [Optional<IncludeRelay>](../../models/operations/IncludeRelay.md) | :heavy_minus_sign: | Include Relay addresses in the results <br/>E.g: https://10-0-0-25.bbf8e10c7fa20447cacee74cd9914cde.plex.direct:32400<br/> | 1 |
|
||||||
| `includeIPv6` | [Optional<IncludeIPv6>](../../models/operations/IncludeIPv6.md) | :heavy_minus_sign: | Include IPv6 entries in the results | 1 |
|
| `includeIPv6` | [Optional<IncludeIPv6>](../../models/operations/IncludeIPv6.md) | :heavy_minus_sign: | Include IPv6 entries in the results | 1 |
|
||||||
@@ -352,7 +372,7 @@ public class Application {
|
|||||||
|
|
||||||
## getPin
|
## getPin
|
||||||
|
|
||||||
Retrieve a Pin from Plex.tv for authentication flows
|
Retrieve a Pin ID from Plex.tv to use for authentication flows
|
||||||
|
|
||||||
### Example Usage
|
### Example Usage
|
||||||
|
|
||||||
@@ -361,6 +381,7 @@ package hello.world;
|
|||||||
|
|
||||||
import dev.plexapi.sdk.PlexAPI;
|
import dev.plexapi.sdk.PlexAPI;
|
||||||
import dev.plexapi.sdk.models.errors.SDKError;
|
import dev.plexapi.sdk.models.errors.SDKError;
|
||||||
|
import dev.plexapi.sdk.models.operations.GetPinRequest;
|
||||||
import dev.plexapi.sdk.models.operations.GetPinResponse;
|
import dev.plexapi.sdk.models.operations.GetPinResponse;
|
||||||
import java.lang.Exception;
|
import java.lang.Exception;
|
||||||
|
|
||||||
@@ -369,13 +390,18 @@ public class Application {
|
|||||||
public static void main(String[] args) throws Exception {
|
public static void main(String[] args) throws Exception {
|
||||||
try {
|
try {
|
||||||
PlexAPI sdk = PlexAPI.builder()
|
PlexAPI sdk = PlexAPI.builder()
|
||||||
.xPlexClientIdentifier("gcgzw5rz2xovp84b4vha3a40")
|
.clientID("gcgzw5rz2xovp84b4vha3a40")
|
||||||
|
.clientName("Plex Web")
|
||||||
|
.clientVersion("4.133.0")
|
||||||
|
.clientPlatform("Chrome")
|
||||||
|
.deviceName("Linux")
|
||||||
|
.build();
|
||||||
|
|
||||||
|
GetPinRequest req = GetPinRequest.builder()
|
||||||
.build();
|
.build();
|
||||||
|
|
||||||
GetPinResponse res = sdk.plex().getPin()
|
GetPinResponse res = sdk.plex().getPin()
|
||||||
.strong(false)
|
.request(req)
|
||||||
.xPlexClientIdentifier("gcgzw5rz2xovp84b4vha3a40")
|
|
||||||
.xPlexProduct("Plex Web")
|
|
||||||
.call();
|
.call();
|
||||||
|
|
||||||
if (res.authPinContainer().isPresent()) {
|
if (res.authPinContainer().isPresent()) {
|
||||||
@@ -398,12 +424,10 @@ public class Application {
|
|||||||
|
|
||||||
### Parameters
|
### Parameters
|
||||||
|
|
||||||
| Parameter | Type | Required | Description | Example |
|
| Parameter | Type | Required | Description |
|
||||||
| --------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
|
| --------------------------------------------------------- | --------------------------------------------------------- | --------------------------------------------------------- | --------------------------------------------------------- |
|
||||||
| `strong` | *Optional<Boolean>* | :heavy_minus_sign: | Determines the kind of code returned by the API call<br/>Strong codes are used for Pin authentication flows<br/>Non-Strong codes are used for `Plex.tv/link`<br/> | |
|
| `request` | [GetPinRequest](../../models/operations/GetPinRequest.md) | :heavy_check_mark: | The request object to use for the request. |
|
||||||
| `xPlexClientIdentifier` | *Optional<String>* | :heavy_minus_sign: | The unique identifier for the client application<br/>This is used to track the client application and its usage<br/>(UUID, serial number, or other number unique per device)<br/> | gcgzw5rz2xovp84b4vha3a40 |
|
| `serverURL` | *String* | :heavy_minus_sign: | An optional server URL to use. |
|
||||||
| `xPlexProduct` | *Optional<String>* | :heavy_minus_sign: | N/A | Plex Web |
|
|
||||||
| `serverURL` | *String* | :heavy_minus_sign: | An optional server URL to use. | http://localhost:8080 |
|
|
||||||
|
|
||||||
### Response
|
### Response
|
||||||
|
|
||||||
@@ -436,11 +460,15 @@ public class Application {
|
|||||||
public static void main(String[] args) throws Exception {
|
public static void main(String[] args) throws Exception {
|
||||||
try {
|
try {
|
||||||
PlexAPI sdk = PlexAPI.builder()
|
PlexAPI sdk = PlexAPI.builder()
|
||||||
.xPlexClientIdentifier("gcgzw5rz2xovp84b4vha3a40")
|
.clientID("gcgzw5rz2xovp84b4vha3a40")
|
||||||
|
.clientName("Plex Web")
|
||||||
|
.clientVersion("4.133.0")
|
||||||
|
.clientPlatform("Chrome")
|
||||||
|
.deviceName("Linux")
|
||||||
.build();
|
.build();
|
||||||
|
|
||||||
GetTokenByPinIdResponse res = sdk.plex().getTokenByPinId()
|
GetTokenByPinIdResponse res = sdk.plex().getTokenByPinId()
|
||||||
.xPlexClientIdentifier("gcgzw5rz2xovp84b4vha3a40")
|
.clientID("gcgzw5rz2xovp84b4vha3a40")
|
||||||
.pinID(408895L)
|
.pinID(408895L)
|
||||||
.call();
|
.call();
|
||||||
|
|
||||||
@@ -469,7 +497,7 @@ public class Application {
|
|||||||
|
|
||||||
| Parameter | Type | Required | Description | Example |
|
| Parameter | Type | Required | Description | Example |
|
||||||
| --------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
|
| --------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
|
||||||
| `xPlexClientIdentifier` | *Optional<String>* | :heavy_minus_sign: | The unique identifier for the client application<br/>This is used to track the client application and its usage<br/>(UUID, serial number, or other number unique per device)<br/> | gcgzw5rz2xovp84b4vha3a40 |
|
| `clientID` | *Optional<String>* | :heavy_minus_sign: | The unique identifier for the client application<br/>This is used to track the client application and its usage<br/>(UUID, serial number, or other number unique per device)<br/> | gcgzw5rz2xovp84b4vha3a40 |
|
||||||
| `pinID` | *long* | :heavy_check_mark: | The PinID to retrieve an access token for | |
|
| `pinID` | *long* | :heavy_check_mark: | The PinID to retrieve an access token for | |
|
||||||
| `serverURL` | *String* | :heavy_minus_sign: | An optional server URL to use. | http://localhost:8080 |
|
| `serverURL` | *String* | :heavy_minus_sign: | An optional server URL to use. | http://localhost:8080 |
|
||||||
|
|
||||||
|
|||||||
@@ -44,7 +44,11 @@ public class Application {
|
|||||||
try {
|
try {
|
||||||
PlexAPI sdk = PlexAPI.builder()
|
PlexAPI sdk = PlexAPI.builder()
|
||||||
.accessToken("<YOUR_API_KEY_HERE>")
|
.accessToken("<YOUR_API_KEY_HERE>")
|
||||||
.xPlexClientIdentifier("gcgzw5rz2xovp84b4vha3a40")
|
.clientID("gcgzw5rz2xovp84b4vha3a40")
|
||||||
|
.clientName("Plex Web")
|
||||||
|
.clientVersion("4.133.0")
|
||||||
|
.clientPlatform("Chrome")
|
||||||
|
.deviceName("Linux")
|
||||||
.build();
|
.build();
|
||||||
|
|
||||||
PerformSearchResponse res = sdk.search().performSearch()
|
PerformSearchResponse res = sdk.search().performSearch()
|
||||||
@@ -117,7 +121,11 @@ public class Application {
|
|||||||
try {
|
try {
|
||||||
PlexAPI sdk = PlexAPI.builder()
|
PlexAPI sdk = PlexAPI.builder()
|
||||||
.accessToken("<YOUR_API_KEY_HERE>")
|
.accessToken("<YOUR_API_KEY_HERE>")
|
||||||
.xPlexClientIdentifier("gcgzw5rz2xovp84b4vha3a40")
|
.clientID("gcgzw5rz2xovp84b4vha3a40")
|
||||||
|
.clientName("Plex Web")
|
||||||
|
.clientVersion("4.133.0")
|
||||||
|
.clientPlatform("Chrome")
|
||||||
|
.deviceName("Linux")
|
||||||
.build();
|
.build();
|
||||||
|
|
||||||
PerformVoiceSearchResponse res = sdk.search().performVoiceSearch()
|
PerformVoiceSearchResponse res = sdk.search().performVoiceSearch()
|
||||||
@@ -186,7 +194,11 @@ public class Application {
|
|||||||
try {
|
try {
|
||||||
PlexAPI sdk = PlexAPI.builder()
|
PlexAPI sdk = PlexAPI.builder()
|
||||||
.accessToken("<YOUR_API_KEY_HERE>")
|
.accessToken("<YOUR_API_KEY_HERE>")
|
||||||
.xPlexClientIdentifier("gcgzw5rz2xovp84b4vha3a40")
|
.clientID("gcgzw5rz2xovp84b4vha3a40")
|
||||||
|
.clientName("Plex Web")
|
||||||
|
.clientVersion("4.133.0")
|
||||||
|
.clientPlatform("Chrome")
|
||||||
|
.deviceName("Linux")
|
||||||
.build();
|
.build();
|
||||||
|
|
||||||
GetSearchResultsResponse res = sdk.search().getSearchResults()
|
GetSearchResultsResponse res = sdk.search().getSearchResults()
|
||||||
|
|||||||
@@ -38,7 +38,11 @@ public class Application {
|
|||||||
try {
|
try {
|
||||||
PlexAPI sdk = PlexAPI.builder()
|
PlexAPI sdk = PlexAPI.builder()
|
||||||
.accessToken("<YOUR_API_KEY_HERE>")
|
.accessToken("<YOUR_API_KEY_HERE>")
|
||||||
.xPlexClientIdentifier("gcgzw5rz2xovp84b4vha3a40")
|
.clientID("gcgzw5rz2xovp84b4vha3a40")
|
||||||
|
.clientName("Plex Web")
|
||||||
|
.clientVersion("4.133.0")
|
||||||
|
.clientPlatform("Chrome")
|
||||||
|
.deviceName("Linux")
|
||||||
.build();
|
.build();
|
||||||
|
|
||||||
GetServerCapabilitiesResponse res = sdk.server().getServerCapabilities()
|
GetServerCapabilitiesResponse res = sdk.server().getServerCapabilities()
|
||||||
@@ -98,7 +102,11 @@ public class Application {
|
|||||||
try {
|
try {
|
||||||
PlexAPI sdk = PlexAPI.builder()
|
PlexAPI sdk = PlexAPI.builder()
|
||||||
.accessToken("<YOUR_API_KEY_HERE>")
|
.accessToken("<YOUR_API_KEY_HERE>")
|
||||||
.xPlexClientIdentifier("gcgzw5rz2xovp84b4vha3a40")
|
.clientID("gcgzw5rz2xovp84b4vha3a40")
|
||||||
|
.clientName("Plex Web")
|
||||||
|
.clientVersion("4.133.0")
|
||||||
|
.clientPlatform("Chrome")
|
||||||
|
.deviceName("Linux")
|
||||||
.build();
|
.build();
|
||||||
|
|
||||||
GetServerPreferencesResponse res = sdk.server().getServerPreferences()
|
GetServerPreferencesResponse res = sdk.server().getServerPreferences()
|
||||||
@@ -158,7 +166,11 @@ public class Application {
|
|||||||
try {
|
try {
|
||||||
PlexAPI sdk = PlexAPI.builder()
|
PlexAPI sdk = PlexAPI.builder()
|
||||||
.accessToken("<YOUR_API_KEY_HERE>")
|
.accessToken("<YOUR_API_KEY_HERE>")
|
||||||
.xPlexClientIdentifier("gcgzw5rz2xovp84b4vha3a40")
|
.clientID("gcgzw5rz2xovp84b4vha3a40")
|
||||||
|
.clientName("Plex Web")
|
||||||
|
.clientVersion("4.133.0")
|
||||||
|
.clientPlatform("Chrome")
|
||||||
|
.deviceName("Linux")
|
||||||
.build();
|
.build();
|
||||||
|
|
||||||
GetAvailableClientsResponse res = sdk.server().getAvailableClients()
|
GetAvailableClientsResponse res = sdk.server().getAvailableClients()
|
||||||
@@ -218,7 +230,11 @@ public class Application {
|
|||||||
try {
|
try {
|
||||||
PlexAPI sdk = PlexAPI.builder()
|
PlexAPI sdk = PlexAPI.builder()
|
||||||
.accessToken("<YOUR_API_KEY_HERE>")
|
.accessToken("<YOUR_API_KEY_HERE>")
|
||||||
.xPlexClientIdentifier("gcgzw5rz2xovp84b4vha3a40")
|
.clientID("gcgzw5rz2xovp84b4vha3a40")
|
||||||
|
.clientName("Plex Web")
|
||||||
|
.clientVersion("4.133.0")
|
||||||
|
.clientPlatform("Chrome")
|
||||||
|
.deviceName("Linux")
|
||||||
.build();
|
.build();
|
||||||
|
|
||||||
GetDevicesResponse res = sdk.server().getDevices()
|
GetDevicesResponse res = sdk.server().getDevices()
|
||||||
@@ -277,7 +293,11 @@ public class Application {
|
|||||||
public static void main(String[] args) throws Exception {
|
public static void main(String[] args) throws Exception {
|
||||||
try {
|
try {
|
||||||
PlexAPI sdk = PlexAPI.builder()
|
PlexAPI sdk = PlexAPI.builder()
|
||||||
.xPlexClientIdentifier("gcgzw5rz2xovp84b4vha3a40")
|
.clientID("gcgzw5rz2xovp84b4vha3a40")
|
||||||
|
.clientName("Plex Web")
|
||||||
|
.clientVersion("4.133.0")
|
||||||
|
.clientPlatform("Chrome")
|
||||||
|
.deviceName("Linux")
|
||||||
.build();
|
.build();
|
||||||
|
|
||||||
GetServerIdentityResponse res = sdk.server().getServerIdentity()
|
GetServerIdentityResponse res = sdk.server().getServerIdentity()
|
||||||
@@ -333,7 +353,11 @@ public class Application {
|
|||||||
try {
|
try {
|
||||||
PlexAPI sdk = PlexAPI.builder()
|
PlexAPI sdk = PlexAPI.builder()
|
||||||
.accessToken("<YOUR_API_KEY_HERE>")
|
.accessToken("<YOUR_API_KEY_HERE>")
|
||||||
.xPlexClientIdentifier("gcgzw5rz2xovp84b4vha3a40")
|
.clientID("gcgzw5rz2xovp84b4vha3a40")
|
||||||
|
.clientName("Plex Web")
|
||||||
|
.clientVersion("4.133.0")
|
||||||
|
.clientPlatform("Chrome")
|
||||||
|
.deviceName("Linux")
|
||||||
.build();
|
.build();
|
||||||
|
|
||||||
GetMyPlexAccountResponse res = sdk.server().getMyPlexAccount()
|
GetMyPlexAccountResponse res = sdk.server().getMyPlexAccount()
|
||||||
@@ -397,7 +421,11 @@ public class Application {
|
|||||||
try {
|
try {
|
||||||
PlexAPI sdk = PlexAPI.builder()
|
PlexAPI sdk = PlexAPI.builder()
|
||||||
.accessToken("<YOUR_API_KEY_HERE>")
|
.accessToken("<YOUR_API_KEY_HERE>")
|
||||||
.xPlexClientIdentifier("gcgzw5rz2xovp84b4vha3a40")
|
.clientID("gcgzw5rz2xovp84b4vha3a40")
|
||||||
|
.clientName("Plex Web")
|
||||||
|
.clientVersion("4.133.0")
|
||||||
|
.clientPlatform("Chrome")
|
||||||
|
.deviceName("Linux")
|
||||||
.build();
|
.build();
|
||||||
|
|
||||||
GetResizedPhotoRequest req = GetResizedPhotoRequest.builder()
|
GetResizedPhotoRequest req = GetResizedPhotoRequest.builder()
|
||||||
@@ -472,7 +500,11 @@ public class Application {
|
|||||||
try {
|
try {
|
||||||
PlexAPI sdk = PlexAPI.builder()
|
PlexAPI sdk = PlexAPI.builder()
|
||||||
.accessToken("<YOUR_API_KEY_HERE>")
|
.accessToken("<YOUR_API_KEY_HERE>")
|
||||||
.xPlexClientIdentifier("gcgzw5rz2xovp84b4vha3a40")
|
.clientID("gcgzw5rz2xovp84b4vha3a40")
|
||||||
|
.clientName("Plex Web")
|
||||||
|
.clientVersion("4.133.0")
|
||||||
|
.clientPlatform("Chrome")
|
||||||
|
.deviceName("Linux")
|
||||||
.build();
|
.build();
|
||||||
|
|
||||||
GetMediaProvidersResponse res = sdk.server().getMediaProviders()
|
GetMediaProvidersResponse res = sdk.server().getMediaProviders()
|
||||||
@@ -539,7 +571,11 @@ public class Application {
|
|||||||
try {
|
try {
|
||||||
PlexAPI sdk = PlexAPI.builder()
|
PlexAPI sdk = PlexAPI.builder()
|
||||||
.accessToken("<YOUR_API_KEY_HERE>")
|
.accessToken("<YOUR_API_KEY_HERE>")
|
||||||
.xPlexClientIdentifier("gcgzw5rz2xovp84b4vha3a40")
|
.clientID("gcgzw5rz2xovp84b4vha3a40")
|
||||||
|
.clientName("Plex Web")
|
||||||
|
.clientVersion("4.133.0")
|
||||||
|
.clientPlatform("Chrome")
|
||||||
|
.deviceName("Linux")
|
||||||
.build();
|
.build();
|
||||||
|
|
||||||
GetServerListResponse res = sdk.server().getServerList()
|
GetServerListResponse res = sdk.server().getServerList()
|
||||||
|
|||||||
@@ -33,7 +33,11 @@ public class Application {
|
|||||||
try {
|
try {
|
||||||
PlexAPI sdk = PlexAPI.builder()
|
PlexAPI sdk = PlexAPI.builder()
|
||||||
.accessToken("<YOUR_API_KEY_HERE>")
|
.accessToken("<YOUR_API_KEY_HERE>")
|
||||||
.xPlexClientIdentifier("gcgzw5rz2xovp84b4vha3a40")
|
.clientID("gcgzw5rz2xovp84b4vha3a40")
|
||||||
|
.clientName("Plex Web")
|
||||||
|
.clientVersion("4.133.0")
|
||||||
|
.clientPlatform("Chrome")
|
||||||
|
.deviceName("Linux")
|
||||||
.build();
|
.build();
|
||||||
|
|
||||||
GetSessionsResponse res = sdk.sessions().getSessions()
|
GetSessionsResponse res = sdk.sessions().getSessions()
|
||||||
@@ -94,7 +98,11 @@ public class Application {
|
|||||||
try {
|
try {
|
||||||
PlexAPI sdk = PlexAPI.builder()
|
PlexAPI sdk = PlexAPI.builder()
|
||||||
.accessToken("<YOUR_API_KEY_HERE>")
|
.accessToken("<YOUR_API_KEY_HERE>")
|
||||||
.xPlexClientIdentifier("gcgzw5rz2xovp84b4vha3a40")
|
.clientID("gcgzw5rz2xovp84b4vha3a40")
|
||||||
|
.clientName("Plex Web")
|
||||||
|
.clientVersion("4.133.0")
|
||||||
|
.clientPlatform("Chrome")
|
||||||
|
.deviceName("Linux")
|
||||||
.build();
|
.build();
|
||||||
|
|
||||||
GetSessionHistoryResponse res = sdk.sessions().getSessionHistory()
|
GetSessionHistoryResponse res = sdk.sessions().getSessionHistory()
|
||||||
@@ -168,7 +176,11 @@ public class Application {
|
|||||||
try {
|
try {
|
||||||
PlexAPI sdk = PlexAPI.builder()
|
PlexAPI sdk = PlexAPI.builder()
|
||||||
.accessToken("<YOUR_API_KEY_HERE>")
|
.accessToken("<YOUR_API_KEY_HERE>")
|
||||||
.xPlexClientIdentifier("gcgzw5rz2xovp84b4vha3a40")
|
.clientID("gcgzw5rz2xovp84b4vha3a40")
|
||||||
|
.clientName("Plex Web")
|
||||||
|
.clientVersion("4.133.0")
|
||||||
|
.clientPlatform("Chrome")
|
||||||
|
.deviceName("Linux")
|
||||||
.build();
|
.build();
|
||||||
|
|
||||||
GetTranscodeSessionsResponse res = sdk.sessions().getTranscodeSessions()
|
GetTranscodeSessionsResponse res = sdk.sessions().getTranscodeSessions()
|
||||||
@@ -228,7 +240,11 @@ public class Application {
|
|||||||
try {
|
try {
|
||||||
PlexAPI sdk = PlexAPI.builder()
|
PlexAPI sdk = PlexAPI.builder()
|
||||||
.accessToken("<YOUR_API_KEY_HERE>")
|
.accessToken("<YOUR_API_KEY_HERE>")
|
||||||
.xPlexClientIdentifier("gcgzw5rz2xovp84b4vha3a40")
|
.clientID("gcgzw5rz2xovp84b4vha3a40")
|
||||||
|
.clientName("Plex Web")
|
||||||
|
.clientVersion("4.133.0")
|
||||||
|
.clientPlatform("Chrome")
|
||||||
|
.deviceName("Linux")
|
||||||
.build();
|
.build();
|
||||||
|
|
||||||
StopTranscodeSessionResponse res = sdk.sessions().stopTranscodeSession()
|
StopTranscodeSessionResponse res = sdk.sessions().stopTranscodeSession()
|
||||||
|
|||||||
@@ -32,7 +32,11 @@ public class Application {
|
|||||||
try {
|
try {
|
||||||
PlexAPI sdk = PlexAPI.builder()
|
PlexAPI sdk = PlexAPI.builder()
|
||||||
.accessToken("<YOUR_API_KEY_HERE>")
|
.accessToken("<YOUR_API_KEY_HERE>")
|
||||||
.xPlexClientIdentifier("gcgzw5rz2xovp84b4vha3a40")
|
.clientID("gcgzw5rz2xovp84b4vha3a40")
|
||||||
|
.clientName("Plex Web")
|
||||||
|
.clientVersion("4.133.0")
|
||||||
|
.clientPlatform("Chrome")
|
||||||
|
.deviceName("Linux")
|
||||||
.build();
|
.build();
|
||||||
|
|
||||||
GetStatisticsResponse res = sdk.statistics().getStatistics()
|
GetStatisticsResponse res = sdk.statistics().getStatistics()
|
||||||
@@ -99,7 +103,11 @@ public class Application {
|
|||||||
try {
|
try {
|
||||||
PlexAPI sdk = PlexAPI.builder()
|
PlexAPI sdk = PlexAPI.builder()
|
||||||
.accessToken("<YOUR_API_KEY_HERE>")
|
.accessToken("<YOUR_API_KEY_HERE>")
|
||||||
.xPlexClientIdentifier("gcgzw5rz2xovp84b4vha3a40")
|
.clientID("gcgzw5rz2xovp84b4vha3a40")
|
||||||
|
.clientName("Plex Web")
|
||||||
|
.clientVersion("4.133.0")
|
||||||
|
.clientPlatform("Chrome")
|
||||||
|
.deviceName("Linux")
|
||||||
.build();
|
.build();
|
||||||
|
|
||||||
GetResourcesStatisticsResponse res = sdk.statistics().getResourcesStatistics()
|
GetResourcesStatisticsResponse res = sdk.statistics().getResourcesStatistics()
|
||||||
@@ -166,7 +174,11 @@ public class Application {
|
|||||||
try {
|
try {
|
||||||
PlexAPI sdk = PlexAPI.builder()
|
PlexAPI sdk = PlexAPI.builder()
|
||||||
.accessToken("<YOUR_API_KEY_HERE>")
|
.accessToken("<YOUR_API_KEY_HERE>")
|
||||||
.xPlexClientIdentifier("gcgzw5rz2xovp84b4vha3a40")
|
.clientID("gcgzw5rz2xovp84b4vha3a40")
|
||||||
|
.clientName("Plex Web")
|
||||||
|
.clientVersion("4.133.0")
|
||||||
|
.clientPlatform("Chrome")
|
||||||
|
.deviceName("Linux")
|
||||||
.build();
|
.build();
|
||||||
|
|
||||||
GetBandwidthStatisticsResponse res = sdk.statistics().getBandwidthStatistics()
|
GetBandwidthStatisticsResponse res = sdk.statistics().getBandwidthStatistics()
|
||||||
|
|||||||
@@ -33,7 +33,11 @@ public class Application {
|
|||||||
try {
|
try {
|
||||||
PlexAPI sdk = PlexAPI.builder()
|
PlexAPI sdk = PlexAPI.builder()
|
||||||
.accessToken("<YOUR_API_KEY_HERE>")
|
.accessToken("<YOUR_API_KEY_HERE>")
|
||||||
.xPlexClientIdentifier("gcgzw5rz2xovp84b4vha3a40")
|
.clientID("gcgzw5rz2xovp84b4vha3a40")
|
||||||
|
.clientName("Plex Web")
|
||||||
|
.clientVersion("4.133.0")
|
||||||
|
.clientPlatform("Chrome")
|
||||||
|
.deviceName("Linux")
|
||||||
.build();
|
.build();
|
||||||
|
|
||||||
GetUpdateStatusResponse res = sdk.updater().getUpdateStatus()
|
GetUpdateStatusResponse res = sdk.updater().getUpdateStatus()
|
||||||
@@ -94,7 +98,11 @@ public class Application {
|
|||||||
try {
|
try {
|
||||||
PlexAPI sdk = PlexAPI.builder()
|
PlexAPI sdk = PlexAPI.builder()
|
||||||
.accessToken("<YOUR_API_KEY_HERE>")
|
.accessToken("<YOUR_API_KEY_HERE>")
|
||||||
.xPlexClientIdentifier("gcgzw5rz2xovp84b4vha3a40")
|
.clientID("gcgzw5rz2xovp84b4vha3a40")
|
||||||
|
.clientName("Plex Web")
|
||||||
|
.clientVersion("4.133.0")
|
||||||
|
.clientPlatform("Chrome")
|
||||||
|
.deviceName("Linux")
|
||||||
.build();
|
.build();
|
||||||
|
|
||||||
CheckForUpdatesResponse res = sdk.updater().checkForUpdates()
|
CheckForUpdatesResponse res = sdk.updater().checkForUpdates()
|
||||||
@@ -162,7 +170,11 @@ public class Application {
|
|||||||
try {
|
try {
|
||||||
PlexAPI sdk = PlexAPI.builder()
|
PlexAPI sdk = PlexAPI.builder()
|
||||||
.accessToken("<YOUR_API_KEY_HERE>")
|
.accessToken("<YOUR_API_KEY_HERE>")
|
||||||
.xPlexClientIdentifier("gcgzw5rz2xovp84b4vha3a40")
|
.clientID("gcgzw5rz2xovp84b4vha3a40")
|
||||||
|
.clientName("Plex Web")
|
||||||
|
.clientVersion("4.133.0")
|
||||||
|
.clientPlatform("Chrome")
|
||||||
|
.deviceName("Linux")
|
||||||
.build();
|
.build();
|
||||||
|
|
||||||
ApplyUpdatesResponse res = sdk.updater().applyUpdates()
|
ApplyUpdatesResponse res = sdk.updater().applyUpdates()
|
||||||
|
|||||||
@@ -33,7 +33,11 @@ public class Application {
|
|||||||
try {
|
try {
|
||||||
PlexAPI sdk = PlexAPI.builder()
|
PlexAPI sdk = PlexAPI.builder()
|
||||||
.accessToken("<YOUR_API_KEY_HERE>")
|
.accessToken("<YOUR_API_KEY_HERE>")
|
||||||
.xPlexClientIdentifier("gcgzw5rz2xovp84b4vha3a40")
|
.clientID("gcgzw5rz2xovp84b4vha3a40")
|
||||||
|
.clientName("Plex Web")
|
||||||
|
.clientVersion("4.133.0")
|
||||||
|
.clientPlatform("Chrome")
|
||||||
|
.deviceName("Linux")
|
||||||
.build();
|
.build();
|
||||||
|
|
||||||
GetTimelineRequest req = GetTimelineRequest.builder()
|
GetTimelineRequest req = GetTimelineRequest.builder()
|
||||||
@@ -112,7 +116,11 @@ public class Application {
|
|||||||
try {
|
try {
|
||||||
PlexAPI sdk = PlexAPI.builder()
|
PlexAPI sdk = PlexAPI.builder()
|
||||||
.accessToken("<YOUR_API_KEY_HERE>")
|
.accessToken("<YOUR_API_KEY_HERE>")
|
||||||
.xPlexClientIdentifier("gcgzw5rz2xovp84b4vha3a40")
|
.clientID("gcgzw5rz2xovp84b4vha3a40")
|
||||||
|
.clientName("Plex Web")
|
||||||
|
.clientVersion("4.133.0")
|
||||||
|
.clientPlatform("Chrome")
|
||||||
|
.deviceName("Linux")
|
||||||
.build();
|
.build();
|
||||||
|
|
||||||
StartUniversalTranscodeRequest req = StartUniversalTranscodeRequest.builder()
|
StartUniversalTranscodeRequest req = StartUniversalTranscodeRequest.builder()
|
||||||
|
|||||||
@@ -32,7 +32,11 @@ public class Application {
|
|||||||
try {
|
try {
|
||||||
PlexAPI sdk = PlexAPI.builder()
|
PlexAPI sdk = PlexAPI.builder()
|
||||||
.accessToken("<YOUR_API_KEY_HERE>")
|
.accessToken("<YOUR_API_KEY_HERE>")
|
||||||
.xPlexClientIdentifier("gcgzw5rz2xovp84b4vha3a40")
|
.clientID("gcgzw5rz2xovp84b4vha3a40")
|
||||||
|
.clientName("Plex Web")
|
||||||
|
.clientVersion("4.133.0")
|
||||||
|
.clientPlatform("Chrome")
|
||||||
|
.deviceName("Linux")
|
||||||
.build();
|
.build();
|
||||||
|
|
||||||
GetWatchListRequest req = GetWatchListRequest.builder()
|
GetWatchListRequest req = GetWatchListRequest.builder()
|
||||||
|
|||||||
@@ -570,7 +570,7 @@ public class Authentication implements
|
|||||||
/**
|
/**
|
||||||
* Get User Sign In Data
|
* Get User Sign In Data
|
||||||
* Sign in user with username and password and return user data with Plex authentication token
|
* Sign in user with username and password and return user data with Plex authentication token
|
||||||
* @param xPlexClientIdentifier The unique identifier for the client application
|
* @param clientID The unique identifier for the client application
|
||||||
This is used to track the client application and its usage
|
This is used to track the client application and its usage
|
||||||
(UUID, serial number, or other number unique per device)
|
(UUID, serial number, or other number unique per device)
|
||||||
|
|
||||||
@@ -580,13 +580,13 @@ public class Authentication implements
|
|||||||
* @throws Exception if the API call fails
|
* @throws Exception if the API call fails
|
||||||
*/
|
*/
|
||||||
public PostUsersSignInDataResponse postUsersSignInData(
|
public PostUsersSignInDataResponse postUsersSignInData(
|
||||||
Optional<String> xPlexClientIdentifier,
|
Optional<String> clientID,
|
||||||
Optional<? extends PostUsersSignInDataRequestBody> requestBody,
|
Optional<? extends PostUsersSignInDataRequestBody> requestBody,
|
||||||
Optional<String> serverURL) throws Exception {
|
Optional<String> serverURL) throws Exception {
|
||||||
PostUsersSignInDataRequest request =
|
PostUsersSignInDataRequest request =
|
||||||
PostUsersSignInDataRequest
|
PostUsersSignInDataRequest
|
||||||
.builder()
|
.builder()
|
||||||
.xPlexClientIdentifier(xPlexClientIdentifier)
|
.clientID(clientID)
|
||||||
.requestBody(requestBody)
|
.requestBody(requestBody)
|
||||||
.build();
|
.build();
|
||||||
|
|
||||||
|
|||||||
@@ -54,7 +54,6 @@ import dev.plexapi.sdk.utils.Hook.AfterSuccessContextImpl;
|
|||||||
import dev.plexapi.sdk.utils.Hook.BeforeRequestContextImpl;
|
import dev.plexapi.sdk.utils.Hook.BeforeRequestContextImpl;
|
||||||
import dev.plexapi.sdk.utils.Utils;
|
import dev.plexapi.sdk.utils.Utils;
|
||||||
import java.io.InputStream;
|
import java.io.InputStream;
|
||||||
import java.lang.Boolean;
|
|
||||||
import java.lang.Exception;
|
import java.lang.Exception;
|
||||||
import java.lang.String;
|
import java.lang.String;
|
||||||
import java.net.http.HttpRequest;
|
import java.net.http.HttpRequest;
|
||||||
@@ -774,7 +773,7 @@ public class Plex implements
|
|||||||
/**
|
/**
|
||||||
* Get Server Resources
|
* Get Server Resources
|
||||||
* Get Plex server access tokens and server connections
|
* Get Plex server access tokens and server connections
|
||||||
* @param xPlexClientIdentifier The unique identifier for the client application
|
* @param clientID The unique identifier for the client application
|
||||||
This is used to track the client application and its usage
|
This is used to track the client application and its usage
|
||||||
(UUID, serial number, or other number unique per device)
|
(UUID, serial number, or other number unique per device)
|
||||||
|
|
||||||
@@ -788,7 +787,7 @@ public class Plex implements
|
|||||||
* @throws Exception if the API call fails
|
* @throws Exception if the API call fails
|
||||||
*/
|
*/
|
||||||
public GetServerResourcesResponse getServerResources(
|
public GetServerResourcesResponse getServerResources(
|
||||||
Optional<String> xPlexClientIdentifier,
|
Optional<String> clientID,
|
||||||
Optional<? extends IncludeHttps> includeHttps,
|
Optional<? extends IncludeHttps> includeHttps,
|
||||||
Optional<? extends IncludeRelay> includeRelay,
|
Optional<? extends IncludeRelay> includeRelay,
|
||||||
Optional<? extends IncludeIPv6> includeIPv6,
|
Optional<? extends IncludeIPv6> includeIPv6,
|
||||||
@@ -796,7 +795,7 @@ public class Plex implements
|
|||||||
GetServerResourcesRequest request =
|
GetServerResourcesRequest request =
|
||||||
GetServerResourcesRequest
|
GetServerResourcesRequest
|
||||||
.builder()
|
.builder()
|
||||||
.xPlexClientIdentifier(xPlexClientIdentifier)
|
.clientID(clientID)
|
||||||
.includeHttps(includeHttps)
|
.includeHttps(includeHttps)
|
||||||
.includeRelay(includeRelay)
|
.includeRelay(includeRelay)
|
||||||
.includeIPv6(includeIPv6)
|
.includeIPv6(includeIPv6)
|
||||||
@@ -942,7 +941,7 @@ public class Plex implements
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Get a Pin
|
* Get a Pin
|
||||||
* Retrieve a Pin from Plex.tv for authentication flows
|
* Retrieve a Pin ID from Plex.tv to use for authentication flows
|
||||||
* @return The call builder
|
* @return The call builder
|
||||||
*/
|
*/
|
||||||
public GetPinRequestBuilder getPin() {
|
public GetPinRequestBuilder getPin() {
|
||||||
@@ -951,43 +950,27 @@ public class Plex implements
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Get a Pin
|
* 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 request The request object containing all of the parameters for the API call.
|
||||||
* @return The response from the API call
|
* @return The response from the API call
|
||||||
* @throws Exception if the API call fails
|
* @throws Exception if the API call fails
|
||||||
*/
|
*/
|
||||||
public GetPinResponse getPinDirect() throws Exception {
|
public GetPinResponse getPin(
|
||||||
return getPin(Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty());
|
GetPinRequest request) throws Exception {
|
||||||
|
return getPin(request, Optional.empty());
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Get a Pin
|
* 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 strong Determines the kind of code returned by the API call
|
* @param request The request object containing all of the parameters for the API call.
|
||||||
Strong codes are used for Pin authentication flows
|
|
||||||
Non-Strong codes are used for `Plex.tv/link`
|
|
||||||
|
|
||||||
* @param xPlexClientIdentifier 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)
|
|
||||||
|
|
||||||
* @param xPlexProduct
|
|
||||||
* @param serverURL Overrides the server URL.
|
* @param serverURL Overrides the server URL.
|
||||||
* @return The response from the API call
|
* @return The response from the API call
|
||||||
* @throws Exception if the API call fails
|
* @throws Exception if the API call fails
|
||||||
*/
|
*/
|
||||||
public GetPinResponse getPin(
|
public GetPinResponse getPin(
|
||||||
Optional<Boolean> strong,
|
GetPinRequest request,
|
||||||
Optional<String> xPlexClientIdentifier,
|
|
||||||
Optional<String> xPlexProduct,
|
|
||||||
Optional<String> serverURL) throws Exception {
|
Optional<String> serverURL) throws Exception {
|
||||||
GetPinRequest request =
|
|
||||||
GetPinRequest
|
|
||||||
.builder()
|
|
||||||
.strong(strong)
|
|
||||||
.xPlexClientIdentifier(xPlexClientIdentifier)
|
|
||||||
.xPlexProduct(xPlexProduct)
|
|
||||||
.build();
|
|
||||||
|
|
||||||
String _baseUrl = Utils.templateUrl(GET_PIN_SERVERS[0], new HashMap<String, String>());
|
String _baseUrl = Utils.templateUrl(GET_PIN_SERVERS[0], new HashMap<String, String>());
|
||||||
if (serverURL.isPresent() && !serverURL.get().isBlank()) {
|
if (serverURL.isPresent() && !serverURL.get().isBlank()) {
|
||||||
_baseUrl = serverURL.get();
|
_baseUrl = serverURL.get();
|
||||||
@@ -1059,7 +1042,7 @@ public class Plex implements
|
|||||||
|
|
||||||
GetPinResponse _res = _resBuilder.build();
|
GetPinResponse _res = _resBuilder.build();
|
||||||
|
|
||||||
if (Utils.statusCodeMatches(_httpRes.statusCode(), "200")) {
|
if (Utils.statusCodeMatches(_httpRes.statusCode(), "201")) {
|
||||||
if (Utils.contentTypeMatches(_contentType, "application/json")) {
|
if (Utils.contentTypeMatches(_contentType, "application/json")) {
|
||||||
GetPinAuthPinContainer _out = Utils.mapper().readValue(
|
GetPinAuthPinContainer _out = Utils.mapper().readValue(
|
||||||
Utils.toUtf8AndClose(_httpRes.body()),
|
Utils.toUtf8AndClose(_httpRes.body()),
|
||||||
@@ -1131,7 +1114,7 @@ public class Plex implements
|
|||||||
/**
|
/**
|
||||||
* Get Access Token by PinId
|
* Get Access Token by PinId
|
||||||
* Retrieve an Access Token from Plex.tv after the Pin has been authenticated
|
* Retrieve an Access Token from Plex.tv after the Pin has been authenticated
|
||||||
* @param xPlexClientIdentifier The unique identifier for the client application
|
* @param clientID The unique identifier for the client application
|
||||||
This is used to track the client application and its usage
|
This is used to track the client application and its usage
|
||||||
(UUID, serial number, or other number unique per device)
|
(UUID, serial number, or other number unique per device)
|
||||||
|
|
||||||
@@ -1141,13 +1124,13 @@ public class Plex implements
|
|||||||
* @throws Exception if the API call fails
|
* @throws Exception if the API call fails
|
||||||
*/
|
*/
|
||||||
public GetTokenByPinIdResponse getTokenByPinId(
|
public GetTokenByPinIdResponse getTokenByPinId(
|
||||||
Optional<String> xPlexClientIdentifier,
|
Optional<String> clientID,
|
||||||
long pinID,
|
long pinID,
|
||||||
Optional<String> serverURL) throws Exception {
|
Optional<String> serverURL) throws Exception {
|
||||||
GetTokenByPinIdRequest request =
|
GetTokenByPinIdRequest request =
|
||||||
GetTokenByPinIdRequest
|
GetTokenByPinIdRequest
|
||||||
.builder()
|
.builder()
|
||||||
.xPlexClientIdentifier(xPlexClientIdentifier)
|
.clientID(clientID)
|
||||||
.pinID(pinID)
|
.pinID(pinID)
|
||||||
.build();
|
.build();
|
||||||
|
|
||||||
|
|||||||
@@ -433,17 +433,81 @@ public class PlexAPI {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Allows setting the xPlexClientIdentifier parameter for all supported operations.
|
* Allows setting the clientID parameter for all supported operations.
|
||||||
*
|
*
|
||||||
* @param xPlexClientIdentifier The value to set.
|
* @param clientID The value to set.
|
||||||
* @return The builder instance.
|
* @return The builder instance.
|
||||||
*/
|
*/
|
||||||
public Builder xPlexClientIdentifier(String xPlexClientIdentifier) {
|
public Builder clientID(String clientID) {
|
||||||
if (!this.sdkConfiguration.globals.get("parameters").containsKey("queryParam")) {
|
if (!this.sdkConfiguration.globals.get("parameters").containsKey("queryParam")) {
|
||||||
this.sdkConfiguration.globals.get("parameters").put("queryParam", new java.util.HashMap<>());
|
this.sdkConfiguration.globals.get("parameters").put("queryParam", new java.util.HashMap<>());
|
||||||
}
|
}
|
||||||
|
|
||||||
this.sdkConfiguration.globals.get("parameters").get("queryParam").put("xPlexClientIdentifier", xPlexClientIdentifier);
|
this.sdkConfiguration.globals.get("parameters").get("queryParam").put("clientID", clientID);
|
||||||
|
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Allows setting the clientName parameter for all supported operations.
|
||||||
|
*
|
||||||
|
* @param clientName The value to set.
|
||||||
|
* @return The builder instance.
|
||||||
|
*/
|
||||||
|
public Builder clientName(String clientName) {
|
||||||
|
if (!this.sdkConfiguration.globals.get("parameters").containsKey("queryParam")) {
|
||||||
|
this.sdkConfiguration.globals.get("parameters").put("queryParam", new java.util.HashMap<>());
|
||||||
|
}
|
||||||
|
|
||||||
|
this.sdkConfiguration.globals.get("parameters").get("queryParam").put("clientName", clientName);
|
||||||
|
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Allows setting the clientVersion parameter for all supported operations.
|
||||||
|
*
|
||||||
|
* @param clientVersion The value to set.
|
||||||
|
* @return The builder instance.
|
||||||
|
*/
|
||||||
|
public Builder clientVersion(String clientVersion) {
|
||||||
|
if (!this.sdkConfiguration.globals.get("parameters").containsKey("queryParam")) {
|
||||||
|
this.sdkConfiguration.globals.get("parameters").put("queryParam", new java.util.HashMap<>());
|
||||||
|
}
|
||||||
|
|
||||||
|
this.sdkConfiguration.globals.get("parameters").get("queryParam").put("clientVersion", clientVersion);
|
||||||
|
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Allows setting the clientPlatform parameter for all supported operations.
|
||||||
|
*
|
||||||
|
* @param clientPlatform The value to set.
|
||||||
|
* @return The builder instance.
|
||||||
|
*/
|
||||||
|
public Builder clientPlatform(String clientPlatform) {
|
||||||
|
if (!this.sdkConfiguration.globals.get("parameters").containsKey("queryParam")) {
|
||||||
|
this.sdkConfiguration.globals.get("parameters").put("queryParam", new java.util.HashMap<>());
|
||||||
|
}
|
||||||
|
|
||||||
|
this.sdkConfiguration.globals.get("parameters").get("queryParam").put("clientPlatform", clientPlatform);
|
||||||
|
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Allows setting the deviceName parameter for all supported operations.
|
||||||
|
*
|
||||||
|
* @param deviceName The value to set.
|
||||||
|
* @return The builder instance.
|
||||||
|
*/
|
||||||
|
public Builder deviceName(String deviceName) {
|
||||||
|
if (!this.sdkConfiguration.globals.get("parameters").containsKey("queryParam")) {
|
||||||
|
this.sdkConfiguration.globals.get("parameters").put("queryParam", new java.util.HashMap<>());
|
||||||
|
}
|
||||||
|
|
||||||
|
this.sdkConfiguration.globals.get("parameters").get("queryParam").put("deviceName", deviceName);
|
||||||
|
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -36,9 +36,9 @@ class SDKConfiguration {
|
|||||||
} };
|
} };
|
||||||
public String language = "java";
|
public String language = "java";
|
||||||
public String openapiDocVersion = "0.0.3";
|
public String openapiDocVersion = "0.0.3";
|
||||||
public String sdkVersion = "0.3.5";
|
public String sdkVersion = "0.3.6";
|
||||||
public String genVersion = "2.415.8";
|
public String genVersion = "2.416.6";
|
||||||
public String userAgent = "speakeasy-sdk/java 0.3.5 2.415.8 0.0.3 dev.plexapi.sdk";
|
public String userAgent = "speakeasy-sdk/java 0.3.6 2.416.6 0.0.3 dev.plexapi.sdk";
|
||||||
|
|
||||||
private Hooks _hooks = createHooks();
|
private Hooks _hooks = createHooks();
|
||||||
|
|
||||||
|
|||||||
@@ -14,7 +14,6 @@ import com.fasterxml.jackson.core.type.TypeReference;
|
|||||||
import dev.plexapi.sdk.utils.LazySingletonValue;
|
import dev.plexapi.sdk.utils.LazySingletonValue;
|
||||||
import dev.plexapi.sdk.utils.Utils;
|
import dev.plexapi.sdk.utils.Utils;
|
||||||
import java.lang.Boolean;
|
import java.lang.Boolean;
|
||||||
import java.lang.Long;
|
|
||||||
import java.lang.Override;
|
import java.lang.Override;
|
||||||
import java.lang.String;
|
import java.lang.String;
|
||||||
import java.util.Objects;
|
import java.util.Objects;
|
||||||
@@ -67,7 +66,7 @@ public class GeoData {
|
|||||||
* The postal code of the location.
|
* The postal code of the location.
|
||||||
*/
|
*/
|
||||||
@JsonProperty("postal_code")
|
@JsonProperty("postal_code")
|
||||||
private long postalCode;
|
private String postalCode;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Indicates if the country has privacy restrictions.
|
* Indicates if the country has privacy restrictions.
|
||||||
@@ -103,7 +102,7 @@ public class GeoData {
|
|||||||
@JsonProperty("city") String city,
|
@JsonProperty("city") String city,
|
||||||
@JsonProperty("european_union_member") Optional<Boolean> europeanUnionMember,
|
@JsonProperty("european_union_member") Optional<Boolean> europeanUnionMember,
|
||||||
@JsonProperty("time_zone") String timeZone,
|
@JsonProperty("time_zone") String timeZone,
|
||||||
@JsonProperty("postal_code") long postalCode,
|
@JsonProperty("postal_code") String postalCode,
|
||||||
@JsonProperty("in_privacy_restricted_country") Optional<Boolean> inPrivacyRestrictedCountry,
|
@JsonProperty("in_privacy_restricted_country") Optional<Boolean> inPrivacyRestrictedCountry,
|
||||||
@JsonProperty("in_privacy_restricted_region") Optional<Boolean> inPrivacyRestrictedRegion,
|
@JsonProperty("in_privacy_restricted_region") Optional<Boolean> inPrivacyRestrictedRegion,
|
||||||
@JsonProperty("subdivisions") String subdivisions,
|
@JsonProperty("subdivisions") String subdivisions,
|
||||||
@@ -138,7 +137,7 @@ public class GeoData {
|
|||||||
String country,
|
String country,
|
||||||
String city,
|
String city,
|
||||||
String timeZone,
|
String timeZone,
|
||||||
long postalCode,
|
String postalCode,
|
||||||
String subdivisions,
|
String subdivisions,
|
||||||
String coordinates) {
|
String coordinates) {
|
||||||
this(code, continentCode, country, city, Optional.empty(), timeZone, postalCode, Optional.empty(), Optional.empty(), subdivisions, coordinates);
|
this(code, continentCode, country, city, Optional.empty(), timeZone, postalCode, Optional.empty(), Optional.empty(), subdivisions, coordinates);
|
||||||
@@ -196,7 +195,7 @@ public class GeoData {
|
|||||||
* The postal code of the location.
|
* The postal code of the location.
|
||||||
*/
|
*/
|
||||||
@JsonIgnore
|
@JsonIgnore
|
||||||
public long postalCode() {
|
public String postalCode() {
|
||||||
return postalCode;
|
return postalCode;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -302,7 +301,7 @@ public class GeoData {
|
|||||||
/**
|
/**
|
||||||
* The postal code of the location.
|
* The postal code of the location.
|
||||||
*/
|
*/
|
||||||
public GeoData withPostalCode(long postalCode) {
|
public GeoData withPostalCode(String postalCode) {
|
||||||
Utils.checkNotNull(postalCode, "postalCode");
|
Utils.checkNotNull(postalCode, "postalCode");
|
||||||
this.postalCode = postalCode;
|
this.postalCode = postalCode;
|
||||||
return this;
|
return this;
|
||||||
@@ -431,7 +430,7 @@ public class GeoData {
|
|||||||
|
|
||||||
private String timeZone;
|
private String timeZone;
|
||||||
|
|
||||||
private Long postalCode;
|
private String postalCode;
|
||||||
|
|
||||||
private Optional<Boolean> inPrivacyRestrictedCountry;
|
private Optional<Boolean> inPrivacyRestrictedCountry;
|
||||||
|
|
||||||
@@ -511,7 +510,7 @@ public class GeoData {
|
|||||||
/**
|
/**
|
||||||
* The postal code of the location.
|
* The postal code of the location.
|
||||||
*/
|
*/
|
||||||
public Builder postalCode(long postalCode) {
|
public Builder postalCode(String postalCode) {
|
||||||
Utils.checkNotNull(postalCode, "postalCode");
|
Utils.checkNotNull(postalCode, "postalCode");
|
||||||
this.postalCode = postalCode;
|
this.postalCode = postalCode;
|
||||||
return this;
|
return this;
|
||||||
|
|||||||
@@ -14,7 +14,6 @@ import com.fasterxml.jackson.core.type.TypeReference;
|
|||||||
import dev.plexapi.sdk.utils.LazySingletonValue;
|
import dev.plexapi.sdk.utils.LazySingletonValue;
|
||||||
import dev.plexapi.sdk.utils.Utils;
|
import dev.plexapi.sdk.utils.Utils;
|
||||||
import java.lang.Boolean;
|
import java.lang.Boolean;
|
||||||
import java.lang.Long;
|
|
||||||
import java.lang.Override;
|
import java.lang.Override;
|
||||||
import java.lang.String;
|
import java.lang.String;
|
||||||
import java.util.Objects;
|
import java.util.Objects;
|
||||||
@@ -67,7 +66,7 @@ public class GetGeoDataGeoData {
|
|||||||
* The postal code of the location.
|
* The postal code of the location.
|
||||||
*/
|
*/
|
||||||
@JsonProperty("postal_code")
|
@JsonProperty("postal_code")
|
||||||
private long postalCode;
|
private String postalCode;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Indicates if the country has privacy restrictions.
|
* Indicates if the country has privacy restrictions.
|
||||||
@@ -103,7 +102,7 @@ public class GetGeoDataGeoData {
|
|||||||
@JsonProperty("city") String city,
|
@JsonProperty("city") String city,
|
||||||
@JsonProperty("european_union_member") Optional<Boolean> europeanUnionMember,
|
@JsonProperty("european_union_member") Optional<Boolean> europeanUnionMember,
|
||||||
@JsonProperty("time_zone") String timeZone,
|
@JsonProperty("time_zone") String timeZone,
|
||||||
@JsonProperty("postal_code") long postalCode,
|
@JsonProperty("postal_code") String postalCode,
|
||||||
@JsonProperty("in_privacy_restricted_country") Optional<Boolean> inPrivacyRestrictedCountry,
|
@JsonProperty("in_privacy_restricted_country") Optional<Boolean> inPrivacyRestrictedCountry,
|
||||||
@JsonProperty("in_privacy_restricted_region") Optional<Boolean> inPrivacyRestrictedRegion,
|
@JsonProperty("in_privacy_restricted_region") Optional<Boolean> inPrivacyRestrictedRegion,
|
||||||
@JsonProperty("subdivisions") String subdivisions,
|
@JsonProperty("subdivisions") String subdivisions,
|
||||||
@@ -138,7 +137,7 @@ public class GetGeoDataGeoData {
|
|||||||
String country,
|
String country,
|
||||||
String city,
|
String city,
|
||||||
String timeZone,
|
String timeZone,
|
||||||
long postalCode,
|
String postalCode,
|
||||||
String subdivisions,
|
String subdivisions,
|
||||||
String coordinates) {
|
String coordinates) {
|
||||||
this(code, continentCode, country, city, Optional.empty(), timeZone, postalCode, Optional.empty(), Optional.empty(), subdivisions, coordinates);
|
this(code, continentCode, country, city, Optional.empty(), timeZone, postalCode, Optional.empty(), Optional.empty(), subdivisions, coordinates);
|
||||||
@@ -196,7 +195,7 @@ public class GetGeoDataGeoData {
|
|||||||
* The postal code of the location.
|
* The postal code of the location.
|
||||||
*/
|
*/
|
||||||
@JsonIgnore
|
@JsonIgnore
|
||||||
public long postalCode() {
|
public String postalCode() {
|
||||||
return postalCode;
|
return postalCode;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -302,7 +301,7 @@ public class GetGeoDataGeoData {
|
|||||||
/**
|
/**
|
||||||
* The postal code of the location.
|
* The postal code of the location.
|
||||||
*/
|
*/
|
||||||
public GetGeoDataGeoData withPostalCode(long postalCode) {
|
public GetGeoDataGeoData withPostalCode(String postalCode) {
|
||||||
Utils.checkNotNull(postalCode, "postalCode");
|
Utils.checkNotNull(postalCode, "postalCode");
|
||||||
this.postalCode = postalCode;
|
this.postalCode = postalCode;
|
||||||
return this;
|
return this;
|
||||||
@@ -431,7 +430,7 @@ public class GetGeoDataGeoData {
|
|||||||
|
|
||||||
private String timeZone;
|
private String timeZone;
|
||||||
|
|
||||||
private Long postalCode;
|
private String postalCode;
|
||||||
|
|
||||||
private Optional<Boolean> inPrivacyRestrictedCountry;
|
private Optional<Boolean> inPrivacyRestrictedCountry;
|
||||||
|
|
||||||
@@ -511,7 +510,7 @@ public class GetGeoDataGeoData {
|
|||||||
/**
|
/**
|
||||||
* The postal code of the location.
|
* The postal code of the location.
|
||||||
*/
|
*/
|
||||||
public Builder postalCode(long postalCode) {
|
public Builder postalCode(String postalCode) {
|
||||||
Utils.checkNotNull(postalCode, "postalCode");
|
Utils.checkNotNull(postalCode, "postalCode");
|
||||||
this.postalCode = postalCode;
|
this.postalCode = postalCode;
|
||||||
return this;
|
return this;
|
||||||
|
|||||||
@@ -73,7 +73,7 @@ public class GetPinAuthPinContainer {
|
|||||||
|
|
||||||
@JsonInclude(Include.NON_ABSENT)
|
@JsonInclude(Include.NON_ABSENT)
|
||||||
@JsonProperty("authToken")
|
@JsonProperty("authToken")
|
||||||
private JsonNullable<? extends Object> authToken;
|
private JsonNullable<String> authToken;
|
||||||
|
|
||||||
@JsonInclude(Include.NON_ABSENT)
|
@JsonInclude(Include.NON_ABSENT)
|
||||||
@JsonProperty("newRegistration")
|
@JsonProperty("newRegistration")
|
||||||
@@ -91,7 +91,7 @@ public class GetPinAuthPinContainer {
|
|||||||
@JsonProperty("expiresIn") Optional<Long> expiresIn,
|
@JsonProperty("expiresIn") Optional<Long> expiresIn,
|
||||||
@JsonProperty("createdAt") OffsetDateTime createdAt,
|
@JsonProperty("createdAt") OffsetDateTime createdAt,
|
||||||
@JsonProperty("expiresAt") OffsetDateTime expiresAt,
|
@JsonProperty("expiresAt") OffsetDateTime expiresAt,
|
||||||
@JsonProperty("authToken") JsonNullable<? extends Object> authToken,
|
@JsonProperty("authToken") JsonNullable<String> authToken,
|
||||||
@JsonProperty("newRegistration") JsonNullable<? extends Object> newRegistration) {
|
@JsonProperty("newRegistration") JsonNullable<? extends Object> newRegistration) {
|
||||||
Utils.checkNotNull(id, "id");
|
Utils.checkNotNull(id, "id");
|
||||||
Utils.checkNotNull(code, "code");
|
Utils.checkNotNull(code, "code");
|
||||||
@@ -190,10 +190,9 @@ public class GetPinAuthPinContainer {
|
|||||||
return expiresAt;
|
return expiresAt;
|
||||||
}
|
}
|
||||||
|
|
||||||
@SuppressWarnings("unchecked")
|
|
||||||
@JsonIgnore
|
@JsonIgnore
|
||||||
public JsonNullable<Object> authToken() {
|
public JsonNullable<String> authToken() {
|
||||||
return (JsonNullable<Object>) authToken;
|
return authToken;
|
||||||
}
|
}
|
||||||
|
|
||||||
@SuppressWarnings("unchecked")
|
@SuppressWarnings("unchecked")
|
||||||
@@ -290,13 +289,13 @@ public class GetPinAuthPinContainer {
|
|||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|
||||||
public GetPinAuthPinContainer withAuthToken(Object authToken) {
|
public GetPinAuthPinContainer withAuthToken(String authToken) {
|
||||||
Utils.checkNotNull(authToken, "authToken");
|
Utils.checkNotNull(authToken, "authToken");
|
||||||
this.authToken = JsonNullable.of(authToken);
|
this.authToken = JsonNullable.of(authToken);
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|
||||||
public GetPinAuthPinContainer withAuthToken(JsonNullable<? extends Object> authToken) {
|
public GetPinAuthPinContainer withAuthToken(JsonNullable<String> authToken) {
|
||||||
Utils.checkNotNull(authToken, "authToken");
|
Utils.checkNotNull(authToken, "authToken");
|
||||||
this.authToken = authToken;
|
this.authToken = authToken;
|
||||||
return this;
|
return this;
|
||||||
@@ -394,7 +393,7 @@ public class GetPinAuthPinContainer {
|
|||||||
|
|
||||||
private OffsetDateTime expiresAt;
|
private OffsetDateTime expiresAt;
|
||||||
|
|
||||||
private JsonNullable<? extends Object> authToken = JsonNullable.undefined();
|
private JsonNullable<String> authToken = JsonNullable.undefined();
|
||||||
|
|
||||||
private JsonNullable<? extends Object> newRegistration = JsonNullable.undefined();
|
private JsonNullable<? extends Object> newRegistration = JsonNullable.undefined();
|
||||||
|
|
||||||
@@ -486,13 +485,13 @@ public class GetPinAuthPinContainer {
|
|||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|
||||||
public Builder authToken(Object authToken) {
|
public Builder authToken(String authToken) {
|
||||||
Utils.checkNotNull(authToken, "authToken");
|
Utils.checkNotNull(authToken, "authToken");
|
||||||
this.authToken = JsonNullable.of(authToken);
|
this.authToken = JsonNullable.of(authToken);
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|
||||||
public Builder authToken(JsonNullable<? extends Object> authToken) {
|
public Builder authToken(JsonNullable<String> authToken) {
|
||||||
Utils.checkNotNull(authToken, "authToken");
|
Utils.checkNotNull(authToken, "authToken");
|
||||||
this.authToken = authToken;
|
this.authToken = authToken;
|
||||||
return this;
|
return this;
|
||||||
|
|||||||
@@ -36,26 +36,44 @@ public class GetPinRequest {
|
|||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
@SpeakeasyMetadata("queryParam:style=form,explode=true,name=X-Plex-Client-Identifier")
|
@SpeakeasyMetadata("queryParam:style=form,explode=true,name=X-Plex-Client-Identifier")
|
||||||
private Optional<String> xPlexClientIdentifier;
|
private Optional<String> clientID;
|
||||||
|
|
||||||
@SpeakeasyMetadata("queryParam:style=form,explode=true,name=X-Plex-Product")
|
@SpeakeasyMetadata("queryParam:style=form,explode=true,name=X-Plex-Product")
|
||||||
private Optional<String> xPlexProduct;
|
private Optional<String> clientName;
|
||||||
|
|
||||||
|
@SpeakeasyMetadata("queryParam:style=form,explode=true,name=X-Plex-Device")
|
||||||
|
private Optional<String> deviceName;
|
||||||
|
|
||||||
|
@SpeakeasyMetadata("queryParam:style=form,explode=true,name=X-Plex-Version")
|
||||||
|
private Optional<String> clientVersion;
|
||||||
|
|
||||||
|
@SpeakeasyMetadata("queryParam:style=form,explode=true,name=X-Plex-Platform")
|
||||||
|
private Optional<String> clientPlatform;
|
||||||
|
|
||||||
@JsonCreator
|
@JsonCreator
|
||||||
public GetPinRequest(
|
public GetPinRequest(
|
||||||
Optional<Boolean> strong,
|
Optional<Boolean> strong,
|
||||||
Optional<String> xPlexClientIdentifier,
|
Optional<String> clientID,
|
||||||
Optional<String> xPlexProduct) {
|
Optional<String> clientName,
|
||||||
|
Optional<String> deviceName,
|
||||||
|
Optional<String> clientVersion,
|
||||||
|
Optional<String> clientPlatform) {
|
||||||
Utils.checkNotNull(strong, "strong");
|
Utils.checkNotNull(strong, "strong");
|
||||||
Utils.checkNotNull(xPlexClientIdentifier, "xPlexClientIdentifier");
|
Utils.checkNotNull(clientID, "clientID");
|
||||||
Utils.checkNotNull(xPlexProduct, "xPlexProduct");
|
Utils.checkNotNull(clientName, "clientName");
|
||||||
|
Utils.checkNotNull(deviceName, "deviceName");
|
||||||
|
Utils.checkNotNull(clientVersion, "clientVersion");
|
||||||
|
Utils.checkNotNull(clientPlatform, "clientPlatform");
|
||||||
this.strong = strong;
|
this.strong = strong;
|
||||||
this.xPlexClientIdentifier = xPlexClientIdentifier;
|
this.clientID = clientID;
|
||||||
this.xPlexProduct = xPlexProduct;
|
this.clientName = clientName;
|
||||||
|
this.deviceName = deviceName;
|
||||||
|
this.clientVersion = clientVersion;
|
||||||
|
this.clientPlatform = clientPlatform;
|
||||||
}
|
}
|
||||||
|
|
||||||
public GetPinRequest() {
|
public GetPinRequest() {
|
||||||
this(Optional.empty(), Optional.empty(), Optional.empty());
|
this(Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty());
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -76,13 +94,28 @@ public class GetPinRequest {
|
|||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
@JsonIgnore
|
@JsonIgnore
|
||||||
public Optional<String> xPlexClientIdentifier() {
|
public Optional<String> clientID() {
|
||||||
return xPlexClientIdentifier;
|
return clientID;
|
||||||
}
|
}
|
||||||
|
|
||||||
@JsonIgnore
|
@JsonIgnore
|
||||||
public Optional<String> xPlexProduct() {
|
public Optional<String> clientName() {
|
||||||
return xPlexProduct;
|
return clientName;
|
||||||
|
}
|
||||||
|
|
||||||
|
@JsonIgnore
|
||||||
|
public Optional<String> deviceName() {
|
||||||
|
return deviceName;
|
||||||
|
}
|
||||||
|
|
||||||
|
@JsonIgnore
|
||||||
|
public Optional<String> clientVersion() {
|
||||||
|
return clientVersion;
|
||||||
|
}
|
||||||
|
|
||||||
|
@JsonIgnore
|
||||||
|
public Optional<String> clientPlatform() {
|
||||||
|
return clientPlatform;
|
||||||
}
|
}
|
||||||
|
|
||||||
public final static Builder builder() {
|
public final static Builder builder() {
|
||||||
@@ -119,9 +152,9 @@ public class GetPinRequest {
|
|||||||
* (UUID, serial number, or other number unique per device)
|
* (UUID, serial number, or other number unique per device)
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
public GetPinRequest withXPlexClientIdentifier(String xPlexClientIdentifier) {
|
public GetPinRequest withClientID(String clientID) {
|
||||||
Utils.checkNotNull(xPlexClientIdentifier, "xPlexClientIdentifier");
|
Utils.checkNotNull(clientID, "clientID");
|
||||||
this.xPlexClientIdentifier = Optional.ofNullable(xPlexClientIdentifier);
|
this.clientID = Optional.ofNullable(clientID);
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -131,21 +164,57 @@ public class GetPinRequest {
|
|||||||
* (UUID, serial number, or other number unique per device)
|
* (UUID, serial number, or other number unique per device)
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
public GetPinRequest withXPlexClientIdentifier(Optional<String> xPlexClientIdentifier) {
|
public GetPinRequest withClientID(Optional<String> clientID) {
|
||||||
Utils.checkNotNull(xPlexClientIdentifier, "xPlexClientIdentifier");
|
Utils.checkNotNull(clientID, "clientID");
|
||||||
this.xPlexClientIdentifier = xPlexClientIdentifier;
|
this.clientID = clientID;
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|
||||||
public GetPinRequest withXPlexProduct(String xPlexProduct) {
|
public GetPinRequest withClientName(String clientName) {
|
||||||
Utils.checkNotNull(xPlexProduct, "xPlexProduct");
|
Utils.checkNotNull(clientName, "clientName");
|
||||||
this.xPlexProduct = Optional.ofNullable(xPlexProduct);
|
this.clientName = Optional.ofNullable(clientName);
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|
||||||
public GetPinRequest withXPlexProduct(Optional<String> xPlexProduct) {
|
public GetPinRequest withClientName(Optional<String> clientName) {
|
||||||
Utils.checkNotNull(xPlexProduct, "xPlexProduct");
|
Utils.checkNotNull(clientName, "clientName");
|
||||||
this.xPlexProduct = xPlexProduct;
|
this.clientName = clientName;
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public GetPinRequest withDeviceName(String deviceName) {
|
||||||
|
Utils.checkNotNull(deviceName, "deviceName");
|
||||||
|
this.deviceName = Optional.ofNullable(deviceName);
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public GetPinRequest withDeviceName(Optional<String> deviceName) {
|
||||||
|
Utils.checkNotNull(deviceName, "deviceName");
|
||||||
|
this.deviceName = deviceName;
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public GetPinRequest withClientVersion(String clientVersion) {
|
||||||
|
Utils.checkNotNull(clientVersion, "clientVersion");
|
||||||
|
this.clientVersion = Optional.ofNullable(clientVersion);
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public GetPinRequest withClientVersion(Optional<String> clientVersion) {
|
||||||
|
Utils.checkNotNull(clientVersion, "clientVersion");
|
||||||
|
this.clientVersion = clientVersion;
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public GetPinRequest withClientPlatform(String clientPlatform) {
|
||||||
|
Utils.checkNotNull(clientPlatform, "clientPlatform");
|
||||||
|
this.clientPlatform = Optional.ofNullable(clientPlatform);
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public GetPinRequest withClientPlatform(Optional<String> clientPlatform) {
|
||||||
|
Utils.checkNotNull(clientPlatform, "clientPlatform");
|
||||||
|
this.clientPlatform = clientPlatform;
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -160,33 +229,48 @@ public class GetPinRequest {
|
|||||||
GetPinRequest other = (GetPinRequest) o;
|
GetPinRequest other = (GetPinRequest) o;
|
||||||
return
|
return
|
||||||
Objects.deepEquals(this.strong, other.strong) &&
|
Objects.deepEquals(this.strong, other.strong) &&
|
||||||
Objects.deepEquals(this.xPlexClientIdentifier, other.xPlexClientIdentifier) &&
|
Objects.deepEquals(this.clientID, other.clientID) &&
|
||||||
Objects.deepEquals(this.xPlexProduct, other.xPlexProduct);
|
Objects.deepEquals(this.clientName, other.clientName) &&
|
||||||
|
Objects.deepEquals(this.deviceName, other.deviceName) &&
|
||||||
|
Objects.deepEquals(this.clientVersion, other.clientVersion) &&
|
||||||
|
Objects.deepEquals(this.clientPlatform, other.clientPlatform);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public int hashCode() {
|
public int hashCode() {
|
||||||
return Objects.hash(
|
return Objects.hash(
|
||||||
strong,
|
strong,
|
||||||
xPlexClientIdentifier,
|
clientID,
|
||||||
xPlexProduct);
|
clientName,
|
||||||
|
deviceName,
|
||||||
|
clientVersion,
|
||||||
|
clientPlatform);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public String toString() {
|
public String toString() {
|
||||||
return Utils.toString(GetPinRequest.class,
|
return Utils.toString(GetPinRequest.class,
|
||||||
"strong", strong,
|
"strong", strong,
|
||||||
"xPlexClientIdentifier", xPlexClientIdentifier,
|
"clientID", clientID,
|
||||||
"xPlexProduct", xPlexProduct);
|
"clientName", clientName,
|
||||||
|
"deviceName", deviceName,
|
||||||
|
"clientVersion", clientVersion,
|
||||||
|
"clientPlatform", clientPlatform);
|
||||||
}
|
}
|
||||||
|
|
||||||
public final static class Builder {
|
public final static class Builder {
|
||||||
|
|
||||||
private Optional<Boolean> strong;
|
private Optional<Boolean> strong;
|
||||||
|
|
||||||
private Optional<String> xPlexClientIdentifier = Optional.empty();
|
private Optional<String> clientID = Optional.empty();
|
||||||
|
|
||||||
private Optional<String> xPlexProduct = Optional.empty();
|
private Optional<String> clientName = Optional.empty();
|
||||||
|
|
||||||
|
private Optional<String> deviceName = Optional.empty();
|
||||||
|
|
||||||
|
private Optional<String> clientVersion = Optional.empty();
|
||||||
|
|
||||||
|
private Optional<String> clientPlatform = Optional.empty();
|
||||||
|
|
||||||
private Builder() {
|
private Builder() {
|
||||||
// force use of static builder() method
|
// force use of static builder() method
|
||||||
@@ -222,9 +306,9 @@ public class GetPinRequest {
|
|||||||
* (UUID, serial number, or other number unique per device)
|
* (UUID, serial number, or other number unique per device)
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
public Builder xPlexClientIdentifier(String xPlexClientIdentifier) {
|
public Builder clientID(String clientID) {
|
||||||
Utils.checkNotNull(xPlexClientIdentifier, "xPlexClientIdentifier");
|
Utils.checkNotNull(clientID, "clientID");
|
||||||
this.xPlexClientIdentifier = Optional.ofNullable(xPlexClientIdentifier);
|
this.clientID = Optional.ofNullable(clientID);
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -234,21 +318,57 @@ public class GetPinRequest {
|
|||||||
* (UUID, serial number, or other number unique per device)
|
* (UUID, serial number, or other number unique per device)
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
public Builder xPlexClientIdentifier(Optional<String> xPlexClientIdentifier) {
|
public Builder clientID(Optional<String> clientID) {
|
||||||
Utils.checkNotNull(xPlexClientIdentifier, "xPlexClientIdentifier");
|
Utils.checkNotNull(clientID, "clientID");
|
||||||
this.xPlexClientIdentifier = xPlexClientIdentifier;
|
this.clientID = clientID;
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|
||||||
public Builder xPlexProduct(String xPlexProduct) {
|
public Builder clientName(String clientName) {
|
||||||
Utils.checkNotNull(xPlexProduct, "xPlexProduct");
|
Utils.checkNotNull(clientName, "clientName");
|
||||||
this.xPlexProduct = Optional.ofNullable(xPlexProduct);
|
this.clientName = Optional.ofNullable(clientName);
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|
||||||
public Builder xPlexProduct(Optional<String> xPlexProduct) {
|
public Builder clientName(Optional<String> clientName) {
|
||||||
Utils.checkNotNull(xPlexProduct, "xPlexProduct");
|
Utils.checkNotNull(clientName, "clientName");
|
||||||
this.xPlexProduct = xPlexProduct;
|
this.clientName = clientName;
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Builder deviceName(String deviceName) {
|
||||||
|
Utils.checkNotNull(deviceName, "deviceName");
|
||||||
|
this.deviceName = Optional.ofNullable(deviceName);
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Builder deviceName(Optional<String> deviceName) {
|
||||||
|
Utils.checkNotNull(deviceName, "deviceName");
|
||||||
|
this.deviceName = deviceName;
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Builder clientVersion(String clientVersion) {
|
||||||
|
Utils.checkNotNull(clientVersion, "clientVersion");
|
||||||
|
this.clientVersion = Optional.ofNullable(clientVersion);
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Builder clientVersion(Optional<String> clientVersion) {
|
||||||
|
Utils.checkNotNull(clientVersion, "clientVersion");
|
||||||
|
this.clientVersion = clientVersion;
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Builder clientPlatform(String clientPlatform) {
|
||||||
|
Utils.checkNotNull(clientPlatform, "clientPlatform");
|
||||||
|
this.clientPlatform = Optional.ofNullable(clientPlatform);
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Builder clientPlatform(Optional<String> clientPlatform) {
|
||||||
|
Utils.checkNotNull(clientPlatform, "clientPlatform");
|
||||||
|
this.clientPlatform = clientPlatform;
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -257,8 +377,11 @@ public class GetPinRequest {
|
|||||||
strong = _SINGLETON_VALUE_Strong.value();
|
strong = _SINGLETON_VALUE_Strong.value();
|
||||||
} return new GetPinRequest(
|
} return new GetPinRequest(
|
||||||
strong,
|
strong,
|
||||||
xPlexClientIdentifier,
|
clientID,
|
||||||
xPlexProduct);
|
clientName,
|
||||||
|
deviceName,
|
||||||
|
clientVersion,
|
||||||
|
clientPlatform);
|
||||||
}
|
}
|
||||||
|
|
||||||
private static final LazySingletonValue<Optional<Boolean>> _SINGLETON_VALUE_Strong =
|
private static final LazySingletonValue<Optional<Boolean>> _SINGLETON_VALUE_Strong =
|
||||||
|
|||||||
@@ -4,21 +4,13 @@
|
|||||||
|
|
||||||
package dev.plexapi.sdk.models.operations;
|
package dev.plexapi.sdk.models.operations;
|
||||||
|
|
||||||
import com.fasterxml.jackson.core.type.TypeReference;
|
|
||||||
import dev.plexapi.sdk.utils.LazySingletonValue;
|
|
||||||
import dev.plexapi.sdk.utils.Utils;
|
import dev.plexapi.sdk.utils.Utils;
|
||||||
import java.lang.Boolean;
|
|
||||||
import java.lang.String;
|
import java.lang.String;
|
||||||
import java.util.Optional;
|
import java.util.Optional;
|
||||||
|
|
||||||
public class GetPinRequestBuilder {
|
public class GetPinRequestBuilder {
|
||||||
|
|
||||||
private Optional<Boolean> strong = Utils.readDefaultOrConstValue(
|
private GetPinRequest request;
|
||||||
"strong",
|
|
||||||
"false",
|
|
||||||
new TypeReference<Optional<Boolean>>() {});
|
|
||||||
private Optional<String> xPlexClientIdentifier = Optional.empty();
|
|
||||||
private Optional<String> xPlexProduct = Optional.empty();
|
|
||||||
private Optional<String> serverURL = Optional.empty();
|
private Optional<String> serverURL = Optional.empty();
|
||||||
private final SDKMethodInterfaces.MethodCallGetPin sdk;
|
private final SDKMethodInterfaces.MethodCallGetPin sdk;
|
||||||
|
|
||||||
@@ -26,39 +18,9 @@ public class GetPinRequestBuilder {
|
|||||||
this.sdk = sdk;
|
this.sdk = sdk;
|
||||||
}
|
}
|
||||||
|
|
||||||
public GetPinRequestBuilder strong(boolean strong) {
|
public GetPinRequestBuilder request(dev.plexapi.sdk.models.operations.GetPinRequest request) {
|
||||||
Utils.checkNotNull(strong, "strong");
|
Utils.checkNotNull(request, "request");
|
||||||
this.strong = Optional.of(strong);
|
this.request = request;
|
||||||
return this;
|
|
||||||
}
|
|
||||||
|
|
||||||
public GetPinRequestBuilder strong(java.util.Optional<java.lang.Boolean> strong) {
|
|
||||||
Utils.checkNotNull(strong, "strong");
|
|
||||||
this.strong = strong;
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
|
|
||||||
public GetPinRequestBuilder xPlexClientIdentifier(java.lang.String xPlexClientIdentifier) {
|
|
||||||
Utils.checkNotNull(xPlexClientIdentifier, "xPlexClientIdentifier");
|
|
||||||
this.xPlexClientIdentifier = Optional.of(xPlexClientIdentifier);
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
|
|
||||||
public GetPinRequestBuilder xPlexClientIdentifier(java.util.Optional<java.lang.String> xPlexClientIdentifier) {
|
|
||||||
Utils.checkNotNull(xPlexClientIdentifier, "xPlexClientIdentifier");
|
|
||||||
this.xPlexClientIdentifier = xPlexClientIdentifier;
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
|
|
||||||
public GetPinRequestBuilder xPlexProduct(java.lang.String xPlexProduct) {
|
|
||||||
Utils.checkNotNull(xPlexProduct, "xPlexProduct");
|
|
||||||
this.xPlexProduct = Optional.of(xPlexProduct);
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
|
|
||||||
public GetPinRequestBuilder xPlexProduct(java.util.Optional<java.lang.String> xPlexProduct) {
|
|
||||||
Utils.checkNotNull(xPlexProduct, "xPlexProduct");
|
|
||||||
this.xPlexProduct = xPlexProduct;
|
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -75,19 +37,9 @@ public class GetPinRequestBuilder {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public GetPinResponse call() throws Exception {
|
public GetPinResponse call() throws Exception {
|
||||||
if (strong == null) {
|
|
||||||
strong = _SINGLETON_VALUE_Strong.value();
|
|
||||||
}
|
|
||||||
return sdk.getPin(
|
return sdk.getPin(
|
||||||
strong,
|
request,
|
||||||
xPlexClientIdentifier,
|
|
||||||
xPlexProduct,
|
|
||||||
serverURL);
|
serverURL);
|
||||||
}
|
}
|
||||||
|
|
||||||
private static final LazySingletonValue<Optional<Boolean>> _SINGLETON_VALUE_Strong =
|
|
||||||
new LazySingletonValue<>(
|
|
||||||
"strong",
|
|
||||||
"false",
|
|
||||||
new TypeReference<Optional<Boolean>>() {});
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -27,7 +27,7 @@ public class GetServerResourcesRequest {
|
|||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
@SpeakeasyMetadata("queryParam:style=form,explode=true,name=X-Plex-Client-Identifier")
|
@SpeakeasyMetadata("queryParam:style=form,explode=true,name=X-Plex-Client-Identifier")
|
||||||
private Optional<String> xPlexClientIdentifier;
|
private Optional<String> clientID;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Include Https entries in the results
|
* Include Https entries in the results
|
||||||
@@ -51,15 +51,15 @@ public class GetServerResourcesRequest {
|
|||||||
|
|
||||||
@JsonCreator
|
@JsonCreator
|
||||||
public GetServerResourcesRequest(
|
public GetServerResourcesRequest(
|
||||||
Optional<String> xPlexClientIdentifier,
|
Optional<String> clientID,
|
||||||
Optional<? extends IncludeHttps> includeHttps,
|
Optional<? extends IncludeHttps> includeHttps,
|
||||||
Optional<? extends IncludeRelay> includeRelay,
|
Optional<? extends IncludeRelay> includeRelay,
|
||||||
Optional<? extends IncludeIPv6> includeIPv6) {
|
Optional<? extends IncludeIPv6> includeIPv6) {
|
||||||
Utils.checkNotNull(xPlexClientIdentifier, "xPlexClientIdentifier");
|
Utils.checkNotNull(clientID, "clientID");
|
||||||
Utils.checkNotNull(includeHttps, "includeHttps");
|
Utils.checkNotNull(includeHttps, "includeHttps");
|
||||||
Utils.checkNotNull(includeRelay, "includeRelay");
|
Utils.checkNotNull(includeRelay, "includeRelay");
|
||||||
Utils.checkNotNull(includeIPv6, "includeIPv6");
|
Utils.checkNotNull(includeIPv6, "includeIPv6");
|
||||||
this.xPlexClientIdentifier = xPlexClientIdentifier;
|
this.clientID = clientID;
|
||||||
this.includeHttps = includeHttps;
|
this.includeHttps = includeHttps;
|
||||||
this.includeRelay = includeRelay;
|
this.includeRelay = includeRelay;
|
||||||
this.includeIPv6 = includeIPv6;
|
this.includeIPv6 = includeIPv6;
|
||||||
@@ -76,8 +76,8 @@ public class GetServerResourcesRequest {
|
|||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
@JsonIgnore
|
@JsonIgnore
|
||||||
public Optional<String> xPlexClientIdentifier() {
|
public Optional<String> clientID() {
|
||||||
return xPlexClientIdentifier;
|
return clientID;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -119,9 +119,9 @@ public class GetServerResourcesRequest {
|
|||||||
* (UUID, serial number, or other number unique per device)
|
* (UUID, serial number, or other number unique per device)
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
public GetServerResourcesRequest withXPlexClientIdentifier(String xPlexClientIdentifier) {
|
public GetServerResourcesRequest withClientID(String clientID) {
|
||||||
Utils.checkNotNull(xPlexClientIdentifier, "xPlexClientIdentifier");
|
Utils.checkNotNull(clientID, "clientID");
|
||||||
this.xPlexClientIdentifier = Optional.ofNullable(xPlexClientIdentifier);
|
this.clientID = Optional.ofNullable(clientID);
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -131,9 +131,9 @@ public class GetServerResourcesRequest {
|
|||||||
* (UUID, serial number, or other number unique per device)
|
* (UUID, serial number, or other number unique per device)
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
public GetServerResourcesRequest withXPlexClientIdentifier(Optional<String> xPlexClientIdentifier) {
|
public GetServerResourcesRequest withClientID(Optional<String> clientID) {
|
||||||
Utils.checkNotNull(xPlexClientIdentifier, "xPlexClientIdentifier");
|
Utils.checkNotNull(clientID, "clientID");
|
||||||
this.xPlexClientIdentifier = xPlexClientIdentifier;
|
this.clientID = clientID;
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -205,7 +205,7 @@ public class GetServerResourcesRequest {
|
|||||||
}
|
}
|
||||||
GetServerResourcesRequest other = (GetServerResourcesRequest) o;
|
GetServerResourcesRequest other = (GetServerResourcesRequest) o;
|
||||||
return
|
return
|
||||||
Objects.deepEquals(this.xPlexClientIdentifier, other.xPlexClientIdentifier) &&
|
Objects.deepEquals(this.clientID, other.clientID) &&
|
||||||
Objects.deepEquals(this.includeHttps, other.includeHttps) &&
|
Objects.deepEquals(this.includeHttps, other.includeHttps) &&
|
||||||
Objects.deepEquals(this.includeRelay, other.includeRelay) &&
|
Objects.deepEquals(this.includeRelay, other.includeRelay) &&
|
||||||
Objects.deepEquals(this.includeIPv6, other.includeIPv6);
|
Objects.deepEquals(this.includeIPv6, other.includeIPv6);
|
||||||
@@ -214,7 +214,7 @@ public class GetServerResourcesRequest {
|
|||||||
@Override
|
@Override
|
||||||
public int hashCode() {
|
public int hashCode() {
|
||||||
return Objects.hash(
|
return Objects.hash(
|
||||||
xPlexClientIdentifier,
|
clientID,
|
||||||
includeHttps,
|
includeHttps,
|
||||||
includeRelay,
|
includeRelay,
|
||||||
includeIPv6);
|
includeIPv6);
|
||||||
@@ -223,7 +223,7 @@ public class GetServerResourcesRequest {
|
|||||||
@Override
|
@Override
|
||||||
public String toString() {
|
public String toString() {
|
||||||
return Utils.toString(GetServerResourcesRequest.class,
|
return Utils.toString(GetServerResourcesRequest.class,
|
||||||
"xPlexClientIdentifier", xPlexClientIdentifier,
|
"clientID", clientID,
|
||||||
"includeHttps", includeHttps,
|
"includeHttps", includeHttps,
|
||||||
"includeRelay", includeRelay,
|
"includeRelay", includeRelay,
|
||||||
"includeIPv6", includeIPv6);
|
"includeIPv6", includeIPv6);
|
||||||
@@ -231,7 +231,7 @@ public class GetServerResourcesRequest {
|
|||||||
|
|
||||||
public final static class Builder {
|
public final static class Builder {
|
||||||
|
|
||||||
private Optional<String> xPlexClientIdentifier = Optional.empty();
|
private Optional<String> clientID = Optional.empty();
|
||||||
|
|
||||||
private Optional<? extends IncludeHttps> includeHttps;
|
private Optional<? extends IncludeHttps> includeHttps;
|
||||||
|
|
||||||
@@ -249,9 +249,9 @@ public class GetServerResourcesRequest {
|
|||||||
* (UUID, serial number, or other number unique per device)
|
* (UUID, serial number, or other number unique per device)
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
public Builder xPlexClientIdentifier(String xPlexClientIdentifier) {
|
public Builder clientID(String clientID) {
|
||||||
Utils.checkNotNull(xPlexClientIdentifier, "xPlexClientIdentifier");
|
Utils.checkNotNull(clientID, "clientID");
|
||||||
this.xPlexClientIdentifier = Optional.ofNullable(xPlexClientIdentifier);
|
this.clientID = Optional.ofNullable(clientID);
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -261,9 +261,9 @@ public class GetServerResourcesRequest {
|
|||||||
* (UUID, serial number, or other number unique per device)
|
* (UUID, serial number, or other number unique per device)
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
public Builder xPlexClientIdentifier(Optional<String> xPlexClientIdentifier) {
|
public Builder clientID(Optional<String> clientID) {
|
||||||
Utils.checkNotNull(xPlexClientIdentifier, "xPlexClientIdentifier");
|
Utils.checkNotNull(clientID, "clientID");
|
||||||
this.xPlexClientIdentifier = xPlexClientIdentifier;
|
this.clientID = clientID;
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -335,7 +335,7 @@ public class GetServerResourcesRequest {
|
|||||||
if (includeIPv6 == null) {
|
if (includeIPv6 == null) {
|
||||||
includeIPv6 = _SINGLETON_VALUE_IncludeIPv6.value();
|
includeIPv6 = _SINGLETON_VALUE_IncludeIPv6.value();
|
||||||
} return new GetServerResourcesRequest(
|
} return new GetServerResourcesRequest(
|
||||||
xPlexClientIdentifier,
|
clientID,
|
||||||
includeHttps,
|
includeHttps,
|
||||||
includeRelay,
|
includeRelay,
|
||||||
includeIPv6);
|
includeIPv6);
|
||||||
|
|||||||
@@ -12,7 +12,7 @@ import java.util.Optional;
|
|||||||
|
|
||||||
public class GetServerResourcesRequestBuilder {
|
public class GetServerResourcesRequestBuilder {
|
||||||
|
|
||||||
private Optional<String> xPlexClientIdentifier = Optional.empty();
|
private Optional<String> clientID = Optional.empty();
|
||||||
private Optional<? extends IncludeHttps> includeHttps = Utils.readDefaultOrConstValue(
|
private Optional<? extends IncludeHttps> includeHttps = Utils.readDefaultOrConstValue(
|
||||||
"includeHttps",
|
"includeHttps",
|
||||||
"0",
|
"0",
|
||||||
@@ -32,15 +32,15 @@ public class GetServerResourcesRequestBuilder {
|
|||||||
this.sdk = sdk;
|
this.sdk = sdk;
|
||||||
}
|
}
|
||||||
|
|
||||||
public GetServerResourcesRequestBuilder xPlexClientIdentifier(java.lang.String xPlexClientIdentifier) {
|
public GetServerResourcesRequestBuilder clientID(java.lang.String clientID) {
|
||||||
Utils.checkNotNull(xPlexClientIdentifier, "xPlexClientIdentifier");
|
Utils.checkNotNull(clientID, "clientID");
|
||||||
this.xPlexClientIdentifier = Optional.of(xPlexClientIdentifier);
|
this.clientID = Optional.of(clientID);
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|
||||||
public GetServerResourcesRequestBuilder xPlexClientIdentifier(java.util.Optional<java.lang.String> xPlexClientIdentifier) {
|
public GetServerResourcesRequestBuilder clientID(java.util.Optional<java.lang.String> clientID) {
|
||||||
Utils.checkNotNull(xPlexClientIdentifier, "xPlexClientIdentifier");
|
Utils.checkNotNull(clientID, "clientID");
|
||||||
this.xPlexClientIdentifier = xPlexClientIdentifier;
|
this.clientID = clientID;
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -103,7 +103,7 @@ public class GetServerResourcesRequestBuilder {
|
|||||||
includeIPv6 = _SINGLETON_VALUE_IncludeIPv6.value();
|
includeIPv6 = _SINGLETON_VALUE_IncludeIPv6.value();
|
||||||
}
|
}
|
||||||
return sdk.getServerResources(
|
return sdk.getServerResources(
|
||||||
xPlexClientIdentifier,
|
clientID,
|
||||||
includeHttps,
|
includeHttps,
|
||||||
includeRelay,
|
includeRelay,
|
||||||
includeIPv6,
|
includeIPv6,
|
||||||
|
|||||||
@@ -73,7 +73,7 @@ public class GetTokenByPinIdAuthPinContainer {
|
|||||||
|
|
||||||
@JsonInclude(Include.NON_ABSENT)
|
@JsonInclude(Include.NON_ABSENT)
|
||||||
@JsonProperty("authToken")
|
@JsonProperty("authToken")
|
||||||
private JsonNullable<? extends Object> authToken;
|
private JsonNullable<String> authToken;
|
||||||
|
|
||||||
@JsonInclude(Include.NON_ABSENT)
|
@JsonInclude(Include.NON_ABSENT)
|
||||||
@JsonProperty("newRegistration")
|
@JsonProperty("newRegistration")
|
||||||
@@ -91,7 +91,7 @@ public class GetTokenByPinIdAuthPinContainer {
|
|||||||
@JsonProperty("expiresIn") Optional<Long> expiresIn,
|
@JsonProperty("expiresIn") Optional<Long> expiresIn,
|
||||||
@JsonProperty("createdAt") OffsetDateTime createdAt,
|
@JsonProperty("createdAt") OffsetDateTime createdAt,
|
||||||
@JsonProperty("expiresAt") OffsetDateTime expiresAt,
|
@JsonProperty("expiresAt") OffsetDateTime expiresAt,
|
||||||
@JsonProperty("authToken") JsonNullable<? extends Object> authToken,
|
@JsonProperty("authToken") JsonNullable<String> authToken,
|
||||||
@JsonProperty("newRegistration") JsonNullable<? extends Object> newRegistration) {
|
@JsonProperty("newRegistration") JsonNullable<? extends Object> newRegistration) {
|
||||||
Utils.checkNotNull(id, "id");
|
Utils.checkNotNull(id, "id");
|
||||||
Utils.checkNotNull(code, "code");
|
Utils.checkNotNull(code, "code");
|
||||||
@@ -190,10 +190,9 @@ public class GetTokenByPinIdAuthPinContainer {
|
|||||||
return expiresAt;
|
return expiresAt;
|
||||||
}
|
}
|
||||||
|
|
||||||
@SuppressWarnings("unchecked")
|
|
||||||
@JsonIgnore
|
@JsonIgnore
|
||||||
public JsonNullable<Object> authToken() {
|
public JsonNullable<String> authToken() {
|
||||||
return (JsonNullable<Object>) authToken;
|
return authToken;
|
||||||
}
|
}
|
||||||
|
|
||||||
@SuppressWarnings("unchecked")
|
@SuppressWarnings("unchecked")
|
||||||
@@ -290,13 +289,13 @@ public class GetTokenByPinIdAuthPinContainer {
|
|||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|
||||||
public GetTokenByPinIdAuthPinContainer withAuthToken(Object authToken) {
|
public GetTokenByPinIdAuthPinContainer withAuthToken(String authToken) {
|
||||||
Utils.checkNotNull(authToken, "authToken");
|
Utils.checkNotNull(authToken, "authToken");
|
||||||
this.authToken = JsonNullable.of(authToken);
|
this.authToken = JsonNullable.of(authToken);
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|
||||||
public GetTokenByPinIdAuthPinContainer withAuthToken(JsonNullable<? extends Object> authToken) {
|
public GetTokenByPinIdAuthPinContainer withAuthToken(JsonNullable<String> authToken) {
|
||||||
Utils.checkNotNull(authToken, "authToken");
|
Utils.checkNotNull(authToken, "authToken");
|
||||||
this.authToken = authToken;
|
this.authToken = authToken;
|
||||||
return this;
|
return this;
|
||||||
@@ -394,7 +393,7 @@ public class GetTokenByPinIdAuthPinContainer {
|
|||||||
|
|
||||||
private OffsetDateTime expiresAt;
|
private OffsetDateTime expiresAt;
|
||||||
|
|
||||||
private JsonNullable<? extends Object> authToken = JsonNullable.undefined();
|
private JsonNullable<String> authToken = JsonNullable.undefined();
|
||||||
|
|
||||||
private JsonNullable<? extends Object> newRegistration = JsonNullable.undefined();
|
private JsonNullable<? extends Object> newRegistration = JsonNullable.undefined();
|
||||||
|
|
||||||
@@ -486,13 +485,13 @@ public class GetTokenByPinIdAuthPinContainer {
|
|||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|
||||||
public Builder authToken(Object authToken) {
|
public Builder authToken(String authToken) {
|
||||||
Utils.checkNotNull(authToken, "authToken");
|
Utils.checkNotNull(authToken, "authToken");
|
||||||
this.authToken = JsonNullable.of(authToken);
|
this.authToken = JsonNullable.of(authToken);
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|
||||||
public Builder authToken(JsonNullable<? extends Object> authToken) {
|
public Builder authToken(JsonNullable<String> authToken) {
|
||||||
Utils.checkNotNull(authToken, "authToken");
|
Utils.checkNotNull(authToken, "authToken");
|
||||||
this.authToken = authToken;
|
this.authToken = authToken;
|
||||||
return this;
|
return this;
|
||||||
|
|||||||
@@ -14,7 +14,6 @@ import com.fasterxml.jackson.core.type.TypeReference;
|
|||||||
import dev.plexapi.sdk.utils.LazySingletonValue;
|
import dev.plexapi.sdk.utils.LazySingletonValue;
|
||||||
import dev.plexapi.sdk.utils.Utils;
|
import dev.plexapi.sdk.utils.Utils;
|
||||||
import java.lang.Boolean;
|
import java.lang.Boolean;
|
||||||
import java.lang.Long;
|
|
||||||
import java.lang.Override;
|
import java.lang.Override;
|
||||||
import java.lang.String;
|
import java.lang.String;
|
||||||
import java.util.Objects;
|
import java.util.Objects;
|
||||||
@@ -67,7 +66,7 @@ public class GetTokenByPinIdGeoData {
|
|||||||
* The postal code of the location.
|
* The postal code of the location.
|
||||||
*/
|
*/
|
||||||
@JsonProperty("postal_code")
|
@JsonProperty("postal_code")
|
||||||
private long postalCode;
|
private String postalCode;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Indicates if the country has privacy restrictions.
|
* Indicates if the country has privacy restrictions.
|
||||||
@@ -103,7 +102,7 @@ public class GetTokenByPinIdGeoData {
|
|||||||
@JsonProperty("city") String city,
|
@JsonProperty("city") String city,
|
||||||
@JsonProperty("european_union_member") Optional<Boolean> europeanUnionMember,
|
@JsonProperty("european_union_member") Optional<Boolean> europeanUnionMember,
|
||||||
@JsonProperty("time_zone") String timeZone,
|
@JsonProperty("time_zone") String timeZone,
|
||||||
@JsonProperty("postal_code") long postalCode,
|
@JsonProperty("postal_code") String postalCode,
|
||||||
@JsonProperty("in_privacy_restricted_country") Optional<Boolean> inPrivacyRestrictedCountry,
|
@JsonProperty("in_privacy_restricted_country") Optional<Boolean> inPrivacyRestrictedCountry,
|
||||||
@JsonProperty("in_privacy_restricted_region") Optional<Boolean> inPrivacyRestrictedRegion,
|
@JsonProperty("in_privacy_restricted_region") Optional<Boolean> inPrivacyRestrictedRegion,
|
||||||
@JsonProperty("subdivisions") String subdivisions,
|
@JsonProperty("subdivisions") String subdivisions,
|
||||||
@@ -138,7 +137,7 @@ public class GetTokenByPinIdGeoData {
|
|||||||
String country,
|
String country,
|
||||||
String city,
|
String city,
|
||||||
String timeZone,
|
String timeZone,
|
||||||
long postalCode,
|
String postalCode,
|
||||||
String subdivisions,
|
String subdivisions,
|
||||||
String coordinates) {
|
String coordinates) {
|
||||||
this(code, continentCode, country, city, Optional.empty(), timeZone, postalCode, Optional.empty(), Optional.empty(), subdivisions, coordinates);
|
this(code, continentCode, country, city, Optional.empty(), timeZone, postalCode, Optional.empty(), Optional.empty(), subdivisions, coordinates);
|
||||||
@@ -196,7 +195,7 @@ public class GetTokenByPinIdGeoData {
|
|||||||
* The postal code of the location.
|
* The postal code of the location.
|
||||||
*/
|
*/
|
||||||
@JsonIgnore
|
@JsonIgnore
|
||||||
public long postalCode() {
|
public String postalCode() {
|
||||||
return postalCode;
|
return postalCode;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -302,7 +301,7 @@ public class GetTokenByPinIdGeoData {
|
|||||||
/**
|
/**
|
||||||
* The postal code of the location.
|
* The postal code of the location.
|
||||||
*/
|
*/
|
||||||
public GetTokenByPinIdGeoData withPostalCode(long postalCode) {
|
public GetTokenByPinIdGeoData withPostalCode(String postalCode) {
|
||||||
Utils.checkNotNull(postalCode, "postalCode");
|
Utils.checkNotNull(postalCode, "postalCode");
|
||||||
this.postalCode = postalCode;
|
this.postalCode = postalCode;
|
||||||
return this;
|
return this;
|
||||||
@@ -431,7 +430,7 @@ public class GetTokenByPinIdGeoData {
|
|||||||
|
|
||||||
private String timeZone;
|
private String timeZone;
|
||||||
|
|
||||||
private Long postalCode;
|
private String postalCode;
|
||||||
|
|
||||||
private Optional<Boolean> inPrivacyRestrictedCountry;
|
private Optional<Boolean> inPrivacyRestrictedCountry;
|
||||||
|
|
||||||
@@ -511,7 +510,7 @@ public class GetTokenByPinIdGeoData {
|
|||||||
/**
|
/**
|
||||||
* The postal code of the location.
|
* The postal code of the location.
|
||||||
*/
|
*/
|
||||||
public Builder postalCode(long postalCode) {
|
public Builder postalCode(String postalCode) {
|
||||||
Utils.checkNotNull(postalCode, "postalCode");
|
Utils.checkNotNull(postalCode, "postalCode");
|
||||||
this.postalCode = postalCode;
|
this.postalCode = postalCode;
|
||||||
return this;
|
return this;
|
||||||
|
|||||||
@@ -25,7 +25,7 @@ public class GetTokenByPinIdRequest {
|
|||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
@SpeakeasyMetadata("queryParam:style=form,explode=true,name=X-Plex-Client-Identifier")
|
@SpeakeasyMetadata("queryParam:style=form,explode=true,name=X-Plex-Client-Identifier")
|
||||||
private Optional<String> xPlexClientIdentifier;
|
private Optional<String> clientID;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* The PinID to retrieve an access token for
|
* The PinID to retrieve an access token for
|
||||||
@@ -35,11 +35,11 @@ public class GetTokenByPinIdRequest {
|
|||||||
|
|
||||||
@JsonCreator
|
@JsonCreator
|
||||||
public GetTokenByPinIdRequest(
|
public GetTokenByPinIdRequest(
|
||||||
Optional<String> xPlexClientIdentifier,
|
Optional<String> clientID,
|
||||||
long pinID) {
|
long pinID) {
|
||||||
Utils.checkNotNull(xPlexClientIdentifier, "xPlexClientIdentifier");
|
Utils.checkNotNull(clientID, "clientID");
|
||||||
Utils.checkNotNull(pinID, "pinID");
|
Utils.checkNotNull(pinID, "pinID");
|
||||||
this.xPlexClientIdentifier = xPlexClientIdentifier;
|
this.clientID = clientID;
|
||||||
this.pinID = pinID;
|
this.pinID = pinID;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -55,8 +55,8 @@ public class GetTokenByPinIdRequest {
|
|||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
@JsonIgnore
|
@JsonIgnore
|
||||||
public Optional<String> xPlexClientIdentifier() {
|
public Optional<String> clientID() {
|
||||||
return xPlexClientIdentifier;
|
return clientID;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -77,9 +77,9 @@ public class GetTokenByPinIdRequest {
|
|||||||
* (UUID, serial number, or other number unique per device)
|
* (UUID, serial number, or other number unique per device)
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
public GetTokenByPinIdRequest withXPlexClientIdentifier(String xPlexClientIdentifier) {
|
public GetTokenByPinIdRequest withClientID(String clientID) {
|
||||||
Utils.checkNotNull(xPlexClientIdentifier, "xPlexClientIdentifier");
|
Utils.checkNotNull(clientID, "clientID");
|
||||||
this.xPlexClientIdentifier = Optional.ofNullable(xPlexClientIdentifier);
|
this.clientID = Optional.ofNullable(clientID);
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -89,9 +89,9 @@ public class GetTokenByPinIdRequest {
|
|||||||
* (UUID, serial number, or other number unique per device)
|
* (UUID, serial number, or other number unique per device)
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
public GetTokenByPinIdRequest withXPlexClientIdentifier(Optional<String> xPlexClientIdentifier) {
|
public GetTokenByPinIdRequest withClientID(Optional<String> clientID) {
|
||||||
Utils.checkNotNull(xPlexClientIdentifier, "xPlexClientIdentifier");
|
Utils.checkNotNull(clientID, "clientID");
|
||||||
this.xPlexClientIdentifier = xPlexClientIdentifier;
|
this.clientID = clientID;
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -114,27 +114,27 @@ public class GetTokenByPinIdRequest {
|
|||||||
}
|
}
|
||||||
GetTokenByPinIdRequest other = (GetTokenByPinIdRequest) o;
|
GetTokenByPinIdRequest other = (GetTokenByPinIdRequest) o;
|
||||||
return
|
return
|
||||||
Objects.deepEquals(this.xPlexClientIdentifier, other.xPlexClientIdentifier) &&
|
Objects.deepEquals(this.clientID, other.clientID) &&
|
||||||
Objects.deepEquals(this.pinID, other.pinID);
|
Objects.deepEquals(this.pinID, other.pinID);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public int hashCode() {
|
public int hashCode() {
|
||||||
return Objects.hash(
|
return Objects.hash(
|
||||||
xPlexClientIdentifier,
|
clientID,
|
||||||
pinID);
|
pinID);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public String toString() {
|
public String toString() {
|
||||||
return Utils.toString(GetTokenByPinIdRequest.class,
|
return Utils.toString(GetTokenByPinIdRequest.class,
|
||||||
"xPlexClientIdentifier", xPlexClientIdentifier,
|
"clientID", clientID,
|
||||||
"pinID", pinID);
|
"pinID", pinID);
|
||||||
}
|
}
|
||||||
|
|
||||||
public final static class Builder {
|
public final static class Builder {
|
||||||
|
|
||||||
private Optional<String> xPlexClientIdentifier = Optional.empty();
|
private Optional<String> clientID = Optional.empty();
|
||||||
|
|
||||||
private Long pinID;
|
private Long pinID;
|
||||||
|
|
||||||
@@ -148,9 +148,9 @@ public class GetTokenByPinIdRequest {
|
|||||||
* (UUID, serial number, or other number unique per device)
|
* (UUID, serial number, or other number unique per device)
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
public Builder xPlexClientIdentifier(String xPlexClientIdentifier) {
|
public Builder clientID(String clientID) {
|
||||||
Utils.checkNotNull(xPlexClientIdentifier, "xPlexClientIdentifier");
|
Utils.checkNotNull(clientID, "clientID");
|
||||||
this.xPlexClientIdentifier = Optional.ofNullable(xPlexClientIdentifier);
|
this.clientID = Optional.ofNullable(clientID);
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -160,9 +160,9 @@ public class GetTokenByPinIdRequest {
|
|||||||
* (UUID, serial number, or other number unique per device)
|
* (UUID, serial number, or other number unique per device)
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
public Builder xPlexClientIdentifier(Optional<String> xPlexClientIdentifier) {
|
public Builder clientID(Optional<String> clientID) {
|
||||||
Utils.checkNotNull(xPlexClientIdentifier, "xPlexClientIdentifier");
|
Utils.checkNotNull(clientID, "clientID");
|
||||||
this.xPlexClientIdentifier = xPlexClientIdentifier;
|
this.clientID = clientID;
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -177,7 +177,7 @@ public class GetTokenByPinIdRequest {
|
|||||||
|
|
||||||
public GetTokenByPinIdRequest build() {
|
public GetTokenByPinIdRequest build() {
|
||||||
return new GetTokenByPinIdRequest(
|
return new GetTokenByPinIdRequest(
|
||||||
xPlexClientIdentifier,
|
clientID,
|
||||||
pinID);
|
pinID);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -11,7 +11,7 @@ import java.util.Optional;
|
|||||||
|
|
||||||
public class GetTokenByPinIdRequestBuilder {
|
public class GetTokenByPinIdRequestBuilder {
|
||||||
|
|
||||||
private Optional<String> xPlexClientIdentifier = Optional.empty();
|
private Optional<String> clientID = Optional.empty();
|
||||||
private Long pinID;
|
private Long pinID;
|
||||||
private Optional<String> serverURL = Optional.empty();
|
private Optional<String> serverURL = Optional.empty();
|
||||||
private final SDKMethodInterfaces.MethodCallGetTokenByPinId sdk;
|
private final SDKMethodInterfaces.MethodCallGetTokenByPinId sdk;
|
||||||
@@ -20,15 +20,15 @@ public class GetTokenByPinIdRequestBuilder {
|
|||||||
this.sdk = sdk;
|
this.sdk = sdk;
|
||||||
}
|
}
|
||||||
|
|
||||||
public GetTokenByPinIdRequestBuilder xPlexClientIdentifier(java.lang.String xPlexClientIdentifier) {
|
public GetTokenByPinIdRequestBuilder clientID(java.lang.String clientID) {
|
||||||
Utils.checkNotNull(xPlexClientIdentifier, "xPlexClientIdentifier");
|
Utils.checkNotNull(clientID, "clientID");
|
||||||
this.xPlexClientIdentifier = Optional.of(xPlexClientIdentifier);
|
this.clientID = Optional.of(clientID);
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|
||||||
public GetTokenByPinIdRequestBuilder xPlexClientIdentifier(java.util.Optional<java.lang.String> xPlexClientIdentifier) {
|
public GetTokenByPinIdRequestBuilder clientID(java.util.Optional<java.lang.String> clientID) {
|
||||||
Utils.checkNotNull(xPlexClientIdentifier, "xPlexClientIdentifier");
|
Utils.checkNotNull(clientID, "clientID");
|
||||||
this.xPlexClientIdentifier = xPlexClientIdentifier;
|
this.clientID = clientID;
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -53,7 +53,7 @@ public class GetTokenByPinIdRequestBuilder {
|
|||||||
public GetTokenByPinIdResponse call() throws Exception {
|
public GetTokenByPinIdResponse call() throws Exception {
|
||||||
|
|
||||||
return sdk.getTokenByPinId(
|
return sdk.getTokenByPinId(
|
||||||
xPlexClientIdentifier,
|
clientID,
|
||||||
pinID,
|
pinID,
|
||||||
serverURL);
|
serverURL);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -25,7 +25,7 @@ public class PostUsersSignInDataRequest {
|
|||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
@SpeakeasyMetadata("queryParam:style=form,explode=true,name=X-Plex-Client-Identifier")
|
@SpeakeasyMetadata("queryParam:style=form,explode=true,name=X-Plex-Client-Identifier")
|
||||||
private Optional<String> xPlexClientIdentifier;
|
private Optional<String> clientID;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Login credentials
|
* Login credentials
|
||||||
@@ -35,11 +35,11 @@ public class PostUsersSignInDataRequest {
|
|||||||
|
|
||||||
@JsonCreator
|
@JsonCreator
|
||||||
public PostUsersSignInDataRequest(
|
public PostUsersSignInDataRequest(
|
||||||
Optional<String> xPlexClientIdentifier,
|
Optional<String> clientID,
|
||||||
Optional<? extends PostUsersSignInDataRequestBody> requestBody) {
|
Optional<? extends PostUsersSignInDataRequestBody> requestBody) {
|
||||||
Utils.checkNotNull(xPlexClientIdentifier, "xPlexClientIdentifier");
|
Utils.checkNotNull(clientID, "clientID");
|
||||||
Utils.checkNotNull(requestBody, "requestBody");
|
Utils.checkNotNull(requestBody, "requestBody");
|
||||||
this.xPlexClientIdentifier = xPlexClientIdentifier;
|
this.clientID = clientID;
|
||||||
this.requestBody = requestBody;
|
this.requestBody = requestBody;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -54,8 +54,8 @@ public class PostUsersSignInDataRequest {
|
|||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
@JsonIgnore
|
@JsonIgnore
|
||||||
public Optional<String> xPlexClientIdentifier() {
|
public Optional<String> clientID() {
|
||||||
return xPlexClientIdentifier;
|
return clientID;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -77,9 +77,9 @@ public class PostUsersSignInDataRequest {
|
|||||||
* (UUID, serial number, or other number unique per device)
|
* (UUID, serial number, or other number unique per device)
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
public PostUsersSignInDataRequest withXPlexClientIdentifier(String xPlexClientIdentifier) {
|
public PostUsersSignInDataRequest withClientID(String clientID) {
|
||||||
Utils.checkNotNull(xPlexClientIdentifier, "xPlexClientIdentifier");
|
Utils.checkNotNull(clientID, "clientID");
|
||||||
this.xPlexClientIdentifier = Optional.ofNullable(xPlexClientIdentifier);
|
this.clientID = Optional.ofNullable(clientID);
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -89,9 +89,9 @@ public class PostUsersSignInDataRequest {
|
|||||||
* (UUID, serial number, or other number unique per device)
|
* (UUID, serial number, or other number unique per device)
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
public PostUsersSignInDataRequest withXPlexClientIdentifier(Optional<String> xPlexClientIdentifier) {
|
public PostUsersSignInDataRequest withClientID(Optional<String> clientID) {
|
||||||
Utils.checkNotNull(xPlexClientIdentifier, "xPlexClientIdentifier");
|
Utils.checkNotNull(clientID, "clientID");
|
||||||
this.xPlexClientIdentifier = xPlexClientIdentifier;
|
this.clientID = clientID;
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -123,27 +123,27 @@ public class PostUsersSignInDataRequest {
|
|||||||
}
|
}
|
||||||
PostUsersSignInDataRequest other = (PostUsersSignInDataRequest) o;
|
PostUsersSignInDataRequest other = (PostUsersSignInDataRequest) o;
|
||||||
return
|
return
|
||||||
Objects.deepEquals(this.xPlexClientIdentifier, other.xPlexClientIdentifier) &&
|
Objects.deepEquals(this.clientID, other.clientID) &&
|
||||||
Objects.deepEquals(this.requestBody, other.requestBody);
|
Objects.deepEquals(this.requestBody, other.requestBody);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public int hashCode() {
|
public int hashCode() {
|
||||||
return Objects.hash(
|
return Objects.hash(
|
||||||
xPlexClientIdentifier,
|
clientID,
|
||||||
requestBody);
|
requestBody);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public String toString() {
|
public String toString() {
|
||||||
return Utils.toString(PostUsersSignInDataRequest.class,
|
return Utils.toString(PostUsersSignInDataRequest.class,
|
||||||
"xPlexClientIdentifier", xPlexClientIdentifier,
|
"clientID", clientID,
|
||||||
"requestBody", requestBody);
|
"requestBody", requestBody);
|
||||||
}
|
}
|
||||||
|
|
||||||
public final static class Builder {
|
public final static class Builder {
|
||||||
|
|
||||||
private Optional<String> xPlexClientIdentifier = Optional.empty();
|
private Optional<String> clientID = Optional.empty();
|
||||||
|
|
||||||
private Optional<? extends PostUsersSignInDataRequestBody> requestBody = Optional.empty();
|
private Optional<? extends PostUsersSignInDataRequestBody> requestBody = Optional.empty();
|
||||||
|
|
||||||
@@ -157,9 +157,9 @@ public class PostUsersSignInDataRequest {
|
|||||||
* (UUID, serial number, or other number unique per device)
|
* (UUID, serial number, or other number unique per device)
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
public Builder xPlexClientIdentifier(String xPlexClientIdentifier) {
|
public Builder clientID(String clientID) {
|
||||||
Utils.checkNotNull(xPlexClientIdentifier, "xPlexClientIdentifier");
|
Utils.checkNotNull(clientID, "clientID");
|
||||||
this.xPlexClientIdentifier = Optional.ofNullable(xPlexClientIdentifier);
|
this.clientID = Optional.ofNullable(clientID);
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -169,9 +169,9 @@ public class PostUsersSignInDataRequest {
|
|||||||
* (UUID, serial number, or other number unique per device)
|
* (UUID, serial number, or other number unique per device)
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
public Builder xPlexClientIdentifier(Optional<String> xPlexClientIdentifier) {
|
public Builder clientID(Optional<String> clientID) {
|
||||||
Utils.checkNotNull(xPlexClientIdentifier, "xPlexClientIdentifier");
|
Utils.checkNotNull(clientID, "clientID");
|
||||||
this.xPlexClientIdentifier = xPlexClientIdentifier;
|
this.clientID = clientID;
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -195,7 +195,7 @@ public class PostUsersSignInDataRequest {
|
|||||||
|
|
||||||
public PostUsersSignInDataRequest build() {
|
public PostUsersSignInDataRequest build() {
|
||||||
return new PostUsersSignInDataRequest(
|
return new PostUsersSignInDataRequest(
|
||||||
xPlexClientIdentifier,
|
clientID,
|
||||||
requestBody);
|
requestBody);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -10,7 +10,7 @@ import java.util.Optional;
|
|||||||
|
|
||||||
public class PostUsersSignInDataRequestBuilder {
|
public class PostUsersSignInDataRequestBuilder {
|
||||||
|
|
||||||
private Optional<String> xPlexClientIdentifier = Optional.empty();
|
private Optional<String> clientID = Optional.empty();
|
||||||
private Optional<? extends PostUsersSignInDataRequestBody> requestBody = Optional.empty();
|
private Optional<? extends PostUsersSignInDataRequestBody> requestBody = Optional.empty();
|
||||||
private Optional<String> serverURL = Optional.empty();
|
private Optional<String> serverURL = Optional.empty();
|
||||||
private final SDKMethodInterfaces.MethodCallPostUsersSignInData sdk;
|
private final SDKMethodInterfaces.MethodCallPostUsersSignInData sdk;
|
||||||
@@ -19,15 +19,15 @@ public class PostUsersSignInDataRequestBuilder {
|
|||||||
this.sdk = sdk;
|
this.sdk = sdk;
|
||||||
}
|
}
|
||||||
|
|
||||||
public PostUsersSignInDataRequestBuilder xPlexClientIdentifier(java.lang.String xPlexClientIdentifier) {
|
public PostUsersSignInDataRequestBuilder clientID(java.lang.String clientID) {
|
||||||
Utils.checkNotNull(xPlexClientIdentifier, "xPlexClientIdentifier");
|
Utils.checkNotNull(clientID, "clientID");
|
||||||
this.xPlexClientIdentifier = Optional.of(xPlexClientIdentifier);
|
this.clientID = Optional.of(clientID);
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|
||||||
public PostUsersSignInDataRequestBuilder xPlexClientIdentifier(java.util.Optional<java.lang.String> xPlexClientIdentifier) {
|
public PostUsersSignInDataRequestBuilder clientID(java.util.Optional<java.lang.String> clientID) {
|
||||||
Utils.checkNotNull(xPlexClientIdentifier, "xPlexClientIdentifier");
|
Utils.checkNotNull(clientID, "clientID");
|
||||||
this.xPlexClientIdentifier = xPlexClientIdentifier;
|
this.clientID = clientID;
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -58,7 +58,7 @@ public class PostUsersSignInDataRequestBuilder {
|
|||||||
public PostUsersSignInDataResponse call() throws Exception {
|
public PostUsersSignInDataResponse call() throws Exception {
|
||||||
|
|
||||||
return sdk.postUsersSignInData(
|
return sdk.postUsersSignInData(
|
||||||
xPlexClientIdentifier,
|
clientID,
|
||||||
requestBody,
|
requestBody,
|
||||||
serverURL);
|
serverURL);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -4,7 +4,6 @@
|
|||||||
|
|
||||||
package dev.plexapi.sdk.models.operations;
|
package dev.plexapi.sdk.models.operations;
|
||||||
|
|
||||||
import java.lang.Boolean;
|
|
||||||
import java.lang.Double;
|
import java.lang.Double;
|
||||||
import java.lang.Integer;
|
import java.lang.Integer;
|
||||||
import java.lang.Long;
|
import java.lang.Long;
|
||||||
@@ -168,7 +167,7 @@ public class SDKMethodInterfaces {
|
|||||||
|
|
||||||
public interface MethodCallGetServerResources {
|
public interface MethodCallGetServerResources {
|
||||||
dev.plexapi.sdk.models.operations.GetServerResourcesResponse getServerResources(
|
dev.plexapi.sdk.models.operations.GetServerResourcesResponse getServerResources(
|
||||||
Optional<String> xPlexClientIdentifier,
|
Optional<String> clientID,
|
||||||
Optional<? extends IncludeHttps> includeHttps,
|
Optional<? extends IncludeHttps> includeHttps,
|
||||||
Optional<? extends IncludeRelay> includeRelay,
|
Optional<? extends IncludeRelay> includeRelay,
|
||||||
Optional<? extends IncludeIPv6> includeIPv6,
|
Optional<? extends IncludeIPv6> includeIPv6,
|
||||||
@@ -178,16 +177,14 @@ public class SDKMethodInterfaces {
|
|||||||
|
|
||||||
public interface MethodCallGetPin {
|
public interface MethodCallGetPin {
|
||||||
dev.plexapi.sdk.models.operations.GetPinResponse getPin(
|
dev.plexapi.sdk.models.operations.GetPinResponse getPin(
|
||||||
Optional<Boolean> strong,
|
GetPinRequest request,
|
||||||
Optional<String> xPlexClientIdentifier,
|
|
||||||
Optional<String> xPlexProduct,
|
|
||||||
Optional<String> serverURL) throws Exception;
|
Optional<String> serverURL) throws Exception;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
public interface MethodCallGetTokenByPinId {
|
public interface MethodCallGetTokenByPinId {
|
||||||
dev.plexapi.sdk.models.operations.GetTokenByPinIdResponse getTokenByPinId(
|
dev.plexapi.sdk.models.operations.GetTokenByPinIdResponse getTokenByPinId(
|
||||||
Optional<String> xPlexClientIdentifier,
|
Optional<String> clientID,
|
||||||
long pinID,
|
long pinID,
|
||||||
Optional<String> serverURL) throws Exception;
|
Optional<String> serverURL) throws Exception;
|
||||||
}
|
}
|
||||||
@@ -415,7 +412,7 @@ public class SDKMethodInterfaces {
|
|||||||
|
|
||||||
public interface MethodCallPostUsersSignInData {
|
public interface MethodCallPostUsersSignInData {
|
||||||
dev.plexapi.sdk.models.operations.PostUsersSignInDataResponse postUsersSignInData(
|
dev.plexapi.sdk.models.operations.PostUsersSignInDataResponse postUsersSignInData(
|
||||||
Optional<String> xPlexClientIdentifier,
|
Optional<String> clientID,
|
||||||
Optional<? extends PostUsersSignInDataRequestBody> requestBody,
|
Optional<? extends PostUsersSignInDataRequestBody> requestBody,
|
||||||
Optional<String> serverURL) throws Exception;
|
Optional<String> serverURL) throws Exception;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user