diff --git a/.speakeasy/gen.lock b/.speakeasy/gen.lock index 356557b..df9a7ac 100755 --- a/.speakeasy/gen.lock +++ b/.speakeasy/gen.lock @@ -1,12 +1,12 @@ lockVersion: 2.0.0 id: dfa99515-01c0-42eb-9be5-ee212fd03eb3 management: - docChecksum: 62cf0b3d6c83b31fcdeaab9b79d1a03f + docChecksum: 00300559ab18b6bc39c1d22a82645eea docVersion: 0.0.3 - speakeasyVersion: 1.399.0 + speakeasyVersion: 1.399.1 generationVersion: 2.415.8 - releaseVersion: 0.11.11 - configChecksum: 9cd5bb613face8998ab120a46a8bb735 + releaseVersion: 0.11.12 + configChecksum: ef7d8d780af51d829aa5bb806303cead repoURL: https://github.com/LukeHagar/plexgo.git repoSubDirectory: . installationURL: https://github.com/LukeHagar/plexgo diff --git a/.speakeasy/gen.yaml b/.speakeasy/gen.yaml index 7f015cb..5f22d50 100644 --- a/.speakeasy/gen.yaml +++ b/.speakeasy/gen.yaml @@ -12,7 +12,7 @@ generation: auth: oAuth2ClientCredentialsEnabled: true go: - version: 0.11.11 + version: 0.11.12 additionalDependencies: {} allowUnknownFieldsInWeakUnions: false clientServerStatusCodesAsErrors: true diff --git a/.speakeasy/workflow.lock b/.speakeasy/workflow.lock index 405ba0a..9c2a2fc 100644 --- a/.speakeasy/workflow.lock +++ b/.speakeasy/workflow.lock @@ -1,4 +1,4 @@ -speakeasyVersion: 1.399.0 +speakeasyVersion: 1.399.1 sources: my-source: sourceNamespace: my-source @@ -9,8 +9,8 @@ sources: - main plexapi: sourceNamespace: plexapi - sourceRevisionDigest: sha256:957dc5226ef7b740811a8c5ad0a0a59f37ee8eafd68fbf8686326f49a9216e83 - sourceBlobDigest: sha256:b422e0684d1f7d90919f3ba6e3508fc8564af9810e13394a707d0d9016facb2c + sourceRevisionDigest: sha256:6b539c72d3ffb9af75db79a2b2263cf48bb0deef19f5e737bd444360a7728485 + sourceBlobDigest: sha256:25ad41e698e1a92496c2810efbc683726df978543106e645c5e71b858de2a1e1 tags: - latest - main @@ -18,10 +18,10 @@ targets: plexgo: source: plexapi sourceNamespace: plexapi - sourceRevisionDigest: sha256:957dc5226ef7b740811a8c5ad0a0a59f37ee8eafd68fbf8686326f49a9216e83 - sourceBlobDigest: sha256:b422e0684d1f7d90919f3ba6e3508fc8564af9810e13394a707d0d9016facb2c + sourceRevisionDigest: sha256:6b539c72d3ffb9af75db79a2b2263cf48bb0deef19f5e737bd444360a7728485 + sourceBlobDigest: sha256:25ad41e698e1a92496c2810efbc683726df978543106e645c5e71b858de2a1e1 codeSamplesNamespace: code-samples-go-plexgo - codeSamplesRevisionDigest: sha256:10f0ca43c97f1275b36a100af203ef302d5dad9a8736f731445a909296a48027 + codeSamplesRevisionDigest: sha256:32cd61ad0dbf1332825ae2f216618d7f33113722706d62d9a19ceb556345c7d5 workflow: workflowVersion: 1.0.0 speakeasyVersion: latest diff --git a/README.md b/README.md index 0c8f437..5302cf3 100644 --- a/README.md +++ b/README.md @@ -56,9 +56,9 @@ func main() { plexgo.WithSecurity(""), plexgo.WithClientID("gcgzw5rz2xovp84b4vha3a40"), plexgo.WithClientName("Plex Web"), - plexgo.WithDeviceName("Linux"), plexgo.WithClientVersion("4.133.0"), - plexgo.WithXPlexPlatform("Chrome"), + plexgo.WithClientPlatform("Chrome"), + plexgo.WithDeviceName("Linux"), ) ctx := context.Background() @@ -228,9 +228,9 @@ func main() { plexgo.WithSecurity(""), plexgo.WithClientID("gcgzw5rz2xovp84b4vha3a40"), plexgo.WithClientName("Plex Web"), - plexgo.WithDeviceName("Linux"), plexgo.WithClientVersion("4.133.0"), - plexgo.WithXPlexPlatform("Chrome"), + plexgo.WithClientPlatform("Chrome"), + plexgo.WithDeviceName("Linux"), ) ctx := context.Background() @@ -282,9 +282,9 @@ func main() { plexgo.WithSecurity(""), plexgo.WithClientID("gcgzw5rz2xovp84b4vha3a40"), plexgo.WithClientName("Plex Web"), - plexgo.WithDeviceName("Linux"), plexgo.WithClientVersion("4.133.0"), - plexgo.WithXPlexPlatform("Chrome"), + plexgo.WithClientPlatform("Chrome"), + plexgo.WithDeviceName("Linux"), ) ctx := context.Background() @@ -329,9 +329,9 @@ func main() { plexgo.WithSecurity(""), plexgo.WithClientID("gcgzw5rz2xovp84b4vha3a40"), plexgo.WithClientName("Plex Web"), - plexgo.WithDeviceName("Linux"), plexgo.WithClientVersion("4.133.0"), - plexgo.WithXPlexPlatform("Chrome"), + plexgo.WithClientPlatform("Chrome"), + plexgo.WithDeviceName("Linux"), ) ctx := context.Background() @@ -389,9 +389,9 @@ func main() { plexgo.WithSecurity(""), plexgo.WithClientID("gcgzw5rz2xovp84b4vha3a40"), plexgo.WithClientName("Plex Web"), - plexgo.WithDeviceName("Linux"), plexgo.WithClientVersion("4.133.0"), - plexgo.WithXPlexPlatform("Chrome"), + plexgo.WithClientPlatform("Chrome"), + plexgo.WithDeviceName("Linux"), ) ctx := context.Background() @@ -431,9 +431,9 @@ func main() { plexgo.WithSecurity(""), plexgo.WithClientID("gcgzw5rz2xovp84b4vha3a40"), plexgo.WithClientName("Plex Web"), - plexgo.WithDeviceName("Linux"), plexgo.WithClientVersion("4.133.0"), - plexgo.WithXPlexPlatform("Chrome"), + plexgo.WithClientPlatform("Chrome"), + plexgo.WithDeviceName("Linux"), ) ctx := context.Background() @@ -466,9 +466,9 @@ func main() { plexgo.WithSecurity(""), plexgo.WithClientID("gcgzw5rz2xovp84b4vha3a40"), plexgo.WithClientName("Plex Web"), - plexgo.WithDeviceName("Linux"), plexgo.WithClientVersion("4.133.0"), - plexgo.WithXPlexPlatform("Chrome"), + plexgo.WithClientPlatform("Chrome"), + plexgo.WithDeviceName("Linux"), ) ctx := context.Background() @@ -539,9 +539,9 @@ func main() { plexgo.WithSecurity(""), plexgo.WithClientID("gcgzw5rz2xovp84b4vha3a40"), plexgo.WithClientName("Plex Web"), - plexgo.WithDeviceName("Linux"), plexgo.WithClientVersion("4.133.0"), - plexgo.WithXPlexPlatform("Chrome"), + plexgo.WithClientPlatform("Chrome"), + plexgo.WithDeviceName("Linux"), ) ctx := context.Background() @@ -602,9 +602,9 @@ This is used to track the client application and its usage (UUID, serial number, or other number unique per device) | | ClientName | string | | The ClientName parameter. | -| DeviceName | string | | The DeviceName parameter. | | ClientVersion | string | | The ClientVersion parameter. | -| XPlexPlatform | string | | The XPlexPlatform parameter. | +| ClientPlatform | string | | The ClientPlatform parameter. | +| DeviceName | string | | The DeviceName parameter. | ### Example @@ -624,9 +624,9 @@ func main() { plexgo.WithSecurity(""), plexgo.WithClientID("gcgzw5rz2xovp84b4vha3a40"), plexgo.WithClientName("Plex Web"), - plexgo.WithDeviceName("Linux"), plexgo.WithClientVersion("4.133.0"), - plexgo.WithXPlexPlatform("Chrome"), + plexgo.WithClientPlatform("Chrome"), + plexgo.WithDeviceName("Linux"), ) ctx := context.Background() diff --git a/RELEASES.md b/RELEASES.md index 8a06ca3..a336cd4 100644 --- a/RELEASES.md +++ b/RELEASES.md @@ -862,4 +862,14 @@ Based on: ### Generated - [go v0.11.11] . ### Releases -- [Go v0.11.11] https://github.com/LukeHagar/plexgo/releases/tag/v0.11.11 - . \ No newline at end of file +- [Go v0.11.11] https://github.com/LukeHagar/plexgo/releases/tag/v0.11.11 - . + +## 2024-09-18 14:09:58 +### Changes +Based on: +- OpenAPI Doc +- Speakeasy CLI 1.399.1 (2.415.8) https://github.com/speakeasy-api/speakeasy +### Generated +- [go v0.11.12] . +### Releases +- [Go v0.11.12] https://github.com/LukeHagar/plexgo/releases/tag/v0.11.12 - . \ No newline at end of file diff --git a/USAGE.md b/USAGE.md index 40d10c5..4ec93dd 100644 --- a/USAGE.md +++ b/USAGE.md @@ -13,9 +13,9 @@ func main() { plexgo.WithSecurity(""), plexgo.WithClientID("gcgzw5rz2xovp84b4vha3a40"), plexgo.WithClientName("Plex Web"), - plexgo.WithDeviceName("Linux"), plexgo.WithClientVersion("4.133.0"), - plexgo.WithXPlexPlatform("Chrome"), + plexgo.WithClientPlatform("Chrome"), + plexgo.WithDeviceName("Linux"), ) ctx := context.Background() diff --git a/codeSamples.yaml b/codeSamples.yaml index 7780874..76c8e65 100644 --- a/codeSamples.yaml +++ b/codeSamples.yaml @@ -22,9 +22,9 @@ actions: plexgo.WithSecurity(""), plexgo.WithClientID("gcgzw5rz2xovp84b4vha3a40"), plexgo.WithClientName("Plex Web"), - plexgo.WithDeviceName("Linux"), plexgo.WithClientVersion("4.133.0"), - plexgo.WithXPlexPlatform("Chrome"), + plexgo.WithClientPlatform("Chrome"), + plexgo.WithDeviceName("Linux"), ) ctx := context.Background() @@ -55,9 +55,9 @@ actions: plexgo.WithSecurity(""), plexgo.WithClientID("gcgzw5rz2xovp84b4vha3a40"), plexgo.WithClientName("Plex Web"), - plexgo.WithDeviceName("Linux"), plexgo.WithClientVersion("4.133.0"), - plexgo.WithXPlexPlatform("Chrome"), + plexgo.WithClientPlatform("Chrome"), + plexgo.WithDeviceName("Linux"), ) ctx := context.Background() @@ -88,9 +88,9 @@ actions: plexgo.WithSecurity(""), plexgo.WithClientID("gcgzw5rz2xovp84b4vha3a40"), plexgo.WithClientName("Plex Web"), - plexgo.WithDeviceName("Linux"), plexgo.WithClientVersion("4.133.0"), - plexgo.WithXPlexPlatform("Chrome"), + plexgo.WithClientPlatform("Chrome"), + plexgo.WithDeviceName("Linux"), ) ctx := context.Background() @@ -121,9 +121,9 @@ actions: plexgo.WithSecurity(""), plexgo.WithClientID("gcgzw5rz2xovp84b4vha3a40"), plexgo.WithClientName("Plex Web"), - plexgo.WithDeviceName("Linux"), plexgo.WithClientVersion("4.133.0"), - plexgo.WithXPlexPlatform("Chrome"), + plexgo.WithClientPlatform("Chrome"), + plexgo.WithDeviceName("Linux"), ) ctx := context.Background() @@ -155,9 +155,9 @@ actions: plexgo.WithSecurity(""), plexgo.WithClientID("gcgzw5rz2xovp84b4vha3a40"), plexgo.WithClientName("Plex Web"), - plexgo.WithDeviceName("Linux"), plexgo.WithClientVersion("4.133.0"), - plexgo.WithXPlexPlatform("Chrome"), + plexgo.WithClientPlatform("Chrome"), + plexgo.WithDeviceName("Linux"), ) ctx := context.Background() @@ -199,9 +199,9 @@ actions: plexgo.WithSecurity(""), plexgo.WithClientID("gcgzw5rz2xovp84b4vha3a40"), plexgo.WithClientName("Plex Web"), - plexgo.WithDeviceName("Linux"), plexgo.WithClientVersion("4.133.0"), - plexgo.WithXPlexPlatform("Chrome"), + plexgo.WithClientPlatform("Chrome"), + plexgo.WithDeviceName("Linux"), ) ctx := context.Background() @@ -232,9 +232,9 @@ actions: plexgo.WithSecurity(""), plexgo.WithClientID("gcgzw5rz2xovp84b4vha3a40"), plexgo.WithClientName("Plex Web"), - plexgo.WithDeviceName("Linux"), plexgo.WithClientVersion("4.133.0"), - plexgo.WithXPlexPlatform("Chrome"), + plexgo.WithClientPlatform("Chrome"), + plexgo.WithDeviceName("Linux"), ) ctx := context.Background() @@ -265,9 +265,9 @@ actions: plexgo.WithSecurity(""), plexgo.WithClientID("gcgzw5rz2xovp84b4vha3a40"), plexgo.WithClientName("Plex Web"), - plexgo.WithDeviceName("Linux"), plexgo.WithClientVersion("4.133.0"), - plexgo.WithXPlexPlatform("Chrome"), + plexgo.WithClientPlatform("Chrome"), + plexgo.WithDeviceName("Linux"), ) ctx := context.Background() @@ -298,9 +298,9 @@ actions: plexgo.WithSecurity(""), plexgo.WithClientID("gcgzw5rz2xovp84b4vha3a40"), plexgo.WithClientName("Plex Web"), - plexgo.WithDeviceName("Linux"), plexgo.WithClientVersion("4.133.0"), - plexgo.WithXPlexPlatform("Chrome"), + plexgo.WithClientPlatform("Chrome"), + plexgo.WithDeviceName("Linux"), ) ctx := context.Background() @@ -331,9 +331,9 @@ actions: plexgo.WithSecurity(""), plexgo.WithClientID("gcgzw5rz2xovp84b4vha3a40"), plexgo.WithClientName("Plex Web"), - plexgo.WithDeviceName("Linux"), plexgo.WithClientVersion("4.133.0"), - plexgo.WithXPlexPlatform("Chrome"), + plexgo.WithClientPlatform("Chrome"), + plexgo.WithDeviceName("Linux"), ) ctx := context.Background() @@ -364,9 +364,9 @@ actions: plexgo.WithSecurity(""), plexgo.WithClientID("gcgzw5rz2xovp84b4vha3a40"), plexgo.WithClientName("Plex Web"), - plexgo.WithDeviceName("Linux"), plexgo.WithClientVersion("4.133.0"), - plexgo.WithXPlexPlatform("Chrome"), + plexgo.WithClientPlatform("Chrome"), + plexgo.WithDeviceName("Linux"), ) ctx := context.Background() @@ -398,9 +398,9 @@ actions: plexgo.WithSecurity(""), plexgo.WithClientID("gcgzw5rz2xovp84b4vha3a40"), plexgo.WithClientName("Plex Web"), - plexgo.WithDeviceName("Linux"), plexgo.WithClientVersion("4.133.0"), - plexgo.WithXPlexPlatform("Chrome"), + plexgo.WithClientPlatform("Chrome"), + plexgo.WithDeviceName("Linux"), ) ctx := context.Background() @@ -432,9 +432,9 @@ actions: plexgo.WithSecurity(""), plexgo.WithClientID("gcgzw5rz2xovp84b4vha3a40"), plexgo.WithClientName("Plex Web"), - plexgo.WithDeviceName("Linux"), plexgo.WithClientVersion("4.133.0"), - plexgo.WithXPlexPlatform("Chrome"), + plexgo.WithClientPlatform("Chrome"), + plexgo.WithDeviceName("Linux"), ) ctx := context.Background() @@ -465,9 +465,9 @@ actions: plexgo.WithSecurity(""), plexgo.WithClientID("gcgzw5rz2xovp84b4vha3a40"), plexgo.WithClientName("Plex Web"), - plexgo.WithDeviceName("Linux"), plexgo.WithClientVersion("4.133.0"), - plexgo.WithXPlexPlatform("Chrome"), + plexgo.WithClientPlatform("Chrome"), + plexgo.WithDeviceName("Linux"), ) ctx := context.Background() @@ -498,9 +498,9 @@ actions: plexgo.WithSecurity(""), plexgo.WithClientID("gcgzw5rz2xovp84b4vha3a40"), plexgo.WithClientName("Plex Web"), - plexgo.WithDeviceName("Linux"), plexgo.WithClientVersion("4.133.0"), - plexgo.WithXPlexPlatform("Chrome"), + plexgo.WithClientPlatform("Chrome"), + plexgo.WithDeviceName("Linux"), ) ctx := context.Background() @@ -531,9 +531,9 @@ actions: plexgo.WithSecurity(""), plexgo.WithClientID("gcgzw5rz2xovp84b4vha3a40"), plexgo.WithClientName("Plex Web"), - plexgo.WithDeviceName("Linux"), plexgo.WithClientVersion("4.133.0"), - plexgo.WithXPlexPlatform("Chrome"), + plexgo.WithClientPlatform("Chrome"), + plexgo.WithDeviceName("Linux"), ) ctx := context.Background() @@ -564,9 +564,9 @@ actions: plexgo.WithSecurity(""), plexgo.WithClientID("gcgzw5rz2xovp84b4vha3a40"), plexgo.WithClientName("Plex Web"), - plexgo.WithDeviceName("Linux"), plexgo.WithClientVersion("4.133.0"), - plexgo.WithXPlexPlatform("Chrome"), + plexgo.WithClientPlatform("Chrome"), + plexgo.WithDeviceName("Linux"), ) ctx := context.Background() @@ -596,9 +596,9 @@ actions: s := plexgo.New( plexgo.WithClientID("gcgzw5rz2xovp84b4vha3a40"), plexgo.WithClientName("Plex Web"), - plexgo.WithDeviceName("Linux"), plexgo.WithClientVersion("4.133.0"), - plexgo.WithXPlexPlatform("Chrome"), + plexgo.WithClientPlatform("Chrome"), + plexgo.WithDeviceName("Linux"), ) ctx := context.Background() @@ -629,9 +629,9 @@ actions: plexgo.WithSecurity(""), plexgo.WithClientID("gcgzw5rz2xovp84b4vha3a40"), plexgo.WithClientName("Plex Web"), - plexgo.WithDeviceName("Linux"), plexgo.WithClientVersion("4.133.0"), - plexgo.WithXPlexPlatform("Chrome"), + plexgo.WithClientPlatform("Chrome"), + plexgo.WithDeviceName("Linux"), ) ctx := context.Background() @@ -662,9 +662,9 @@ actions: plexgo.WithSecurity(""), plexgo.WithClientID("gcgzw5rz2xovp84b4vha3a40"), plexgo.WithClientName("Plex Web"), - plexgo.WithDeviceName("Linux"), plexgo.WithClientVersion("4.133.0"), - plexgo.WithXPlexPlatform("Chrome"), + plexgo.WithClientPlatform("Chrome"), + plexgo.WithDeviceName("Linux"), ) ctx := context.Background() @@ -695,9 +695,9 @@ actions: plexgo.WithSecurity(""), plexgo.WithClientID("gcgzw5rz2xovp84b4vha3a40"), plexgo.WithClientName("Plex Web"), - plexgo.WithDeviceName("Linux"), plexgo.WithClientVersion("4.133.0"), - plexgo.WithXPlexPlatform("Chrome"), + plexgo.WithClientPlatform("Chrome"), + plexgo.WithDeviceName("Linux"), ) ctx := context.Background() @@ -728,9 +728,9 @@ actions: plexgo.WithSecurity(""), plexgo.WithClientID("gcgzw5rz2xovp84b4vha3a40"), plexgo.WithClientName("Plex Web"), - plexgo.WithDeviceName("Linux"), plexgo.WithClientVersion("4.133.0"), - plexgo.WithXPlexPlatform("Chrome"), + plexgo.WithClientPlatform("Chrome"), + plexgo.WithDeviceName("Linux"), ) ctx := context.Background() @@ -761,9 +761,9 @@ actions: plexgo.WithSecurity(""), plexgo.WithClientID("gcgzw5rz2xovp84b4vha3a40"), plexgo.WithClientName("Plex Web"), - plexgo.WithDeviceName("Linux"), plexgo.WithClientVersion("4.133.0"), - plexgo.WithXPlexPlatform("Chrome"), + plexgo.WithClientPlatform("Chrome"), + plexgo.WithDeviceName("Linux"), ) ctx := context.Background() @@ -793,9 +793,9 @@ actions: s := plexgo.New( plexgo.WithClientID("gcgzw5rz2xovp84b4vha3a40"), plexgo.WithClientName("Plex Web"), - plexgo.WithDeviceName("Linux"), plexgo.WithClientVersion("4.133.0"), - plexgo.WithXPlexPlatform("Chrome"), + plexgo.WithClientPlatform("Chrome"), + plexgo.WithDeviceName("Linux"), ) ctx := context.Background() @@ -827,9 +827,9 @@ actions: plexgo.WithSecurity(""), plexgo.WithClientID("gcgzw5rz2xovp84b4vha3a40"), plexgo.WithClientName("Plex Web"), - plexgo.WithDeviceName("Linux"), plexgo.WithClientVersion("4.133.0"), - plexgo.WithXPlexPlatform("Chrome"), + plexgo.WithClientPlatform("Chrome"), + plexgo.WithDeviceName("Linux"), ) ctx := context.Background() @@ -860,9 +860,9 @@ actions: plexgo.WithSecurity(""), plexgo.WithClientID("gcgzw5rz2xovp84b4vha3a40"), plexgo.WithClientName("Plex Web"), - plexgo.WithDeviceName("Linux"), plexgo.WithClientVersion("4.133.0"), - plexgo.WithXPlexPlatform("Chrome"), + plexgo.WithClientPlatform("Chrome"), + plexgo.WithDeviceName("Linux"), ) ctx := context.Background() @@ -893,9 +893,9 @@ actions: plexgo.WithSecurity(""), plexgo.WithClientID("gcgzw5rz2xovp84b4vha3a40"), plexgo.WithClientName("Plex Web"), - plexgo.WithDeviceName("Linux"), plexgo.WithClientVersion("4.133.0"), - plexgo.WithXPlexPlatform("Chrome"), + plexgo.WithClientPlatform("Chrome"), + plexgo.WithDeviceName("Linux"), ) ctx := context.Background() @@ -927,9 +927,9 @@ actions: plexgo.WithSecurity(""), plexgo.WithClientID("gcgzw5rz2xovp84b4vha3a40"), plexgo.WithClientName("Plex Web"), - plexgo.WithDeviceName("Linux"), plexgo.WithClientVersion("4.133.0"), - plexgo.WithXPlexPlatform("Chrome"), + plexgo.WithClientPlatform("Chrome"), + plexgo.WithDeviceName("Linux"), ) ctx := context.Background() @@ -967,9 +967,9 @@ actions: plexgo.WithSecurity(""), plexgo.WithClientID("gcgzw5rz2xovp84b4vha3a40"), plexgo.WithClientName("Plex Web"), - plexgo.WithDeviceName("Linux"), plexgo.WithClientVersion("4.133.0"), - plexgo.WithXPlexPlatform("Chrome"), + plexgo.WithClientPlatform("Chrome"), + plexgo.WithDeviceName("Linux"), ) ctx := context.Background() @@ -1001,9 +1001,9 @@ actions: plexgo.WithSecurity(""), plexgo.WithClientID("gcgzw5rz2xovp84b4vha3a40"), plexgo.WithClientName("Plex Web"), - plexgo.WithDeviceName("Linux"), plexgo.WithClientVersion("4.133.0"), - plexgo.WithXPlexPlatform("Chrome"), + plexgo.WithClientPlatform("Chrome"), + plexgo.WithDeviceName("Linux"), ) ctx := context.Background() @@ -1041,9 +1041,9 @@ actions: plexgo.WithSecurity(""), plexgo.WithClientID("gcgzw5rz2xovp84b4vha3a40"), plexgo.WithClientName("Plex Web"), - plexgo.WithDeviceName("Linux"), plexgo.WithClientVersion("4.133.0"), - plexgo.WithXPlexPlatform("Chrome"), + plexgo.WithClientPlatform("Chrome"), + plexgo.WithDeviceName("Linux"), ) ctx := context.Background() @@ -1074,9 +1074,9 @@ actions: plexgo.WithSecurity(""), plexgo.WithClientID("gcgzw5rz2xovp84b4vha3a40"), plexgo.WithClientName("Plex Web"), - plexgo.WithDeviceName("Linux"), plexgo.WithClientVersion("4.133.0"), - plexgo.WithXPlexPlatform("Chrome"), + plexgo.WithClientPlatform("Chrome"), + plexgo.WithDeviceName("Linux"), ) ctx := context.Background() @@ -1107,9 +1107,9 @@ actions: plexgo.WithSecurity(""), plexgo.WithClientID("gcgzw5rz2xovp84b4vha3a40"), plexgo.WithClientName("Plex Web"), - plexgo.WithDeviceName("Linux"), plexgo.WithClientVersion("4.133.0"), - plexgo.WithXPlexPlatform("Chrome"), + plexgo.WithClientPlatform("Chrome"), + plexgo.WithDeviceName("Linux"), ) ctx := context.Background() @@ -1141,9 +1141,9 @@ actions: plexgo.WithSecurity(""), plexgo.WithClientID("gcgzw5rz2xovp84b4vha3a40"), plexgo.WithClientName("Plex Web"), - plexgo.WithDeviceName("Linux"), plexgo.WithClientVersion("4.133.0"), - plexgo.WithXPlexPlatform("Chrome"), + plexgo.WithClientPlatform("Chrome"), + plexgo.WithDeviceName("Linux"), ) ctx := context.Background() @@ -1179,9 +1179,9 @@ actions: plexgo.WithSecurity(""), plexgo.WithClientID("gcgzw5rz2xovp84b4vha3a40"), plexgo.WithClientName("Plex Web"), - plexgo.WithDeviceName("Linux"), plexgo.WithClientVersion("4.133.0"), - plexgo.WithXPlexPlatform("Chrome"), + plexgo.WithClientPlatform("Chrome"), + plexgo.WithDeviceName("Linux"), ) ctx := context.Background() @@ -1212,9 +1212,9 @@ actions: plexgo.WithSecurity(""), plexgo.WithClientID("gcgzw5rz2xovp84b4vha3a40"), plexgo.WithClientName("Plex Web"), - plexgo.WithDeviceName("Linux"), plexgo.WithClientVersion("4.133.0"), - plexgo.WithXPlexPlatform("Chrome"), + plexgo.WithClientPlatform("Chrome"), + plexgo.WithDeviceName("Linux"), ) ctx := context.Background() @@ -1246,9 +1246,9 @@ actions: plexgo.WithSecurity(""), plexgo.WithClientID("gcgzw5rz2xovp84b4vha3a40"), plexgo.WithClientName("Plex Web"), - plexgo.WithDeviceName("Linux"), plexgo.WithClientVersion("4.133.0"), - plexgo.WithXPlexPlatform("Chrome"), + plexgo.WithClientPlatform("Chrome"), + plexgo.WithDeviceName("Linux"), ) ctx := context.Background() @@ -1280,9 +1280,9 @@ actions: plexgo.WithSecurity(""), plexgo.WithClientID("gcgzw5rz2xovp84b4vha3a40"), plexgo.WithClientName("Plex Web"), - plexgo.WithDeviceName("Linux"), plexgo.WithClientVersion("4.133.0"), - plexgo.WithXPlexPlatform("Chrome"), + plexgo.WithClientPlatform("Chrome"), + plexgo.WithDeviceName("Linux"), ) ctx := context.Background() @@ -1314,9 +1314,9 @@ actions: plexgo.WithSecurity(""), plexgo.WithClientID("gcgzw5rz2xovp84b4vha3a40"), plexgo.WithClientName("Plex Web"), - plexgo.WithDeviceName("Linux"), plexgo.WithClientVersion("4.133.0"), - plexgo.WithXPlexPlatform("Chrome"), + plexgo.WithClientPlatform("Chrome"), + plexgo.WithDeviceName("Linux"), ) ctx := context.Background() @@ -1356,9 +1356,9 @@ actions: plexgo.WithSecurity(""), plexgo.WithClientID("gcgzw5rz2xovp84b4vha3a40"), plexgo.WithClientName("Plex Web"), - plexgo.WithDeviceName("Linux"), plexgo.WithClientVersion("4.133.0"), - plexgo.WithXPlexPlatform("Chrome"), + plexgo.WithClientPlatform("Chrome"), + plexgo.WithDeviceName("Linux"), ) ctx := context.Background() @@ -1389,9 +1389,9 @@ actions: plexgo.WithSecurity(""), plexgo.WithClientID("gcgzw5rz2xovp84b4vha3a40"), plexgo.WithClientName("Plex Web"), - plexgo.WithDeviceName("Linux"), plexgo.WithClientVersion("4.133.0"), - plexgo.WithXPlexPlatform("Chrome"), + plexgo.WithClientPlatform("Chrome"), + plexgo.WithDeviceName("Linux"), ) ctx := context.Background() @@ -1424,9 +1424,9 @@ actions: plexgo.WithSecurity(""), plexgo.WithClientID("gcgzw5rz2xovp84b4vha3a40"), plexgo.WithClientName("Plex Web"), - plexgo.WithDeviceName("Linux"), plexgo.WithClientVersion("4.133.0"), - plexgo.WithXPlexPlatform("Chrome"), + plexgo.WithClientPlatform("Chrome"), + plexgo.WithDeviceName("Linux"), ) ctx := context.Background() @@ -1457,9 +1457,9 @@ actions: plexgo.WithSecurity(""), plexgo.WithClientID("gcgzw5rz2xovp84b4vha3a40"), plexgo.WithClientName("Plex Web"), - plexgo.WithDeviceName("Linux"), plexgo.WithClientVersion("4.133.0"), - plexgo.WithXPlexPlatform("Chrome"), + plexgo.WithClientPlatform("Chrome"), + plexgo.WithDeviceName("Linux"), ) ctx := context.Background() @@ -1490,9 +1490,9 @@ actions: plexgo.WithSecurity(""), plexgo.WithClientID("gcgzw5rz2xovp84b4vha3a40"), plexgo.WithClientName("Plex Web"), - plexgo.WithDeviceName("Linux"), plexgo.WithClientVersion("4.133.0"), - plexgo.WithXPlexPlatform("Chrome"), + plexgo.WithClientPlatform("Chrome"), + plexgo.WithDeviceName("Linux"), ) ctx := context.Background() @@ -1524,9 +1524,9 @@ actions: plexgo.WithSecurity(""), plexgo.WithClientID("gcgzw5rz2xovp84b4vha3a40"), plexgo.WithClientName("Plex Web"), - plexgo.WithDeviceName("Linux"), plexgo.WithClientVersion("4.133.0"), - plexgo.WithXPlexPlatform("Chrome"), + plexgo.WithClientPlatform("Chrome"), + plexgo.WithDeviceName("Linux"), ) ctx := context.Background() @@ -1565,9 +1565,9 @@ actions: s := plexgo.New( plexgo.WithClientID("gcgzw5rz2xovp84b4vha3a40"), plexgo.WithClientName("Plex Web"), - plexgo.WithDeviceName("Linux"), plexgo.WithClientVersion("4.133.0"), - plexgo.WithXPlexPlatform("Chrome"), + plexgo.WithClientPlatform("Chrome"), + plexgo.WithDeviceName("Linux"), ) ctx := context.Background() @@ -1597,9 +1597,9 @@ actions: s := plexgo.New( plexgo.WithClientID("gcgzw5rz2xovp84b4vha3a40"), plexgo.WithClientName("Plex Web"), - plexgo.WithDeviceName("Linux"), plexgo.WithClientVersion("4.133.0"), - plexgo.WithXPlexPlatform("Chrome"), + plexgo.WithClientPlatform("Chrome"), + plexgo.WithDeviceName("Linux"), ) ctx := context.Background() @@ -1630,9 +1630,9 @@ actions: plexgo.WithSecurity(""), plexgo.WithClientID("gcgzw5rz2xovp84b4vha3a40"), plexgo.WithClientName("Plex Web"), - plexgo.WithDeviceName("Linux"), plexgo.WithClientVersion("4.133.0"), - plexgo.WithXPlexPlatform("Chrome"), + plexgo.WithClientPlatform("Chrome"), + plexgo.WithDeviceName("Linux"), ) ctx := context.Background() @@ -1664,9 +1664,9 @@ actions: plexgo.WithSecurity(""), plexgo.WithClientID("gcgzw5rz2xovp84b4vha3a40"), plexgo.WithClientName("Plex Web"), - plexgo.WithDeviceName("Linux"), plexgo.WithClientVersion("4.133.0"), - plexgo.WithXPlexPlatform("Chrome"), + plexgo.WithClientPlatform("Chrome"), + plexgo.WithDeviceName("Linux"), ) ctx := context.Background() @@ -1703,9 +1703,9 @@ actions: plexgo.WithSecurity(""), plexgo.WithClientID("gcgzw5rz2xovp84b4vha3a40"), plexgo.WithClientName("Plex Web"), - plexgo.WithDeviceName("Linux"), plexgo.WithClientVersion("4.133.0"), - plexgo.WithXPlexPlatform("Chrome"), + plexgo.WithClientPlatform("Chrome"), + plexgo.WithDeviceName("Linux"), ) ctx := context.Background() @@ -1736,9 +1736,9 @@ actions: plexgo.WithSecurity(""), plexgo.WithClientID("gcgzw5rz2xovp84b4vha3a40"), plexgo.WithClientName("Plex Web"), - plexgo.WithDeviceName("Linux"), plexgo.WithClientVersion("4.133.0"), - plexgo.WithXPlexPlatform("Chrome"), + plexgo.WithClientPlatform("Chrome"), + plexgo.WithDeviceName("Linux"), ) ctx := context.Background() @@ -1769,9 +1769,9 @@ actions: plexgo.WithSecurity(""), plexgo.WithClientID("gcgzw5rz2xovp84b4vha3a40"), plexgo.WithClientName("Plex Web"), - plexgo.WithDeviceName("Linux"), plexgo.WithClientVersion("4.133.0"), - plexgo.WithXPlexPlatform("Chrome"), + plexgo.WithClientPlatform("Chrome"), + plexgo.WithDeviceName("Linux"), ) ctx := context.Background() @@ -1802,9 +1802,9 @@ actions: plexgo.WithSecurity(""), plexgo.WithClientID("gcgzw5rz2xovp84b4vha3a40"), plexgo.WithClientName("Plex Web"), - plexgo.WithDeviceName("Linux"), plexgo.WithClientVersion("4.133.0"), - plexgo.WithXPlexPlatform("Chrome"), + plexgo.WithClientPlatform("Chrome"), + plexgo.WithDeviceName("Linux"), ) ctx := context.Background() @@ -1835,9 +1835,9 @@ actions: plexgo.WithSecurity(""), plexgo.WithClientID("gcgzw5rz2xovp84b4vha3a40"), plexgo.WithClientName("Plex Web"), - plexgo.WithDeviceName("Linux"), plexgo.WithClientVersion("4.133.0"), - plexgo.WithXPlexPlatform("Chrome"), + plexgo.WithClientPlatform("Chrome"), + plexgo.WithDeviceName("Linux"), ) ctx := context.Background() @@ -1869,9 +1869,9 @@ actions: plexgo.WithSecurity(""), plexgo.WithClientID("gcgzw5rz2xovp84b4vha3a40"), plexgo.WithClientName("Plex Web"), - plexgo.WithDeviceName("Linux"), plexgo.WithClientVersion("4.133.0"), - plexgo.WithXPlexPlatform("Chrome"), + plexgo.WithClientPlatform("Chrome"), + plexgo.WithDeviceName("Linux"), ) ctx := context.Background() @@ -1902,9 +1902,9 @@ actions: plexgo.WithSecurity(""), plexgo.WithClientID("gcgzw5rz2xovp84b4vha3a40"), plexgo.WithClientName("Plex Web"), - plexgo.WithDeviceName("Linux"), plexgo.WithClientVersion("4.133.0"), - plexgo.WithXPlexPlatform("Chrome"), + plexgo.WithClientPlatform("Chrome"), + plexgo.WithDeviceName("Linux"), ) ctx := context.Background() @@ -1936,9 +1936,9 @@ actions: plexgo.WithSecurity(""), plexgo.WithClientID("gcgzw5rz2xovp84b4vha3a40"), plexgo.WithClientName("Plex Web"), - plexgo.WithDeviceName("Linux"), plexgo.WithClientVersion("4.133.0"), - plexgo.WithXPlexPlatform("Chrome"), + plexgo.WithClientPlatform("Chrome"), + plexgo.WithDeviceName("Linux"), ) ctx := context.Background() @@ -1969,9 +1969,9 @@ actions: plexgo.WithSecurity(""), plexgo.WithClientID("gcgzw5rz2xovp84b4vha3a40"), plexgo.WithClientName("Plex Web"), - plexgo.WithDeviceName("Linux"), plexgo.WithClientVersion("4.133.0"), - plexgo.WithXPlexPlatform("Chrome"), + plexgo.WithClientPlatform("Chrome"), + plexgo.WithDeviceName("Linux"), ) ctx := context.Background() @@ -2002,9 +2002,9 @@ actions: plexgo.WithSecurity(""), plexgo.WithClientID("gcgzw5rz2xovp84b4vha3a40"), plexgo.WithClientName("Plex Web"), - plexgo.WithDeviceName("Linux"), plexgo.WithClientVersion("4.133.0"), - plexgo.WithXPlexPlatform("Chrome"), + plexgo.WithClientPlatform("Chrome"), + plexgo.WithDeviceName("Linux"), ) ctx := context.Background() @@ -2036,9 +2036,9 @@ actions: plexgo.WithSecurity(""), plexgo.WithClientID("gcgzw5rz2xovp84b4vha3a40"), plexgo.WithClientName("Plex Web"), - plexgo.WithDeviceName("Linux"), plexgo.WithClientVersion("4.133.0"), - plexgo.WithXPlexPlatform("Chrome"), + plexgo.WithClientPlatform("Chrome"), + plexgo.WithDeviceName("Linux"), ) ctx := context.Background() @@ -2069,9 +2069,9 @@ actions: plexgo.WithSecurity(""), plexgo.WithClientID("gcgzw5rz2xovp84b4vha3a40"), plexgo.WithClientName("Plex Web"), - plexgo.WithDeviceName("Linux"), plexgo.WithClientVersion("4.133.0"), - plexgo.WithXPlexPlatform("Chrome"), + plexgo.WithClientPlatform("Chrome"), + plexgo.WithDeviceName("Linux"), ) ctx := context.Background() @@ -2102,9 +2102,9 @@ actions: plexgo.WithSecurity(""), plexgo.WithClientID("gcgzw5rz2xovp84b4vha3a40"), plexgo.WithClientName("Plex Web"), - plexgo.WithDeviceName("Linux"), plexgo.WithClientVersion("4.133.0"), - plexgo.WithXPlexPlatform("Chrome"), + plexgo.WithClientPlatform("Chrome"), + plexgo.WithDeviceName("Linux"), ) ctx := context.Background() @@ -2135,9 +2135,9 @@ actions: plexgo.WithSecurity(""), plexgo.WithClientID("gcgzw5rz2xovp84b4vha3a40"), plexgo.WithClientName("Plex Web"), - plexgo.WithDeviceName("Linux"), plexgo.WithClientVersion("4.133.0"), - plexgo.WithXPlexPlatform("Chrome"), + plexgo.WithClientPlatform("Chrome"), + plexgo.WithDeviceName("Linux"), ) ctx := context.Background() @@ -2168,9 +2168,9 @@ actions: plexgo.WithSecurity(""), plexgo.WithClientID("gcgzw5rz2xovp84b4vha3a40"), plexgo.WithClientName("Plex Web"), - plexgo.WithDeviceName("Linux"), plexgo.WithClientVersion("4.133.0"), - plexgo.WithXPlexPlatform("Chrome"), + plexgo.WithClientPlatform("Chrome"), + plexgo.WithDeviceName("Linux"), ) ctx := context.Background() @@ -2201,9 +2201,9 @@ actions: plexgo.WithSecurity(""), plexgo.WithClientID("gcgzw5rz2xovp84b4vha3a40"), plexgo.WithClientName("Plex Web"), - plexgo.WithDeviceName("Linux"), plexgo.WithClientVersion("4.133.0"), - plexgo.WithXPlexPlatform("Chrome"), + plexgo.WithClientPlatform("Chrome"), + plexgo.WithDeviceName("Linux"), ) ctx := context.Background() @@ -2235,9 +2235,9 @@ actions: plexgo.WithSecurity(""), plexgo.WithClientID("gcgzw5rz2xovp84b4vha3a40"), plexgo.WithClientName("Plex Web"), - plexgo.WithDeviceName("Linux"), plexgo.WithClientVersion("4.133.0"), - plexgo.WithXPlexPlatform("Chrome"), + plexgo.WithClientPlatform("Chrome"), + plexgo.WithDeviceName("Linux"), ) ctx := context.Background() @@ -2268,9 +2268,9 @@ actions: plexgo.WithSecurity(""), plexgo.WithClientID("gcgzw5rz2xovp84b4vha3a40"), plexgo.WithClientName("Plex Web"), - plexgo.WithDeviceName("Linux"), plexgo.WithClientVersion("4.133.0"), - plexgo.WithXPlexPlatform("Chrome"), + plexgo.WithClientPlatform("Chrome"), + plexgo.WithDeviceName("Linux"), ) ctx := context.Background() @@ -2301,9 +2301,9 @@ actions: plexgo.WithSecurity(""), plexgo.WithClientID("gcgzw5rz2xovp84b4vha3a40"), plexgo.WithClientName("Plex Web"), - plexgo.WithDeviceName("Linux"), plexgo.WithClientVersion("4.133.0"), - plexgo.WithXPlexPlatform("Chrome"), + plexgo.WithClientPlatform("Chrome"), + plexgo.WithDeviceName("Linux"), ) ctx := context.Background() @@ -2335,9 +2335,9 @@ actions: plexgo.WithSecurity(""), plexgo.WithClientID("gcgzw5rz2xovp84b4vha3a40"), plexgo.WithClientName("Plex Web"), - plexgo.WithDeviceName("Linux"), plexgo.WithClientVersion("4.133.0"), - plexgo.WithXPlexPlatform("Chrome"), + plexgo.WithClientPlatform("Chrome"), + plexgo.WithDeviceName("Linux"), ) ctx := context.Background() @@ -2369,9 +2369,9 @@ actions: plexgo.WithSecurity(""), plexgo.WithClientID("gcgzw5rz2xovp84b4vha3a40"), plexgo.WithClientName("Plex Web"), - plexgo.WithDeviceName("Linux"), plexgo.WithClientVersion("4.133.0"), - plexgo.WithXPlexPlatform("Chrome"), + plexgo.WithClientPlatform("Chrome"), + plexgo.WithDeviceName("Linux"), ) ctx := context.Background() @@ -2402,9 +2402,9 @@ actions: plexgo.WithSecurity(""), plexgo.WithClientID("gcgzw5rz2xovp84b4vha3a40"), plexgo.WithClientName("Plex Web"), - plexgo.WithDeviceName("Linux"), plexgo.WithClientVersion("4.133.0"), - plexgo.WithXPlexPlatform("Chrome"), + plexgo.WithClientPlatform("Chrome"), + plexgo.WithDeviceName("Linux"), ) ctx := context.Background() @@ -2435,9 +2435,9 @@ actions: plexgo.WithSecurity(""), plexgo.WithClientID("gcgzw5rz2xovp84b4vha3a40"), plexgo.WithClientName("Plex Web"), - plexgo.WithDeviceName("Linux"), plexgo.WithClientVersion("4.133.0"), - plexgo.WithXPlexPlatform("Chrome"), + plexgo.WithClientPlatform("Chrome"), + plexgo.WithDeviceName("Linux"), ) ctx := context.Background() @@ -2468,9 +2468,9 @@ actions: s := plexgo.New( plexgo.WithClientID("gcgzw5rz2xovp84b4vha3a40"), plexgo.WithClientName("Plex Web"), - plexgo.WithDeviceName("Linux"), plexgo.WithClientVersion("4.133.0"), - plexgo.WithXPlexPlatform("Chrome"), + plexgo.WithClientPlatform("Chrome"), + plexgo.WithDeviceName("Linux"), ) ctx := context.Background() @@ -2506,9 +2506,9 @@ actions: plexgo.WithSecurity(""), plexgo.WithClientID("gcgzw5rz2xovp84b4vha3a40"), plexgo.WithClientName("Plex Web"), - plexgo.WithDeviceName("Linux"), plexgo.WithClientVersion("4.133.0"), - plexgo.WithXPlexPlatform("Chrome"), + plexgo.WithClientPlatform("Chrome"), + plexgo.WithDeviceName("Linux"), ) ctx := context.Background() diff --git a/docs/models/operations/getpinglobals.md b/docs/models/operations/getpinglobals.md index 338b777..6d66b4f 100644 --- a/docs/models/operations/getpinglobals.md +++ b/docs/models/operations/getpinglobals.md @@ -9,4 +9,4 @@ | `ClientName` | **string* | :heavy_minus_sign: | N/A | Plex Web | | `DeviceName` | **string* | :heavy_minus_sign: | N/A | Linux | | `ClientVersion` | **string* | :heavy_minus_sign: | N/A | 4.133.0 | -| `XPlexPlatform` | **string* | :heavy_minus_sign: | N/A | Chrome | \ No newline at end of file +| `ClientPlatform` | **string* | :heavy_minus_sign: | N/A | Chrome | \ No newline at end of file diff --git a/docs/models/operations/getpinrequest.md b/docs/models/operations/getpinrequest.md index 505eb31..10b79c2 100644 --- a/docs/models/operations/getpinrequest.md +++ b/docs/models/operations/getpinrequest.md @@ -10,4 +10,4 @@ | `ClientName` | **string* | :heavy_minus_sign: | N/A | Plex Web | | `DeviceName` | **string* | :heavy_minus_sign: | N/A | Linux | | `ClientVersion` | **string* | :heavy_minus_sign: | N/A | 4.133.0 | -| `XPlexPlatform` | **string* | :heavy_minus_sign: | N/A | Chrome | \ No newline at end of file +| `ClientPlatform` | **string* | :heavy_minus_sign: | N/A | Chrome | \ No newline at end of file diff --git a/docs/sdks/activities/README.md b/docs/sdks/activities/README.md index 195bbf3..3453ee1 100644 --- a/docs/sdks/activities/README.md +++ b/docs/sdks/activities/README.md @@ -37,9 +37,9 @@ func main() { plexgo.WithSecurity(""), plexgo.WithClientID("gcgzw5rz2xovp84b4vha3a40"), plexgo.WithClientName("Plex Web"), - plexgo.WithDeviceName("Linux"), plexgo.WithClientVersion("4.133.0"), - plexgo.WithXPlexPlatform("Chrome"), + plexgo.WithClientPlatform("Chrome"), + plexgo.WithDeviceName("Linux"), ) ctx := context.Background() @@ -93,9 +93,9 @@ func main() { plexgo.WithSecurity(""), plexgo.WithClientID("gcgzw5rz2xovp84b4vha3a40"), plexgo.WithClientName("Plex Web"), - plexgo.WithDeviceName("Linux"), plexgo.WithClientVersion("4.133.0"), - plexgo.WithXPlexPlatform("Chrome"), + plexgo.WithClientPlatform("Chrome"), + plexgo.WithDeviceName("Linux"), ) ctx := context.Background() diff --git a/docs/sdks/authentication/README.md b/docs/sdks/authentication/README.md index 894baf9..6cc72ae 100644 --- a/docs/sdks/authentication/README.md +++ b/docs/sdks/authentication/README.md @@ -35,9 +35,9 @@ func main() { plexgo.WithSecurity(""), plexgo.WithClientID("gcgzw5rz2xovp84b4vha3a40"), plexgo.WithClientName("Plex Web"), - plexgo.WithDeviceName("Linux"), plexgo.WithClientVersion("4.133.0"), - plexgo.WithXPlexPlatform("Chrome"), + plexgo.WithClientPlatform("Chrome"), + plexgo.WithDeviceName("Linux"), ) ctx := context.Background() @@ -95,9 +95,9 @@ func main() { plexgo.WithSecurity(""), plexgo.WithClientID("gcgzw5rz2xovp84b4vha3a40"), plexgo.WithClientName("Plex Web"), - plexgo.WithDeviceName("Linux"), plexgo.WithClientVersion("4.133.0"), - plexgo.WithXPlexPlatform("Chrome"), + plexgo.WithClientPlatform("Chrome"), + plexgo.WithDeviceName("Linux"), ) ctx := context.Background() @@ -152,9 +152,9 @@ func main() { plexgo.WithSecurity(""), plexgo.WithClientID("gcgzw5rz2xovp84b4vha3a40"), plexgo.WithClientName("Plex Web"), - plexgo.WithDeviceName("Linux"), plexgo.WithClientVersion("4.133.0"), - plexgo.WithXPlexPlatform("Chrome"), + plexgo.WithClientPlatform("Chrome"), + plexgo.WithDeviceName("Linux"), ) ctx := context.Background() @@ -208,9 +208,9 @@ func main() { s := plexgo.New( plexgo.WithClientID("gcgzw5rz2xovp84b4vha3a40"), plexgo.WithClientName("Plex Web"), - plexgo.WithDeviceName("Linux"), plexgo.WithClientVersion("4.133.0"), - plexgo.WithXPlexPlatform("Chrome"), + plexgo.WithClientPlatform("Chrome"), + plexgo.WithDeviceName("Linux"), ) ctx := context.Background() diff --git a/docs/sdks/butler/README.md b/docs/sdks/butler/README.md index 11bab30..b144391 100644 --- a/docs/sdks/butler/README.md +++ b/docs/sdks/butler/README.md @@ -34,9 +34,9 @@ func main() { plexgo.WithSecurity(""), plexgo.WithClientID("gcgzw5rz2xovp84b4vha3a40"), plexgo.WithClientName("Plex Web"), - plexgo.WithDeviceName("Linux"), plexgo.WithClientVersion("4.133.0"), - plexgo.WithXPlexPlatform("Chrome"), + plexgo.WithClientPlatform("Chrome"), + plexgo.WithDeviceName("Linux"), ) ctx := context.Background() @@ -95,9 +95,9 @@ func main() { plexgo.WithSecurity(""), plexgo.WithClientID("gcgzw5rz2xovp84b4vha3a40"), plexgo.WithClientName("Plex Web"), - plexgo.WithDeviceName("Linux"), plexgo.WithClientVersion("4.133.0"), - plexgo.WithXPlexPlatform("Chrome"), + plexgo.WithClientPlatform("Chrome"), + plexgo.WithDeviceName("Linux"), ) ctx := context.Background() @@ -152,9 +152,9 @@ func main() { plexgo.WithSecurity(""), plexgo.WithClientID("gcgzw5rz2xovp84b4vha3a40"), plexgo.WithClientName("Plex Web"), - plexgo.WithDeviceName("Linux"), plexgo.WithClientVersion("4.133.0"), - plexgo.WithXPlexPlatform("Chrome"), + plexgo.WithClientPlatform("Chrome"), + plexgo.WithDeviceName("Linux"), ) ctx := context.Background() @@ -214,9 +214,9 @@ func main() { plexgo.WithSecurity(""), plexgo.WithClientID("gcgzw5rz2xovp84b4vha3a40"), plexgo.WithClientName("Plex Web"), - plexgo.WithDeviceName("Linux"), plexgo.WithClientVersion("4.133.0"), - plexgo.WithXPlexPlatform("Chrome"), + plexgo.WithClientPlatform("Chrome"), + plexgo.WithDeviceName("Linux"), ) ctx := context.Background() @@ -273,9 +273,9 @@ func main() { plexgo.WithSecurity(""), plexgo.WithClientID("gcgzw5rz2xovp84b4vha3a40"), plexgo.WithClientName("Plex Web"), - plexgo.WithDeviceName("Linux"), plexgo.WithClientVersion("4.133.0"), - plexgo.WithXPlexPlatform("Chrome"), + plexgo.WithClientPlatform("Chrome"), + plexgo.WithDeviceName("Linux"), ) ctx := context.Background() diff --git a/docs/sdks/hubs/README.md b/docs/sdks/hubs/README.md index 50f986e..dc34938 100644 --- a/docs/sdks/hubs/README.md +++ b/docs/sdks/hubs/README.md @@ -31,9 +31,9 @@ func main() { plexgo.WithSecurity(""), plexgo.WithClientID("gcgzw5rz2xovp84b4vha3a40"), plexgo.WithClientName("Plex Web"), - plexgo.WithDeviceName("Linux"), plexgo.WithClientVersion("4.133.0"), - plexgo.WithXPlexPlatform("Chrome"), + plexgo.WithClientPlatform("Chrome"), + plexgo.WithDeviceName("Linux"), ) ctx := context.Background() @@ -90,9 +90,9 @@ func main() { plexgo.WithSecurity(""), plexgo.WithClientID("gcgzw5rz2xovp84b4vha3a40"), plexgo.WithClientName("Plex Web"), - plexgo.WithDeviceName("Linux"), plexgo.WithClientVersion("4.133.0"), - plexgo.WithXPlexPlatform("Chrome"), + plexgo.WithClientPlatform("Chrome"), + plexgo.WithDeviceName("Linux"), ) ctx := context.Background() diff --git a/docs/sdks/library/README.md b/docs/sdks/library/README.md index d0ae155..6f56975 100644 --- a/docs/sdks/library/README.md +++ b/docs/sdks/library/README.md @@ -41,9 +41,9 @@ func main() { plexgo.WithSecurity(""), plexgo.WithClientID("gcgzw5rz2xovp84b4vha3a40"), plexgo.WithClientName("Plex Web"), - plexgo.WithDeviceName("Linux"), plexgo.WithClientVersion("4.133.0"), - plexgo.WithXPlexPlatform("Chrome"), + plexgo.WithClientPlatform("Chrome"), + plexgo.WithDeviceName("Linux"), ) ctx := context.Background() @@ -100,9 +100,9 @@ func main() { plexgo.WithSecurity(""), plexgo.WithClientID("gcgzw5rz2xovp84b4vha3a40"), plexgo.WithClientName("Plex Web"), - plexgo.WithDeviceName("Linux"), plexgo.WithClientVersion("4.133.0"), - plexgo.WithXPlexPlatform("Chrome"), + plexgo.WithClientPlatform("Chrome"), + plexgo.WithDeviceName("Linux"), ) ctx := context.Background() @@ -164,9 +164,9 @@ func main() { plexgo.WithSecurity(""), plexgo.WithClientID("gcgzw5rz2xovp84b4vha3a40"), plexgo.WithClientName("Plex Web"), - plexgo.WithDeviceName("Linux"), plexgo.WithClientVersion("4.133.0"), - plexgo.WithXPlexPlatform("Chrome"), + plexgo.WithClientPlatform("Chrome"), + plexgo.WithDeviceName("Linux"), ) ctx := context.Background() @@ -259,9 +259,9 @@ func main() { plexgo.WithSecurity(""), plexgo.WithClientID("gcgzw5rz2xovp84b4vha3a40"), plexgo.WithClientName("Plex Web"), - plexgo.WithDeviceName("Linux"), plexgo.WithClientVersion("4.133.0"), - plexgo.WithXPlexPlatform("Chrome"), + plexgo.WithClientPlatform("Chrome"), + plexgo.WithDeviceName("Linux"), ) ctx := context.Background() @@ -317,9 +317,9 @@ func main() { plexgo.WithSecurity(""), plexgo.WithClientID("gcgzw5rz2xovp84b4vha3a40"), plexgo.WithClientName("Plex Web"), - plexgo.WithDeviceName("Linux"), plexgo.WithClientVersion("4.133.0"), - plexgo.WithXPlexPlatform("Chrome"), + plexgo.WithClientPlatform("Chrome"), + plexgo.WithDeviceName("Linux"), ) ctx := context.Background() @@ -395,9 +395,9 @@ func main() { plexgo.WithSecurity(""), plexgo.WithClientID("gcgzw5rz2xovp84b4vha3a40"), plexgo.WithClientName("Plex Web"), - plexgo.WithDeviceName("Linux"), plexgo.WithClientVersion("4.133.0"), - plexgo.WithXPlexPlatform("Chrome"), + plexgo.WithClientPlatform("Chrome"), + plexgo.WithDeviceName("Linux"), ) ctx := context.Background() @@ -462,9 +462,9 @@ func main() { plexgo.WithSecurity(""), plexgo.WithClientID("gcgzw5rz2xovp84b4vha3a40"), plexgo.WithClientName("Plex Web"), - plexgo.WithDeviceName("Linux"), plexgo.WithClientVersion("4.133.0"), - plexgo.WithXPlexPlatform("Chrome"), + plexgo.WithClientPlatform("Chrome"), + plexgo.WithDeviceName("Linux"), ) ctx := context.Background() @@ -539,9 +539,9 @@ func main() { plexgo.WithSecurity(""), plexgo.WithClientID("gcgzw5rz2xovp84b4vha3a40"), plexgo.WithClientName("Plex Web"), - plexgo.WithDeviceName("Linux"), plexgo.WithClientVersion("4.133.0"), - plexgo.WithXPlexPlatform("Chrome"), + plexgo.WithClientPlatform("Chrome"), + plexgo.WithDeviceName("Linux"), ) ctx := context.Background() @@ -598,9 +598,9 @@ func main() { plexgo.WithSecurity(""), plexgo.WithClientID("gcgzw5rz2xovp84b4vha3a40"), plexgo.WithClientName("Plex Web"), - plexgo.WithDeviceName("Linux"), plexgo.WithClientVersion("4.133.0"), - plexgo.WithXPlexPlatform("Chrome"), + plexgo.WithClientPlatform("Chrome"), + plexgo.WithDeviceName("Linux"), ) ctx := context.Background() @@ -656,9 +656,9 @@ func main() { plexgo.WithSecurity(""), plexgo.WithClientID("gcgzw5rz2xovp84b4vha3a40"), plexgo.WithClientName("Plex Web"), - plexgo.WithDeviceName("Linux"), plexgo.WithClientVersion("4.133.0"), - plexgo.WithXPlexPlatform("Chrome"), + plexgo.WithClientPlatform("Chrome"), + plexgo.WithDeviceName("Linux"), ) ctx := context.Background() @@ -716,9 +716,9 @@ func main() { plexgo.WithSecurity(""), plexgo.WithClientID("gcgzw5rz2xovp84b4vha3a40"), plexgo.WithClientName("Plex Web"), - plexgo.WithDeviceName("Linux"), plexgo.WithClientVersion("4.133.0"), - plexgo.WithXPlexPlatform("Chrome"), + plexgo.WithClientPlatform("Chrome"), + plexgo.WithDeviceName("Linux"), ) ctx := context.Background() @@ -775,9 +775,9 @@ func main() { plexgo.WithSecurity(""), plexgo.WithClientID("gcgzw5rz2xovp84b4vha3a40"), plexgo.WithClientName("Plex Web"), - plexgo.WithDeviceName("Linux"), plexgo.WithClientVersion("4.133.0"), - plexgo.WithXPlexPlatform("Chrome"), + plexgo.WithClientPlatform("Chrome"), + plexgo.WithDeviceName("Linux"), ) ctx := context.Background() diff --git a/docs/sdks/log/README.md b/docs/sdks/log/README.md index a5a9461..6168d95 100644 --- a/docs/sdks/log/README.md +++ b/docs/sdks/log/README.md @@ -34,9 +34,9 @@ func main() { plexgo.WithSecurity(""), plexgo.WithClientID("gcgzw5rz2xovp84b4vha3a40"), plexgo.WithClientName("Plex Web"), - plexgo.WithDeviceName("Linux"), plexgo.WithClientVersion("4.133.0"), - plexgo.WithXPlexPlatform("Chrome"), + plexgo.WithClientPlatform("Chrome"), + plexgo.WithDeviceName("Linux"), ) ctx := context.Background() @@ -114,9 +114,9 @@ func main() { plexgo.WithSecurity(""), plexgo.WithClientID("gcgzw5rz2xovp84b4vha3a40"), plexgo.WithClientName("Plex Web"), - plexgo.WithDeviceName("Linux"), plexgo.WithClientVersion("4.133.0"), - plexgo.WithXPlexPlatform("Chrome"), + plexgo.WithClientPlatform("Chrome"), + plexgo.WithDeviceName("Linux"), ) ctx := context.Background() @@ -174,9 +174,9 @@ func main() { plexgo.WithSecurity(""), plexgo.WithClientID("gcgzw5rz2xovp84b4vha3a40"), plexgo.WithClientName("Plex Web"), - plexgo.WithDeviceName("Linux"), plexgo.WithClientVersion("4.133.0"), - plexgo.WithXPlexPlatform("Chrome"), + plexgo.WithClientPlatform("Chrome"), + plexgo.WithDeviceName("Linux"), ) ctx := context.Background() diff --git a/docs/sdks/media/README.md b/docs/sdks/media/README.md index ff321a7..1e0af3b 100644 --- a/docs/sdks/media/README.md +++ b/docs/sdks/media/README.md @@ -34,9 +34,9 @@ func main() { plexgo.WithSecurity(""), plexgo.WithClientID("gcgzw5rz2xovp84b4vha3a40"), plexgo.WithClientName("Plex Web"), - plexgo.WithDeviceName("Linux"), plexgo.WithClientVersion("4.133.0"), - plexgo.WithXPlexPlatform("Chrome"), + plexgo.WithClientPlatform("Chrome"), + plexgo.WithDeviceName("Linux"), ) ctx := context.Background() @@ -91,9 +91,9 @@ func main() { plexgo.WithSecurity(""), plexgo.WithClientID("gcgzw5rz2xovp84b4vha3a40"), plexgo.WithClientName("Plex Web"), - plexgo.WithDeviceName("Linux"), plexgo.WithClientVersion("4.133.0"), - plexgo.WithXPlexPlatform("Chrome"), + plexgo.WithClientPlatform("Chrome"), + plexgo.WithDeviceName("Linux"), ) ctx := context.Background() @@ -149,9 +149,9 @@ func main() { plexgo.WithSecurity(""), plexgo.WithClientID("gcgzw5rz2xovp84b4vha3a40"), plexgo.WithClientName("Plex Web"), - plexgo.WithDeviceName("Linux"), plexgo.WithClientVersion("4.133.0"), - plexgo.WithXPlexPlatform("Chrome"), + plexgo.WithClientPlatform("Chrome"), + plexgo.WithDeviceName("Linux"), ) ctx := context.Background() @@ -209,9 +209,9 @@ func main() { plexgo.WithSecurity(""), plexgo.WithClientID("gcgzw5rz2xovp84b4vha3a40"), plexgo.WithClientName("Plex Web"), - plexgo.WithDeviceName("Linux"), plexgo.WithClientVersion("4.133.0"), - plexgo.WithXPlexPlatform("Chrome"), + plexgo.WithClientPlatform("Chrome"), + plexgo.WithDeviceName("Linux"), ) ctx := context.Background() @@ -274,9 +274,9 @@ func main() { plexgo.WithSecurity(""), plexgo.WithClientID("gcgzw5rz2xovp84b4vha3a40"), plexgo.WithClientName("Plex Web"), - plexgo.WithDeviceName("Linux"), plexgo.WithClientVersion("4.133.0"), - plexgo.WithXPlexPlatform("Chrome"), + plexgo.WithClientPlatform("Chrome"), + plexgo.WithDeviceName("Linux"), ) ctx := context.Background() diff --git a/docs/sdks/playlists/README.md b/docs/sdks/playlists/README.md index 029bb49..2637f2f 100644 --- a/docs/sdks/playlists/README.md +++ b/docs/sdks/playlists/README.md @@ -45,9 +45,9 @@ func main() { plexgo.WithSecurity(""), plexgo.WithClientID("gcgzw5rz2xovp84b4vha3a40"), plexgo.WithClientName("Plex Web"), - plexgo.WithDeviceName("Linux"), plexgo.WithClientVersion("4.133.0"), - plexgo.WithXPlexPlatform("Chrome"), + plexgo.WithClientPlatform("Chrome"), + plexgo.WithDeviceName("Linux"), ) ctx := context.Background() @@ -107,9 +107,9 @@ func main() { plexgo.WithSecurity(""), plexgo.WithClientID("gcgzw5rz2xovp84b4vha3a40"), plexgo.WithClientName("Plex Web"), - plexgo.WithDeviceName("Linux"), plexgo.WithClientVersion("4.133.0"), - plexgo.WithXPlexPlatform("Chrome"), + plexgo.WithClientPlatform("Chrome"), + plexgo.WithDeviceName("Linux"), ) ctx := context.Background() @@ -167,9 +167,9 @@ func main() { plexgo.WithSecurity(""), plexgo.WithClientID("gcgzw5rz2xovp84b4vha3a40"), plexgo.WithClientName("Plex Web"), - plexgo.WithDeviceName("Linux"), plexgo.WithClientVersion("4.133.0"), - plexgo.WithXPlexPlatform("Chrome"), + plexgo.WithClientPlatform("Chrome"), + plexgo.WithDeviceName("Linux"), ) ctx := context.Background() @@ -225,9 +225,9 @@ func main() { plexgo.WithSecurity(""), plexgo.WithClientID("gcgzw5rz2xovp84b4vha3a40"), plexgo.WithClientName("Plex Web"), - plexgo.WithDeviceName("Linux"), plexgo.WithClientVersion("4.133.0"), - plexgo.WithXPlexPlatform("Chrome"), + plexgo.WithClientPlatform("Chrome"), + plexgo.WithDeviceName("Linux"), ) ctx := context.Background() @@ -283,9 +283,9 @@ func main() { plexgo.WithSecurity(""), plexgo.WithClientID("gcgzw5rz2xovp84b4vha3a40"), plexgo.WithClientName("Plex Web"), - plexgo.WithDeviceName("Linux"), plexgo.WithClientVersion("4.133.0"), - plexgo.WithXPlexPlatform("Chrome"), + plexgo.WithClientPlatform("Chrome"), + plexgo.WithDeviceName("Linux"), ) ctx := context.Background() @@ -347,9 +347,9 @@ func main() { plexgo.WithSecurity(""), plexgo.WithClientID("gcgzw5rz2xovp84b4vha3a40"), plexgo.WithClientName("Plex Web"), - plexgo.WithDeviceName("Linux"), plexgo.WithClientVersion("4.133.0"), - plexgo.WithXPlexPlatform("Chrome"), + plexgo.WithClientPlatform("Chrome"), + plexgo.WithDeviceName("Linux"), ) ctx := context.Background() @@ -406,9 +406,9 @@ func main() { plexgo.WithSecurity(""), plexgo.WithClientID("gcgzw5rz2xovp84b4vha3a40"), plexgo.WithClientName("Plex Web"), - plexgo.WithDeviceName("Linux"), plexgo.WithClientVersion("4.133.0"), - plexgo.WithXPlexPlatform("Chrome"), + plexgo.WithClientPlatform("Chrome"), + plexgo.WithDeviceName("Linux"), ) ctx := context.Background() @@ -465,9 +465,9 @@ func main() { plexgo.WithSecurity(""), plexgo.WithClientID("gcgzw5rz2xovp84b4vha3a40"), plexgo.WithClientName("Plex Web"), - plexgo.WithDeviceName("Linux"), plexgo.WithClientVersion("4.133.0"), - plexgo.WithXPlexPlatform("Chrome"), + plexgo.WithClientPlatform("Chrome"), + plexgo.WithDeviceName("Linux"), ) ctx := context.Background() @@ -526,9 +526,9 @@ func main() { plexgo.WithSecurity(""), plexgo.WithClientID("gcgzw5rz2xovp84b4vha3a40"), plexgo.WithClientName("Plex Web"), - plexgo.WithDeviceName("Linux"), plexgo.WithClientVersion("4.133.0"), - plexgo.WithXPlexPlatform("Chrome"), + plexgo.WithClientPlatform("Chrome"), + plexgo.WithDeviceName("Linux"), ) ctx := context.Background() diff --git a/docs/sdks/plex/README.md b/docs/sdks/plex/README.md index ad113c5..ee090f4 100644 --- a/docs/sdks/plex/README.md +++ b/docs/sdks/plex/README.md @@ -36,9 +36,9 @@ func main() { plexgo.WithSecurity(""), plexgo.WithClientID("gcgzw5rz2xovp84b4vha3a40"), plexgo.WithClientName("Plex Web"), - plexgo.WithDeviceName("Linux"), plexgo.WithClientVersion("4.133.0"), - plexgo.WithXPlexPlatform("Chrome"), + plexgo.WithClientPlatform("Chrome"), + plexgo.WithDeviceName("Linux"), ) ctx := context.Background() @@ -92,9 +92,9 @@ func main() { plexgo.WithSecurity(""), plexgo.WithClientID("gcgzw5rz2xovp84b4vha3a40"), plexgo.WithClientName("Plex Web"), - plexgo.WithDeviceName("Linux"), plexgo.WithClientVersion("4.133.0"), - plexgo.WithXPlexPlatform("Chrome"), + plexgo.WithClientPlatform("Chrome"), + plexgo.WithDeviceName("Linux"), ) ctx := context.Background() @@ -147,9 +147,9 @@ func main() { s := plexgo.New( plexgo.WithClientID("gcgzw5rz2xovp84b4vha3a40"), plexgo.WithClientName("Plex Web"), - plexgo.WithDeviceName("Linux"), plexgo.WithClientVersion("4.133.0"), - plexgo.WithXPlexPlatform("Chrome"), + plexgo.WithClientPlatform("Chrome"), + plexgo.WithDeviceName("Linux"), ) ctx := context.Background() @@ -203,9 +203,9 @@ func main() { plexgo.WithSecurity(""), plexgo.WithClientID("gcgzw5rz2xovp84b4vha3a40"), plexgo.WithClientName("Plex Web"), - plexgo.WithDeviceName("Linux"), plexgo.WithClientVersion("4.133.0"), - plexgo.WithXPlexPlatform("Chrome"), + plexgo.WithClientPlatform("Chrome"), + plexgo.WithDeviceName("Linux"), ) ctx := context.Background() @@ -260,9 +260,9 @@ func main() { plexgo.WithSecurity(""), plexgo.WithClientID("gcgzw5rz2xovp84b4vha3a40"), plexgo.WithClientName("Plex Web"), - plexgo.WithDeviceName("Linux"), plexgo.WithClientVersion("4.133.0"), - plexgo.WithXPlexPlatform("Chrome"), + plexgo.WithClientPlatform("Chrome"), + plexgo.WithDeviceName("Linux"), ) ctx := context.Background() @@ -320,9 +320,9 @@ func main() { s := plexgo.New( plexgo.WithClientID("gcgzw5rz2xovp84b4vha3a40"), plexgo.WithClientName("Plex Web"), - plexgo.WithDeviceName("Linux"), plexgo.WithClientVersion("4.133.0"), - plexgo.WithXPlexPlatform("Chrome"), + plexgo.WithClientPlatform("Chrome"), + plexgo.WithDeviceName("Linux"), ) ctx := context.Background() @@ -375,9 +375,9 @@ func main() { s := plexgo.New( plexgo.WithClientID("gcgzw5rz2xovp84b4vha3a40"), plexgo.WithClientName("Plex Web"), - plexgo.WithDeviceName("Linux"), plexgo.WithClientVersion("4.133.0"), - plexgo.WithXPlexPlatform("Chrome"), + plexgo.WithClientPlatform("Chrome"), + plexgo.WithDeviceName("Linux"), ) ctx := context.Background() diff --git a/docs/sdks/search/README.md b/docs/sdks/search/README.md index 88a3ed5..03b1ea6 100644 --- a/docs/sdks/search/README.md +++ b/docs/sdks/search/README.md @@ -44,9 +44,9 @@ func main() { plexgo.WithSecurity(""), plexgo.WithClientID("gcgzw5rz2xovp84b4vha3a40"), plexgo.WithClientName("Plex Web"), - plexgo.WithDeviceName("Linux"), plexgo.WithClientVersion("4.133.0"), - plexgo.WithXPlexPlatform("Chrome"), + plexgo.WithClientPlatform("Chrome"), + plexgo.WithDeviceName("Linux"), ) ctx := context.Background() @@ -107,9 +107,9 @@ func main() { plexgo.WithSecurity(""), plexgo.WithClientID("gcgzw5rz2xovp84b4vha3a40"), plexgo.WithClientName("Plex Web"), - plexgo.WithDeviceName("Linux"), plexgo.WithClientVersion("4.133.0"), - plexgo.WithXPlexPlatform("Chrome"), + plexgo.WithClientPlatform("Chrome"), + plexgo.WithDeviceName("Linux"), ) ctx := context.Background() @@ -166,9 +166,9 @@ func main() { plexgo.WithSecurity(""), plexgo.WithClientID("gcgzw5rz2xovp84b4vha3a40"), plexgo.WithClientName("Plex Web"), - plexgo.WithDeviceName("Linux"), plexgo.WithClientVersion("4.133.0"), - plexgo.WithXPlexPlatform("Chrome"), + plexgo.WithClientPlatform("Chrome"), + plexgo.WithDeviceName("Linux"), ) ctx := context.Background() diff --git a/docs/sdks/server/README.md b/docs/sdks/server/README.md index f0f884b..53a9c64 100644 --- a/docs/sdks/server/README.md +++ b/docs/sdks/server/README.md @@ -38,9 +38,9 @@ func main() { plexgo.WithSecurity(""), plexgo.WithClientID("gcgzw5rz2xovp84b4vha3a40"), plexgo.WithClientName("Plex Web"), - plexgo.WithDeviceName("Linux"), plexgo.WithClientVersion("4.133.0"), - plexgo.WithXPlexPlatform("Chrome"), + plexgo.WithClientPlatform("Chrome"), + plexgo.WithDeviceName("Linux"), ) ctx := context.Background() @@ -94,9 +94,9 @@ func main() { plexgo.WithSecurity(""), plexgo.WithClientID("gcgzw5rz2xovp84b4vha3a40"), plexgo.WithClientName("Plex Web"), - plexgo.WithDeviceName("Linux"), plexgo.WithClientVersion("4.133.0"), - plexgo.WithXPlexPlatform("Chrome"), + plexgo.WithClientPlatform("Chrome"), + plexgo.WithDeviceName("Linux"), ) ctx := context.Background() @@ -150,9 +150,9 @@ func main() { plexgo.WithSecurity(""), plexgo.WithClientID("gcgzw5rz2xovp84b4vha3a40"), plexgo.WithClientName("Plex Web"), - plexgo.WithDeviceName("Linux"), plexgo.WithClientVersion("4.133.0"), - plexgo.WithXPlexPlatform("Chrome"), + plexgo.WithClientPlatform("Chrome"), + plexgo.WithDeviceName("Linux"), ) ctx := context.Background() @@ -206,9 +206,9 @@ func main() { plexgo.WithSecurity(""), plexgo.WithClientID("gcgzw5rz2xovp84b4vha3a40"), plexgo.WithClientName("Plex Web"), - plexgo.WithDeviceName("Linux"), plexgo.WithClientVersion("4.133.0"), - plexgo.WithXPlexPlatform("Chrome"), + plexgo.WithClientPlatform("Chrome"), + plexgo.WithDeviceName("Linux"), ) ctx := context.Background() @@ -261,9 +261,9 @@ func main() { s := plexgo.New( plexgo.WithClientID("gcgzw5rz2xovp84b4vha3a40"), plexgo.WithClientName("Plex Web"), - plexgo.WithDeviceName("Linux"), plexgo.WithClientVersion("4.133.0"), - plexgo.WithXPlexPlatform("Chrome"), + plexgo.WithClientPlatform("Chrome"), + plexgo.WithDeviceName("Linux"), ) ctx := context.Background() @@ -316,9 +316,9 @@ func main() { plexgo.WithSecurity(""), plexgo.WithClientID("gcgzw5rz2xovp84b4vha3a40"), plexgo.WithClientName("Plex Web"), - plexgo.WithDeviceName("Linux"), plexgo.WithClientVersion("4.133.0"), - plexgo.WithXPlexPlatform("Chrome"), + plexgo.WithClientPlatform("Chrome"), + plexgo.WithDeviceName("Linux"), ) ctx := context.Background() @@ -374,9 +374,9 @@ func main() { plexgo.WithSecurity(""), plexgo.WithClientID("gcgzw5rz2xovp84b4vha3a40"), plexgo.WithClientName("Plex Web"), - plexgo.WithDeviceName("Linux"), plexgo.WithClientVersion("4.133.0"), - plexgo.WithXPlexPlatform("Chrome"), + plexgo.WithClientPlatform("Chrome"), + plexgo.WithDeviceName("Linux"), ) ctx := context.Background() @@ -439,9 +439,9 @@ func main() { plexgo.WithSecurity(""), plexgo.WithClientID("gcgzw5rz2xovp84b4vha3a40"), plexgo.WithClientName("Plex Web"), - plexgo.WithDeviceName("Linux"), plexgo.WithClientVersion("4.133.0"), - plexgo.WithXPlexPlatform("Chrome"), + plexgo.WithClientPlatform("Chrome"), + plexgo.WithDeviceName("Linux"), ) ctx := context.Background() @@ -496,9 +496,9 @@ func main() { plexgo.WithSecurity(""), plexgo.WithClientID("gcgzw5rz2xovp84b4vha3a40"), plexgo.WithClientName("Plex Web"), - plexgo.WithDeviceName("Linux"), plexgo.WithClientVersion("4.133.0"), - plexgo.WithXPlexPlatform("Chrome"), + plexgo.WithClientPlatform("Chrome"), + plexgo.WithDeviceName("Linux"), ) ctx := context.Background() diff --git a/docs/sdks/sessions/README.md b/docs/sdks/sessions/README.md index e3911f7..adca153 100644 --- a/docs/sdks/sessions/README.md +++ b/docs/sdks/sessions/README.md @@ -33,9 +33,9 @@ func main() { plexgo.WithSecurity(""), plexgo.WithClientID("gcgzw5rz2xovp84b4vha3a40"), plexgo.WithClientName("Plex Web"), - plexgo.WithDeviceName("Linux"), plexgo.WithClientVersion("4.133.0"), - plexgo.WithXPlexPlatform("Chrome"), + plexgo.WithClientPlatform("Chrome"), + plexgo.WithDeviceName("Linux"), ) ctx := context.Background() @@ -90,9 +90,9 @@ func main() { plexgo.WithSecurity(""), plexgo.WithClientID("gcgzw5rz2xovp84b4vha3a40"), plexgo.WithClientName("Plex Web"), - plexgo.WithDeviceName("Linux"), plexgo.WithClientVersion("4.133.0"), - plexgo.WithXPlexPlatform("Chrome"), + plexgo.WithClientPlatform("Chrome"), + plexgo.WithDeviceName("Linux"), ) ctx := context.Background() @@ -150,9 +150,9 @@ func main() { plexgo.WithSecurity(""), plexgo.WithClientID("gcgzw5rz2xovp84b4vha3a40"), plexgo.WithClientName("Plex Web"), - plexgo.WithDeviceName("Linux"), plexgo.WithClientVersion("4.133.0"), - plexgo.WithXPlexPlatform("Chrome"), + plexgo.WithClientPlatform("Chrome"), + plexgo.WithDeviceName("Linux"), ) ctx := context.Background() @@ -206,9 +206,9 @@ func main() { plexgo.WithSecurity(""), plexgo.WithClientID("gcgzw5rz2xovp84b4vha3a40"), plexgo.WithClientName("Plex Web"), - plexgo.WithDeviceName("Linux"), plexgo.WithClientVersion("4.133.0"), - plexgo.WithXPlexPlatform("Chrome"), + plexgo.WithClientPlatform("Chrome"), + plexgo.WithDeviceName("Linux"), ) ctx := context.Background() diff --git a/docs/sdks/statistics/README.md b/docs/sdks/statistics/README.md index ac135f3..64258e4 100644 --- a/docs/sdks/statistics/README.md +++ b/docs/sdks/statistics/README.md @@ -32,9 +32,9 @@ func main() { plexgo.WithSecurity(""), plexgo.WithClientID("gcgzw5rz2xovp84b4vha3a40"), plexgo.WithClientName("Plex Web"), - plexgo.WithDeviceName("Linux"), plexgo.WithClientVersion("4.133.0"), - plexgo.WithXPlexPlatform("Chrome"), + plexgo.WithClientPlatform("Chrome"), + plexgo.WithDeviceName("Linux"), ) ctx := context.Background() @@ -89,9 +89,9 @@ func main() { plexgo.WithSecurity(""), plexgo.WithClientID("gcgzw5rz2xovp84b4vha3a40"), plexgo.WithClientName("Plex Web"), - plexgo.WithDeviceName("Linux"), plexgo.WithClientVersion("4.133.0"), - plexgo.WithXPlexPlatform("Chrome"), + plexgo.WithClientPlatform("Chrome"), + plexgo.WithDeviceName("Linux"), ) ctx := context.Background() @@ -146,9 +146,9 @@ func main() { plexgo.WithSecurity(""), plexgo.WithClientID("gcgzw5rz2xovp84b4vha3a40"), plexgo.WithClientName("Plex Web"), - plexgo.WithDeviceName("Linux"), plexgo.WithClientVersion("4.133.0"), - plexgo.WithXPlexPlatform("Chrome"), + plexgo.WithClientPlatform("Chrome"), + plexgo.WithDeviceName("Linux"), ) ctx := context.Background() diff --git a/docs/sdks/updater/README.md b/docs/sdks/updater/README.md index d7131b9..9d0ed11 100644 --- a/docs/sdks/updater/README.md +++ b/docs/sdks/updater/README.md @@ -33,9 +33,9 @@ func main() { plexgo.WithSecurity(""), plexgo.WithClientID("gcgzw5rz2xovp84b4vha3a40"), plexgo.WithClientName("Plex Web"), - plexgo.WithDeviceName("Linux"), plexgo.WithClientVersion("4.133.0"), - plexgo.WithXPlexPlatform("Chrome"), + plexgo.WithClientPlatform("Chrome"), + plexgo.WithDeviceName("Linux"), ) ctx := context.Background() @@ -90,9 +90,9 @@ func main() { plexgo.WithSecurity(""), plexgo.WithClientID("gcgzw5rz2xovp84b4vha3a40"), plexgo.WithClientName("Plex Web"), - plexgo.WithDeviceName("Linux"), plexgo.WithClientVersion("4.133.0"), - plexgo.WithXPlexPlatform("Chrome"), + plexgo.WithClientPlatform("Chrome"), + plexgo.WithDeviceName("Linux"), ) ctx := context.Background() @@ -149,9 +149,9 @@ func main() { plexgo.WithSecurity(""), plexgo.WithClientID("gcgzw5rz2xovp84b4vha3a40"), plexgo.WithClientName("Plex Web"), - plexgo.WithDeviceName("Linux"), plexgo.WithClientVersion("4.133.0"), - plexgo.WithXPlexPlatform("Chrome"), + plexgo.WithClientPlatform("Chrome"), + plexgo.WithDeviceName("Linux"), ) ctx := context.Background() diff --git a/docs/sdks/video/README.md b/docs/sdks/video/README.md index ff42aef..1033782 100644 --- a/docs/sdks/video/README.md +++ b/docs/sdks/video/README.md @@ -32,9 +32,9 @@ func main() { plexgo.WithSecurity(""), plexgo.WithClientID("gcgzw5rz2xovp84b4vha3a40"), plexgo.WithClientName("Plex Web"), - plexgo.WithDeviceName("Linux"), plexgo.WithClientVersion("4.133.0"), - plexgo.WithXPlexPlatform("Chrome"), + plexgo.WithClientPlatform("Chrome"), + plexgo.WithDeviceName("Linux"), ) ctx := context.Background() @@ -101,9 +101,9 @@ func main() { plexgo.WithSecurity(""), plexgo.WithClientID("gcgzw5rz2xovp84b4vha3a40"), plexgo.WithClientName("Plex Web"), - plexgo.WithDeviceName("Linux"), plexgo.WithClientVersion("4.133.0"), - plexgo.WithXPlexPlatform("Chrome"), + plexgo.WithClientPlatform("Chrome"), + plexgo.WithDeviceName("Linux"), ) ctx := context.Background() diff --git a/docs/sdks/watchlist/README.md b/docs/sdks/watchlist/README.md index 56305ae..42351f8 100644 --- a/docs/sdks/watchlist/README.md +++ b/docs/sdks/watchlist/README.md @@ -31,9 +31,9 @@ func main() { plexgo.WithSecurity(""), plexgo.WithClientID("gcgzw5rz2xovp84b4vha3a40"), plexgo.WithClientName("Plex Web"), - plexgo.WithDeviceName("Linux"), plexgo.WithClientVersion("4.133.0"), - plexgo.WithXPlexPlatform("Chrome"), + plexgo.WithClientPlatform("Chrome"), + plexgo.WithDeviceName("Linux"), ) ctx := context.Background() diff --git a/internal/globals/globals.go b/internal/globals/globals.go index 4224d58..c2103c9 100644 --- a/internal/globals/globals.go +++ b/internal/globals/globals.go @@ -7,11 +7,11 @@ type Globals struct { // This is used to track the client application and its usage // (UUID, serial number, or other number unique per device) // - ClientID *string `queryParam:"style=form,explode=true,name=X-Plex-Client-Identifier"` - ClientName *string `queryParam:"style=form,explode=true,name=X-Plex-Product"` - DeviceName *string `queryParam:"style=form,explode=true,name=X-Plex-Device"` - ClientVersion *string `queryParam:"style=form,explode=true,name=X-Plex-Version"` - XPlexPlatform *string `queryParam:"style=form,explode=true,name=X-Plex-Platform"` + ClientID *string `queryParam:"style=form,explode=true,name=X-Plex-Client-Identifier"` + ClientName *string `queryParam:"style=form,explode=true,name=X-Plex-Product"` + ClientVersion *string `queryParam:"style=form,explode=true,name=X-Plex-Version"` + ClientPlatform *string `queryParam:"style=form,explode=true,name=X-Plex-Platform"` + DeviceName *string `queryParam:"style=form,explode=true,name=X-Plex-Device"` } func (o *Globals) GetClientID() *string { @@ -28,13 +28,6 @@ func (o *Globals) GetClientName() *string { return o.ClientName } -func (o *Globals) GetDeviceName() *string { - if o == nil { - return nil - } - return o.DeviceName -} - func (o *Globals) GetClientVersion() *string { if o == nil { return nil @@ -42,9 +35,16 @@ func (o *Globals) GetClientVersion() *string { return o.ClientVersion } -func (o *Globals) GetXPlexPlatform() *string { +func (o *Globals) GetClientPlatform() *string { if o == nil { return nil } - return o.XPlexPlatform + return o.ClientPlatform +} + +func (o *Globals) GetDeviceName() *string { + if o == nil { + return nil + } + return o.DeviceName } diff --git a/models/operations/getpin.go b/models/operations/getpin.go index bf203e8..ee4ebb8 100644 --- a/models/operations/getpin.go +++ b/models/operations/getpin.go @@ -17,11 +17,11 @@ type GetPinGlobals struct { // This is used to track the client application and its usage // (UUID, serial number, or other number unique per device) // - ClientID *string `queryParam:"style=form,explode=true,name=X-Plex-Client-Identifier"` - ClientName *string `queryParam:"style=form,explode=true,name=X-Plex-Product"` - DeviceName *string `queryParam:"style=form,explode=true,name=X-Plex-Device"` - ClientVersion *string `queryParam:"style=form,explode=true,name=X-Plex-Version"` - XPlexPlatform *string `queryParam:"style=form,explode=true,name=X-Plex-Platform"` + ClientID *string `queryParam:"style=form,explode=true,name=X-Plex-Client-Identifier"` + ClientName *string `queryParam:"style=form,explode=true,name=X-Plex-Product"` + DeviceName *string `queryParam:"style=form,explode=true,name=X-Plex-Device"` + ClientVersion *string `queryParam:"style=form,explode=true,name=X-Plex-Version"` + ClientPlatform *string `queryParam:"style=form,explode=true,name=X-Plex-Platform"` } func (o *GetPinGlobals) GetClientID() *string { @@ -52,11 +52,11 @@ func (o *GetPinGlobals) GetClientVersion() *string { return o.ClientVersion } -func (o *GetPinGlobals) GetXPlexPlatform() *string { +func (o *GetPinGlobals) GetClientPlatform() *string { if o == nil { return nil } - return o.XPlexPlatform + return o.ClientPlatform } type GetPinRequest struct { @@ -69,11 +69,11 @@ type GetPinRequest struct { // This is used to track the client application and its usage // (UUID, serial number, or other number unique per device) // - ClientID *string `queryParam:"style=form,explode=true,name=X-Plex-Client-Identifier"` - ClientName *string `queryParam:"style=form,explode=true,name=X-Plex-Product"` - DeviceName *string `queryParam:"style=form,explode=true,name=X-Plex-Device"` - ClientVersion *string `queryParam:"style=form,explode=true,name=X-Plex-Version"` - XPlexPlatform *string `queryParam:"style=form,explode=true,name=X-Plex-Platform"` + ClientID *string `queryParam:"style=form,explode=true,name=X-Plex-Client-Identifier"` + ClientName *string `queryParam:"style=form,explode=true,name=X-Plex-Product"` + DeviceName *string `queryParam:"style=form,explode=true,name=X-Plex-Device"` + ClientVersion *string `queryParam:"style=form,explode=true,name=X-Plex-Version"` + ClientPlatform *string `queryParam:"style=form,explode=true,name=X-Plex-Platform"` } func (g GetPinRequest) MarshalJSON() ([]byte, error) { @@ -122,11 +122,11 @@ func (o *GetPinRequest) GetClientVersion() *string { return o.ClientVersion } -func (o *GetPinRequest) GetXPlexPlatform() *string { +func (o *GetPinRequest) GetClientPlatform() *string { if o == nil { return nil } - return o.XPlexPlatform + return o.ClientPlatform } // GeoData - Geo location data diff --git a/plex.go b/plex.go index da81d65..1763a87 100644 --- a/plex.go +++ b/plex.go @@ -1279,11 +1279,11 @@ func (s *Plex) GetPin(ctx context.Context, request operations.GetPinRequest, opt } globals := operations.GetPinGlobals{ - ClientID: s.sdkConfiguration.Globals.ClientID, - ClientName: s.sdkConfiguration.Globals.ClientName, - DeviceName: s.sdkConfiguration.Globals.DeviceName, - ClientVersion: s.sdkConfiguration.Globals.ClientVersion, - XPlexPlatform: s.sdkConfiguration.Globals.XPlexPlatform, + ClientID: s.sdkConfiguration.Globals.ClientID, + ClientName: s.sdkConfiguration.Globals.ClientName, + DeviceName: s.sdkConfiguration.Globals.DeviceName, + ClientVersion: s.sdkConfiguration.Globals.ClientVersion, + ClientPlatform: s.sdkConfiguration.Globals.ClientPlatform, } o := operations.Options{} diff --git a/plexapi.go b/plexapi.go index 13fa940..6fd2d3a 100644 --- a/plexapi.go +++ b/plexapi.go @@ -271,13 +271,6 @@ func WithClientName(clientName string) SDKOption { } } -// WithDeviceName allows setting the DeviceName parameter for all supported operations -func WithDeviceName(deviceName string) SDKOption { - return func(sdk *PlexAPI) { - sdk.sdkConfiguration.Globals.DeviceName = &deviceName - } -} - // WithClientVersion allows setting the ClientVersion parameter for all supported operations func WithClientVersion(clientVersion string) SDKOption { return func(sdk *PlexAPI) { @@ -285,10 +278,17 @@ func WithClientVersion(clientVersion string) SDKOption { } } -// WithXPlexPlatform allows setting the XPlexPlatform parameter for all supported operations -func WithXPlexPlatform(xPlexPlatform string) SDKOption { +// WithClientPlatform allows setting the ClientPlatform parameter for all supported operations +func WithClientPlatform(clientPlatform string) SDKOption { return func(sdk *PlexAPI) { - sdk.sdkConfiguration.Globals.XPlexPlatform = &xPlexPlatform + sdk.sdkConfiguration.Globals.ClientPlatform = &clientPlatform + } +} + +// WithDeviceName allows setting the DeviceName parameter for all supported operations +func WithDeviceName(deviceName string) SDKOption { + return func(sdk *PlexAPI) { + sdk.sdkConfiguration.Globals.DeviceName = &deviceName } } @@ -311,9 +311,9 @@ func New(opts ...SDKOption) *PlexAPI { sdkConfiguration: sdkConfiguration{ Language: "go", OpenAPIDocVersion: "0.0.3", - SDKVersion: "0.11.11", + SDKVersion: "0.11.12", GenVersion: "2.415.8", - UserAgent: "speakeasy-sdk/go 0.11.11 2.415.8 0.0.3 github.com/LukeHagar/plexgo", + UserAgent: "speakeasy-sdk/go 0.11.12 2.415.8 0.0.3 github.com/LukeHagar/plexgo", Globals: globals.Globals{}, ServerDefaults: []map[string]string{ {