ci: regenerated with OpenAPI Doc , Speakeasy CLI 1.399.0

This commit is contained in:
speakeasybot
2024-09-18 03:04:05 +00:00
parent fd429e38e0
commit e579b8d23b
39 changed files with 1025 additions and 255 deletions

View File

@@ -1,12 +1,12 @@
lockVersion: 2.0.0
id: dfa99515-01c0-42eb-9be5-ee212fd03eb3
management:
docChecksum: a6fee1797b2da7ccbaf7743772a40b56
docChecksum: 62cf0b3d6c83b31fcdeaab9b79d1a03f
docVersion: 0.0.3
speakeasyVersion: 1.397.2
speakeasyVersion: 1.399.0
generationVersion: 2.415.8
releaseVersion: 0.11.10
configChecksum: 4d3411420fc83f311f4839f734958ef7
releaseVersion: 0.11.11
configChecksum: 9cd5bb613face8998ab120a46a8bb735
repoURL: https://github.com/LukeHagar/plexgo.git
repoSubDirectory: .
installationURL: https://github.com/LukeHagar/plexgo
@@ -1250,7 +1250,10 @@ examples:
"":
parameters:
query:
X-Plex-Product: "Plex Web"
X-Plex-Product: Plex Web
X-Plex-Device: Linux
X-Plex-Version: 4.133.0
X-Plex-Platform: Chrome
responses:
"200":
application/json: {"id": 308667304, "code": "7RQZ", "product": "0", "trusted": false, "qr": "https://plex.tv/api/v2/pins/qr/7RQZ", "clientIdentifier": "string", "location": {"code": "VI", "continent_code": "NA", "country": "United States Virgin Islands", "city": "Amsterdam", "european_union_member": true, "time_zone": "America/St_Thomas", "postal_code": 802, "in_privacy_restricted_country": true, "in_privacy_restricted_region": true, "subdivisions": "Saint Thomas", "coordinates": "18.3381, -64.8941"}, "expiresIn": 876, "createdAt": "2024-07-16T17:03:05Z", "expiresAt": "2024-07-16T17:18:05Z", "authToken": null, "newRegistration": null}

View File

@@ -12,7 +12,7 @@ generation:
auth:
oAuth2ClientCredentialsEnabled: true
go:
version: 0.11.10
version: 0.11.11
additionalDependencies: {}
allowUnknownFieldsInWeakUnions: false
clientServerStatusCodesAsErrors: true

View File

@@ -1,4 +1,4 @@
speakeasyVersion: 1.397.2
speakeasyVersion: 1.399.0
sources:
my-source:
sourceNamespace: my-source
@@ -9,8 +9,8 @@ sources:
- main
plexapi:
sourceNamespace: plexapi
sourceRevisionDigest: sha256:533fe97486e3fe2d84e890b7bbcdba4543d415e45181386154e011861f6da36f
sourceBlobDigest: sha256:f7e2709f52370dff16c1851a7a4e44a89f2e978e9cae335bffc10625950b3bd9
sourceRevisionDigest: sha256:957dc5226ef7b740811a8c5ad0a0a59f37ee8eafd68fbf8686326f49a9216e83
sourceBlobDigest: sha256:b422e0684d1f7d90919f3ba6e3508fc8564af9810e13394a707d0d9016facb2c
tags:
- latest
- main
@@ -18,10 +18,10 @@ targets:
plexgo:
source: plexapi
sourceNamespace: plexapi
sourceRevisionDigest: sha256:533fe97486e3fe2d84e890b7bbcdba4543d415e45181386154e011861f6da36f
sourceBlobDigest: sha256:f7e2709f52370dff16c1851a7a4e44a89f2e978e9cae335bffc10625950b3bd9
sourceRevisionDigest: sha256:957dc5226ef7b740811a8c5ad0a0a59f37ee8eafd68fbf8686326f49a9216e83
sourceBlobDigest: sha256:b422e0684d1f7d90919f3ba6e3508fc8564af9810e13394a707d0d9016facb2c
codeSamplesNamespace: code-samples-go-plexgo
codeSamplesRevisionDigest: sha256:ba2ba4d04b303610d1b4e427fc8218019e23e68eadf78aebe160d760566a5066
codeSamplesRevisionDigest: sha256:10f0ca43c97f1275b36a100af203ef302d5dad9a8736f731445a909296a48027
workflow:
workflowVersion: 1.0.0
speakeasyVersion: latest

View File

@@ -54,7 +54,11 @@ import (
func main() {
s := plexgo.New(
plexgo.WithSecurity("<YOUR_API_KEY_HERE>"),
plexgo.WithXPlexClientIdentifier("gcgzw5rz2xovp84b4vha3a40"),
plexgo.WithClientID("gcgzw5rz2xovp84b4vha3a40"),
plexgo.WithClientName("Plex Web"),
plexgo.WithDeviceName("Linux"),
plexgo.WithClientVersion("4.133.0"),
plexgo.WithXPlexPlatform("Chrome"),
)
ctx := context.Background()
@@ -222,7 +226,11 @@ import (
func main() {
s := plexgo.New(
plexgo.WithSecurity("<YOUR_API_KEY_HERE>"),
plexgo.WithXPlexClientIdentifier("gcgzw5rz2xovp84b4vha3a40"),
plexgo.WithClientID("gcgzw5rz2xovp84b4vha3a40"),
plexgo.WithClientName("Plex Web"),
plexgo.WithDeviceName("Linux"),
plexgo.WithClientVersion("4.133.0"),
plexgo.WithXPlexPlatform("Chrome"),
)
ctx := context.Background()
@@ -272,7 +280,11 @@ func main() {
RetryConnectionErrors: false,
}),
plexgo.WithSecurity("<YOUR_API_KEY_HERE>"),
plexgo.WithXPlexClientIdentifier("gcgzw5rz2xovp84b4vha3a40"),
plexgo.WithClientID("gcgzw5rz2xovp84b4vha3a40"),
plexgo.WithClientName("Plex Web"),
plexgo.WithDeviceName("Linux"),
plexgo.WithClientVersion("4.133.0"),
plexgo.WithXPlexPlatform("Chrome"),
)
ctx := context.Background()
@@ -315,7 +327,11 @@ import (
func main() {
s := plexgo.New(
plexgo.WithSecurity("<YOUR_API_KEY_HERE>"),
plexgo.WithXPlexClientIdentifier("gcgzw5rz2xovp84b4vha3a40"),
plexgo.WithClientID("gcgzw5rz2xovp84b4vha3a40"),
plexgo.WithClientName("Plex Web"),
plexgo.WithDeviceName("Linux"),
plexgo.WithClientVersion("4.133.0"),
plexgo.WithXPlexPlatform("Chrome"),
)
ctx := context.Background()
@@ -371,7 +387,11 @@ func main() {
s := plexgo.New(
plexgo.WithServerIndex(0),
plexgo.WithSecurity("<YOUR_API_KEY_HERE>"),
plexgo.WithXPlexClientIdentifier("gcgzw5rz2xovp84b4vha3a40"),
plexgo.WithClientID("gcgzw5rz2xovp84b4vha3a40"),
plexgo.WithClientName("Plex Web"),
plexgo.WithDeviceName("Linux"),
plexgo.WithClientVersion("4.133.0"),
plexgo.WithXPlexPlatform("Chrome"),
)
ctx := context.Background()
@@ -409,7 +429,11 @@ func main() {
s := plexgo.New(
plexgo.WithServerURL("{protocol}://{ip}:{port}"),
plexgo.WithSecurity("<YOUR_API_KEY_HERE>"),
plexgo.WithXPlexClientIdentifier("gcgzw5rz2xovp84b4vha3a40"),
plexgo.WithClientID("gcgzw5rz2xovp84b4vha3a40"),
plexgo.WithClientName("Plex Web"),
plexgo.WithDeviceName("Linux"),
plexgo.WithClientVersion("4.133.0"),
plexgo.WithXPlexPlatform("Chrome"),
)
ctx := context.Background()
@@ -440,7 +464,11 @@ import (
func main() {
s := plexgo.New(
plexgo.WithSecurity("<YOUR_API_KEY_HERE>"),
plexgo.WithXPlexClientIdentifier("gcgzw5rz2xovp84b4vha3a40"),
plexgo.WithClientID("gcgzw5rz2xovp84b4vha3a40"),
plexgo.WithClientName("Plex Web"),
plexgo.WithDeviceName("Linux"),
plexgo.WithClientVersion("4.133.0"),
plexgo.WithXPlexPlatform("Chrome"),
)
ctx := context.Background()
@@ -509,7 +537,11 @@ import (
func main() {
s := plexgo.New(
plexgo.WithSecurity("<YOUR_API_KEY_HERE>"),
plexgo.WithXPlexClientIdentifier("gcgzw5rz2xovp84b4vha3a40"),
plexgo.WithClientID("gcgzw5rz2xovp84b4vha3a40"),
plexgo.WithClientName("Plex Web"),
plexgo.WithDeviceName("Linux"),
plexgo.WithClientVersion("4.133.0"),
plexgo.WithXPlexPlatform("Chrome"),
)
ctx := context.Background()
@@ -554,21 +586,25 @@ d6 := types.MustDateFromString("2019-01-01") // returns types.Date and panics on
<!-- Start 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
The following global parameter is available.
The following global parameters are available.
| Name | Type | Required | Description |
| ---- | ---- |:--------:| ----------- |
| XPlexClientIdentifier | string | | The unique identifier for the client application
| ClientID | string | | The unique identifier for the client application
This is used to track the client application and its usage
(UUID, serial number, or other number unique per device)
|
| ClientName | string | | The ClientName parameter. |
| DeviceName | string | | The DeviceName parameter. |
| ClientVersion | string | | The ClientVersion parameter. |
| XPlexPlatform | string | | The XPlexPlatform parameter. |
### Example
@@ -586,7 +622,11 @@ import (
func main() {
s := plexgo.New(
plexgo.WithSecurity("<YOUR_API_KEY_HERE>"),
plexgo.WithXPlexClientIdentifier("gcgzw5rz2xovp84b4vha3a40"),
plexgo.WithClientID("gcgzw5rz2xovp84b4vha3a40"),
plexgo.WithClientName("Plex Web"),
plexgo.WithDeviceName("Linux"),
plexgo.WithClientVersion("4.133.0"),
plexgo.WithXPlexPlatform("Chrome"),
)
ctx := context.Background()

View File

@@ -852,4 +852,14 @@ Based on:
### Generated
- [go v0.11.10] .
### Releases
- [Go v0.11.10] https://github.com/LukeHagar/plexgo/releases/tag/v0.11.10 - .
- [Go v0.11.10] https://github.com/LukeHagar/plexgo/releases/tag/v0.11.10 - .
## 2024-09-18 03:01:47
### Changes
Based on:
- OpenAPI Doc
- Speakeasy CLI 1.399.0 (2.415.8) https://github.com/speakeasy-api/speakeasy
### Generated
- [go v0.11.11] .
### Releases
- [Go v0.11.11] https://github.com/LukeHagar/plexgo/releases/tag/v0.11.11 - .

View File

@@ -11,7 +11,11 @@ import (
func main() {
s := plexgo.New(
plexgo.WithSecurity("<YOUR_API_KEY_HERE>"),
plexgo.WithXPlexClientIdentifier("gcgzw5rz2xovp84b4vha3a40"),
plexgo.WithClientID("gcgzw5rz2xovp84b4vha3a40"),
plexgo.WithClientName("Plex Web"),
plexgo.WithDeviceName("Linux"),
plexgo.WithClientVersion("4.133.0"),
plexgo.WithXPlexPlatform("Chrome"),
)
ctx := context.Background()

View File

@@ -736,7 +736,7 @@ func (s *Authentication) GetTokenDetails(ctx context.Context, opts ...operations
// PostUsersSignInData - Get User Sign In Data
// Sign in user with username and password and return user data with Plex authentication token
func (s *Authentication) PostUsersSignInData(ctx context.Context, xPlexClientIdentifier *string, requestBody *operations.PostUsersSignInDataRequestBody, opts ...operations.Option) (*operations.PostUsersSignInDataResponse, error) {
func (s *Authentication) PostUsersSignInData(ctx context.Context, clientID *string, requestBody *operations.PostUsersSignInDataRequestBody, opts ...operations.Option) (*operations.PostUsersSignInDataResponse, error) {
hookCtx := hooks.HookContext{
Context: ctx,
OperationID: "post-users-sign-in-data",
@@ -745,12 +745,12 @@ func (s *Authentication) PostUsersSignInData(ctx context.Context, xPlexClientIde
}
request := operations.PostUsersSignInDataRequest{
XPlexClientIdentifier: xPlexClientIdentifier,
RequestBody: requestBody,
ClientID: clientID,
RequestBody: requestBody,
}
globals := operations.PostUsersSignInDataGlobals{
XPlexClientIdentifier: s.sdkConfiguration.Globals.XPlexClientIdentifier,
ClientID: s.sdkConfiguration.Globals.ClientID,
}
o := operations.Options{}

View File

@@ -20,7 +20,11 @@ actions:
func main() {
s := plexgo.New(
plexgo.WithSecurity("<YOUR_API_KEY_HERE>"),
plexgo.WithXPlexClientIdentifier("gcgzw5rz2xovp84b4vha3a40"),
plexgo.WithClientID("gcgzw5rz2xovp84b4vha3a40"),
plexgo.WithClientName("Plex Web"),
plexgo.WithDeviceName("Linux"),
plexgo.WithClientVersion("4.133.0"),
plexgo.WithXPlexPlatform("Chrome"),
)
ctx := context.Background()
@@ -49,7 +53,11 @@ actions:
func main() {
s := plexgo.New(
plexgo.WithSecurity("<YOUR_API_KEY_HERE>"),
plexgo.WithXPlexClientIdentifier("gcgzw5rz2xovp84b4vha3a40"),
plexgo.WithClientID("gcgzw5rz2xovp84b4vha3a40"),
plexgo.WithClientName("Plex Web"),
plexgo.WithDeviceName("Linux"),
plexgo.WithClientVersion("4.133.0"),
plexgo.WithXPlexPlatform("Chrome"),
)
ctx := context.Background()
@@ -78,7 +86,11 @@ actions:
func main() {
s := plexgo.New(
plexgo.WithSecurity("<YOUR_API_KEY_HERE>"),
plexgo.WithXPlexClientIdentifier("gcgzw5rz2xovp84b4vha3a40"),
plexgo.WithClientID("gcgzw5rz2xovp84b4vha3a40"),
plexgo.WithClientName("Plex Web"),
plexgo.WithDeviceName("Linux"),
plexgo.WithClientVersion("4.133.0"),
plexgo.WithXPlexPlatform("Chrome"),
)
ctx := context.Background()
@@ -107,7 +119,11 @@ actions:
func main() {
s := plexgo.New(
plexgo.WithSecurity("<YOUR_API_KEY_HERE>"),
plexgo.WithXPlexClientIdentifier("gcgzw5rz2xovp84b4vha3a40"),
plexgo.WithClientID("gcgzw5rz2xovp84b4vha3a40"),
plexgo.WithClientName("Plex Web"),
plexgo.WithDeviceName("Linux"),
plexgo.WithClientVersion("4.133.0"),
plexgo.WithXPlexPlatform("Chrome"),
)
ctx := context.Background()
@@ -137,7 +153,11 @@ actions:
func main() {
s := plexgo.New(
plexgo.WithSecurity("<YOUR_API_KEY_HERE>"),
plexgo.WithXPlexClientIdentifier("gcgzw5rz2xovp84b4vha3a40"),
plexgo.WithClientID("gcgzw5rz2xovp84b4vha3a40"),
plexgo.WithClientName("Plex Web"),
plexgo.WithDeviceName("Linux"),
plexgo.WithClientVersion("4.133.0"),
plexgo.WithXPlexPlatform("Chrome"),
)
ctx := context.Background()
@@ -177,7 +197,11 @@ actions:
func main() {
s := plexgo.New(
plexgo.WithSecurity("<YOUR_API_KEY_HERE>"),
plexgo.WithXPlexClientIdentifier("gcgzw5rz2xovp84b4vha3a40"),
plexgo.WithClientID("gcgzw5rz2xovp84b4vha3a40"),
plexgo.WithClientName("Plex Web"),
plexgo.WithDeviceName("Linux"),
plexgo.WithClientVersion("4.133.0"),
plexgo.WithXPlexPlatform("Chrome"),
)
ctx := context.Background()
@@ -206,7 +230,11 @@ actions:
func main() {
s := plexgo.New(
plexgo.WithSecurity("<YOUR_API_KEY_HERE>"),
plexgo.WithXPlexClientIdentifier("gcgzw5rz2xovp84b4vha3a40"),
plexgo.WithClientID("gcgzw5rz2xovp84b4vha3a40"),
plexgo.WithClientName("Plex Web"),
plexgo.WithDeviceName("Linux"),
plexgo.WithClientVersion("4.133.0"),
plexgo.WithXPlexPlatform("Chrome"),
)
ctx := context.Background()
@@ -235,7 +263,11 @@ actions:
func main() {
s := plexgo.New(
plexgo.WithSecurity("<YOUR_API_KEY_HERE>"),
plexgo.WithXPlexClientIdentifier("gcgzw5rz2xovp84b4vha3a40"),
plexgo.WithClientID("gcgzw5rz2xovp84b4vha3a40"),
plexgo.WithClientName("Plex Web"),
plexgo.WithDeviceName("Linux"),
plexgo.WithClientVersion("4.133.0"),
plexgo.WithXPlexPlatform("Chrome"),
)
ctx := context.Background()
@@ -264,7 +296,11 @@ actions:
func main() {
s := plexgo.New(
plexgo.WithSecurity("<YOUR_API_KEY_HERE>"),
plexgo.WithXPlexClientIdentifier("gcgzw5rz2xovp84b4vha3a40"),
plexgo.WithClientID("gcgzw5rz2xovp84b4vha3a40"),
plexgo.WithClientName("Plex Web"),
plexgo.WithDeviceName("Linux"),
plexgo.WithClientVersion("4.133.0"),
plexgo.WithXPlexPlatform("Chrome"),
)
ctx := context.Background()
@@ -293,7 +329,11 @@ actions:
func main() {
s := plexgo.New(
plexgo.WithSecurity("<YOUR_API_KEY_HERE>"),
plexgo.WithXPlexClientIdentifier("gcgzw5rz2xovp84b4vha3a40"),
plexgo.WithClientID("gcgzw5rz2xovp84b4vha3a40"),
plexgo.WithClientName("Plex Web"),
plexgo.WithDeviceName("Linux"),
plexgo.WithClientVersion("4.133.0"),
plexgo.WithXPlexPlatform("Chrome"),
)
ctx := context.Background()
@@ -322,7 +362,11 @@ actions:
func main() {
s := plexgo.New(
plexgo.WithSecurity("<YOUR_API_KEY_HERE>"),
plexgo.WithXPlexClientIdentifier("gcgzw5rz2xovp84b4vha3a40"),
plexgo.WithClientID("gcgzw5rz2xovp84b4vha3a40"),
plexgo.WithClientName("Plex Web"),
plexgo.WithDeviceName("Linux"),
plexgo.WithClientVersion("4.133.0"),
plexgo.WithXPlexPlatform("Chrome"),
)
ctx := context.Background()
@@ -352,7 +396,11 @@ actions:
func main() {
s := plexgo.New(
plexgo.WithSecurity("<YOUR_API_KEY_HERE>"),
plexgo.WithXPlexClientIdentifier("gcgzw5rz2xovp84b4vha3a40"),
plexgo.WithClientID("gcgzw5rz2xovp84b4vha3a40"),
plexgo.WithClientName("Plex Web"),
plexgo.WithDeviceName("Linux"),
plexgo.WithClientVersion("4.133.0"),
plexgo.WithXPlexPlatform("Chrome"),
)
ctx := context.Background()
@@ -382,7 +430,11 @@ actions:
func main() {
s := plexgo.New(
plexgo.WithSecurity("<YOUR_API_KEY_HERE>"),
plexgo.WithXPlexClientIdentifier("gcgzw5rz2xovp84b4vha3a40"),
plexgo.WithClientID("gcgzw5rz2xovp84b4vha3a40"),
plexgo.WithClientName("Plex Web"),
plexgo.WithDeviceName("Linux"),
plexgo.WithClientVersion("4.133.0"),
plexgo.WithXPlexPlatform("Chrome"),
)
ctx := context.Background()
@@ -411,7 +463,11 @@ actions:
func main() {
s := plexgo.New(
plexgo.WithSecurity("<YOUR_API_KEY_HERE>"),
plexgo.WithXPlexClientIdentifier("gcgzw5rz2xovp84b4vha3a40"),
plexgo.WithClientID("gcgzw5rz2xovp84b4vha3a40"),
plexgo.WithClientName("Plex Web"),
plexgo.WithDeviceName("Linux"),
plexgo.WithClientVersion("4.133.0"),
plexgo.WithXPlexPlatform("Chrome"),
)
ctx := context.Background()
@@ -440,7 +496,11 @@ actions:
func main() {
s := plexgo.New(
plexgo.WithSecurity("<YOUR_API_KEY_HERE>"),
plexgo.WithXPlexClientIdentifier("gcgzw5rz2xovp84b4vha3a40"),
plexgo.WithClientID("gcgzw5rz2xovp84b4vha3a40"),
plexgo.WithClientName("Plex Web"),
plexgo.WithDeviceName("Linux"),
plexgo.WithClientVersion("4.133.0"),
plexgo.WithXPlexPlatform("Chrome"),
)
ctx := context.Background()
@@ -469,7 +529,11 @@ actions:
func main() {
s := plexgo.New(
plexgo.WithSecurity("<YOUR_API_KEY_HERE>"),
plexgo.WithXPlexClientIdentifier("gcgzw5rz2xovp84b4vha3a40"),
plexgo.WithClientID("gcgzw5rz2xovp84b4vha3a40"),
plexgo.WithClientName("Plex Web"),
plexgo.WithDeviceName("Linux"),
plexgo.WithClientVersion("4.133.0"),
plexgo.WithXPlexPlatform("Chrome"),
)
ctx := context.Background()
@@ -498,7 +562,11 @@ actions:
func main() {
s := plexgo.New(
plexgo.WithSecurity("<YOUR_API_KEY_HERE>"),
plexgo.WithXPlexClientIdentifier("gcgzw5rz2xovp84b4vha3a40"),
plexgo.WithClientID("gcgzw5rz2xovp84b4vha3a40"),
plexgo.WithClientName("Plex Web"),
plexgo.WithDeviceName("Linux"),
plexgo.WithClientVersion("4.133.0"),
plexgo.WithXPlexPlatform("Chrome"),
)
ctx := context.Background()
@@ -526,7 +594,11 @@ actions:
func main() {
s := plexgo.New(
plexgo.WithXPlexClientIdentifier("gcgzw5rz2xovp84b4vha3a40"),
plexgo.WithClientID("gcgzw5rz2xovp84b4vha3a40"),
plexgo.WithClientName("Plex Web"),
plexgo.WithDeviceName("Linux"),
plexgo.WithClientVersion("4.133.0"),
plexgo.WithXPlexPlatform("Chrome"),
)
ctx := context.Background()
@@ -555,7 +627,11 @@ actions:
func main() {
s := plexgo.New(
plexgo.WithSecurity("<YOUR_API_KEY_HERE>"),
plexgo.WithXPlexClientIdentifier("gcgzw5rz2xovp84b4vha3a40"),
plexgo.WithClientID("gcgzw5rz2xovp84b4vha3a40"),
plexgo.WithClientName("Plex Web"),
plexgo.WithDeviceName("Linux"),
plexgo.WithClientVersion("4.133.0"),
plexgo.WithXPlexPlatform("Chrome"),
)
ctx := context.Background()
@@ -584,7 +660,11 @@ actions:
func main() {
s := plexgo.New(
plexgo.WithSecurity("<YOUR_API_KEY_HERE>"),
plexgo.WithXPlexClientIdentifier("gcgzw5rz2xovp84b4vha3a40"),
plexgo.WithClientID("gcgzw5rz2xovp84b4vha3a40"),
plexgo.WithClientName("Plex Web"),
plexgo.WithDeviceName("Linux"),
plexgo.WithClientVersion("4.133.0"),
plexgo.WithXPlexPlatform("Chrome"),
)
ctx := context.Background()
@@ -613,7 +693,11 @@ actions:
func main() {
s := plexgo.New(
plexgo.WithSecurity("<YOUR_API_KEY_HERE>"),
plexgo.WithXPlexClientIdentifier("gcgzw5rz2xovp84b4vha3a40"),
plexgo.WithClientID("gcgzw5rz2xovp84b4vha3a40"),
plexgo.WithClientName("Plex Web"),
plexgo.WithDeviceName("Linux"),
plexgo.WithClientVersion("4.133.0"),
plexgo.WithXPlexPlatform("Chrome"),
)
ctx := context.Background()
@@ -642,7 +726,11 @@ actions:
func main() {
s := plexgo.New(
plexgo.WithSecurity("<YOUR_API_KEY_HERE>"),
plexgo.WithXPlexClientIdentifier("gcgzw5rz2xovp84b4vha3a40"),
plexgo.WithClientID("gcgzw5rz2xovp84b4vha3a40"),
plexgo.WithClientName("Plex Web"),
plexgo.WithDeviceName("Linux"),
plexgo.WithClientVersion("4.133.0"),
plexgo.WithXPlexPlatform("Chrome"),
)
ctx := context.Background()
@@ -671,7 +759,11 @@ actions:
func main() {
s := plexgo.New(
plexgo.WithSecurity("<YOUR_API_KEY_HERE>"),
plexgo.WithXPlexClientIdentifier("gcgzw5rz2xovp84b4vha3a40"),
plexgo.WithClientID("gcgzw5rz2xovp84b4vha3a40"),
plexgo.WithClientName("Plex Web"),
plexgo.WithDeviceName("Linux"),
plexgo.WithClientVersion("4.133.0"),
plexgo.WithXPlexPlatform("Chrome"),
)
ctx := context.Background()
@@ -699,7 +791,11 @@ actions:
func main() {
s := plexgo.New(
plexgo.WithXPlexClientIdentifier("gcgzw5rz2xovp84b4vha3a40"),
plexgo.WithClientID("gcgzw5rz2xovp84b4vha3a40"),
plexgo.WithClientName("Plex Web"),
plexgo.WithDeviceName("Linux"),
plexgo.WithClientVersion("4.133.0"),
plexgo.WithXPlexPlatform("Chrome"),
)
ctx := context.Background()
@@ -729,7 +825,11 @@ actions:
func main() {
s := plexgo.New(
plexgo.WithSecurity("<YOUR_API_KEY_HERE>"),
plexgo.WithXPlexClientIdentifier("gcgzw5rz2xovp84b4vha3a40"),
plexgo.WithClientID("gcgzw5rz2xovp84b4vha3a40"),
plexgo.WithClientName("Plex Web"),
plexgo.WithDeviceName("Linux"),
plexgo.WithClientVersion("4.133.0"),
plexgo.WithXPlexPlatform("Chrome"),
)
ctx := context.Background()
@@ -758,7 +858,11 @@ actions:
func main() {
s := plexgo.New(
plexgo.WithSecurity("<YOUR_API_KEY_HERE>"),
plexgo.WithXPlexClientIdentifier("gcgzw5rz2xovp84b4vha3a40"),
plexgo.WithClientID("gcgzw5rz2xovp84b4vha3a40"),
plexgo.WithClientName("Plex Web"),
plexgo.WithDeviceName("Linux"),
plexgo.WithClientVersion("4.133.0"),
plexgo.WithXPlexPlatform("Chrome"),
)
ctx := context.Background()
@@ -787,7 +891,11 @@ actions:
func main() {
s := plexgo.New(
plexgo.WithSecurity("<YOUR_API_KEY_HERE>"),
plexgo.WithXPlexClientIdentifier("gcgzw5rz2xovp84b4vha3a40"),
plexgo.WithClientID("gcgzw5rz2xovp84b4vha3a40"),
plexgo.WithClientName("Plex Web"),
plexgo.WithDeviceName("Linux"),
plexgo.WithClientVersion("4.133.0"),
plexgo.WithXPlexPlatform("Chrome"),
)
ctx := context.Background()
@@ -817,7 +925,11 @@ actions:
func main() {
s := plexgo.New(
plexgo.WithSecurity("<YOUR_API_KEY_HERE>"),
plexgo.WithXPlexClientIdentifier("gcgzw5rz2xovp84b4vha3a40"),
plexgo.WithClientID("gcgzw5rz2xovp84b4vha3a40"),
plexgo.WithClientName("Plex Web"),
plexgo.WithDeviceName("Linux"),
plexgo.WithClientVersion("4.133.0"),
plexgo.WithXPlexPlatform("Chrome"),
)
ctx := context.Background()
@@ -853,7 +965,11 @@ actions:
func main() {
s := plexgo.New(
plexgo.WithSecurity("<YOUR_API_KEY_HERE>"),
plexgo.WithXPlexClientIdentifier("gcgzw5rz2xovp84b4vha3a40"),
plexgo.WithClientID("gcgzw5rz2xovp84b4vha3a40"),
plexgo.WithClientName("Plex Web"),
plexgo.WithDeviceName("Linux"),
plexgo.WithClientVersion("4.133.0"),
plexgo.WithXPlexPlatform("Chrome"),
)
ctx := context.Background()
@@ -883,7 +999,11 @@ actions:
func main() {
s := plexgo.New(
plexgo.WithSecurity("<YOUR_API_KEY_HERE>"),
plexgo.WithXPlexClientIdentifier("gcgzw5rz2xovp84b4vha3a40"),
plexgo.WithClientID("gcgzw5rz2xovp84b4vha3a40"),
plexgo.WithClientName("Plex Web"),
plexgo.WithDeviceName("Linux"),
plexgo.WithClientVersion("4.133.0"),
plexgo.WithXPlexPlatform("Chrome"),
)
ctx := context.Background()
@@ -919,7 +1039,11 @@ actions:
func main() {
s := plexgo.New(
plexgo.WithSecurity("<YOUR_API_KEY_HERE>"),
plexgo.WithXPlexClientIdentifier("gcgzw5rz2xovp84b4vha3a40"),
plexgo.WithClientID("gcgzw5rz2xovp84b4vha3a40"),
plexgo.WithClientName("Plex Web"),
plexgo.WithDeviceName("Linux"),
plexgo.WithClientVersion("4.133.0"),
plexgo.WithXPlexPlatform("Chrome"),
)
ctx := context.Background()
@@ -948,7 +1072,11 @@ actions:
func main() {
s := plexgo.New(
plexgo.WithSecurity("<YOUR_API_KEY_HERE>"),
plexgo.WithXPlexClientIdentifier("gcgzw5rz2xovp84b4vha3a40"),
plexgo.WithClientID("gcgzw5rz2xovp84b4vha3a40"),
plexgo.WithClientName("Plex Web"),
plexgo.WithDeviceName("Linux"),
plexgo.WithClientVersion("4.133.0"),
plexgo.WithXPlexPlatform("Chrome"),
)
ctx := context.Background()
@@ -977,7 +1105,11 @@ actions:
func main() {
s := plexgo.New(
plexgo.WithSecurity("<YOUR_API_KEY_HERE>"),
plexgo.WithXPlexClientIdentifier("gcgzw5rz2xovp84b4vha3a40"),
plexgo.WithClientID("gcgzw5rz2xovp84b4vha3a40"),
plexgo.WithClientName("Plex Web"),
plexgo.WithDeviceName("Linux"),
plexgo.WithClientVersion("4.133.0"),
plexgo.WithXPlexPlatform("Chrome"),
)
ctx := context.Background()
@@ -1007,7 +1139,11 @@ actions:
func main() {
s := plexgo.New(
plexgo.WithSecurity("<YOUR_API_KEY_HERE>"),
plexgo.WithXPlexClientIdentifier("gcgzw5rz2xovp84b4vha3a40"),
plexgo.WithClientID("gcgzw5rz2xovp84b4vha3a40"),
plexgo.WithClientName("Plex Web"),
plexgo.WithDeviceName("Linux"),
plexgo.WithClientVersion("4.133.0"),
plexgo.WithXPlexPlatform("Chrome"),
)
ctx := context.Background()
@@ -1041,7 +1177,11 @@ actions:
func main() {
s := plexgo.New(
plexgo.WithSecurity("<YOUR_API_KEY_HERE>"),
plexgo.WithXPlexClientIdentifier("gcgzw5rz2xovp84b4vha3a40"),
plexgo.WithClientID("gcgzw5rz2xovp84b4vha3a40"),
plexgo.WithClientName("Plex Web"),
plexgo.WithDeviceName("Linux"),
plexgo.WithClientVersion("4.133.0"),
plexgo.WithXPlexPlatform("Chrome"),
)
ctx := context.Background()
@@ -1070,7 +1210,11 @@ actions:
func main() {
s := plexgo.New(
plexgo.WithSecurity("<YOUR_API_KEY_HERE>"),
plexgo.WithXPlexClientIdentifier("gcgzw5rz2xovp84b4vha3a40"),
plexgo.WithClientID("gcgzw5rz2xovp84b4vha3a40"),
plexgo.WithClientName("Plex Web"),
plexgo.WithDeviceName("Linux"),
plexgo.WithClientVersion("4.133.0"),
plexgo.WithXPlexPlatform("Chrome"),
)
ctx := context.Background()
@@ -1100,7 +1244,11 @@ actions:
func main() {
s := plexgo.New(
plexgo.WithSecurity("<YOUR_API_KEY_HERE>"),
plexgo.WithXPlexClientIdentifier("gcgzw5rz2xovp84b4vha3a40"),
plexgo.WithClientID("gcgzw5rz2xovp84b4vha3a40"),
plexgo.WithClientName("Plex Web"),
plexgo.WithDeviceName("Linux"),
plexgo.WithClientVersion("4.133.0"),
plexgo.WithXPlexPlatform("Chrome"),
)
ctx := context.Background()
@@ -1130,7 +1278,11 @@ actions:
func main() {
s := plexgo.New(
plexgo.WithSecurity("<YOUR_API_KEY_HERE>"),
plexgo.WithXPlexClientIdentifier("gcgzw5rz2xovp84b4vha3a40"),
plexgo.WithClientID("gcgzw5rz2xovp84b4vha3a40"),
plexgo.WithClientName("Plex Web"),
plexgo.WithDeviceName("Linux"),
plexgo.WithClientVersion("4.133.0"),
plexgo.WithXPlexPlatform("Chrome"),
)
ctx := context.Background()
@@ -1160,7 +1312,11 @@ actions:
func main() {
s := plexgo.New(
plexgo.WithSecurity("<YOUR_API_KEY_HERE>"),
plexgo.WithXPlexClientIdentifier("gcgzw5rz2xovp84b4vha3a40"),
plexgo.WithClientID("gcgzw5rz2xovp84b4vha3a40"),
plexgo.WithClientName("Plex Web"),
plexgo.WithDeviceName("Linux"),
plexgo.WithClientVersion("4.133.0"),
plexgo.WithXPlexPlatform("Chrome"),
)
ctx := context.Background()
@@ -1198,7 +1354,11 @@ actions:
func main() {
s := plexgo.New(
plexgo.WithSecurity("<YOUR_API_KEY_HERE>"),
plexgo.WithXPlexClientIdentifier("gcgzw5rz2xovp84b4vha3a40"),
plexgo.WithClientID("gcgzw5rz2xovp84b4vha3a40"),
plexgo.WithClientName("Plex Web"),
plexgo.WithDeviceName("Linux"),
plexgo.WithClientVersion("4.133.0"),
plexgo.WithXPlexPlatform("Chrome"),
)
ctx := context.Background()
@@ -1227,7 +1387,11 @@ actions:
func main() {
s := plexgo.New(
plexgo.WithSecurity("<YOUR_API_KEY_HERE>"),
plexgo.WithXPlexClientIdentifier("gcgzw5rz2xovp84b4vha3a40"),
plexgo.WithClientID("gcgzw5rz2xovp84b4vha3a40"),
plexgo.WithClientName("Plex Web"),
plexgo.WithDeviceName("Linux"),
plexgo.WithClientVersion("4.133.0"),
plexgo.WithXPlexPlatform("Chrome"),
)
ctx := context.Background()
@@ -1258,7 +1422,11 @@ actions:
func main() {
s := plexgo.New(
plexgo.WithSecurity("<YOUR_API_KEY_HERE>"),
plexgo.WithXPlexClientIdentifier("gcgzw5rz2xovp84b4vha3a40"),
plexgo.WithClientID("gcgzw5rz2xovp84b4vha3a40"),
plexgo.WithClientName("Plex Web"),
plexgo.WithDeviceName("Linux"),
plexgo.WithClientVersion("4.133.0"),
plexgo.WithXPlexPlatform("Chrome"),
)
ctx := context.Background()
@@ -1287,7 +1455,11 @@ actions:
func main() {
s := plexgo.New(
plexgo.WithSecurity("<YOUR_API_KEY_HERE>"),
plexgo.WithXPlexClientIdentifier("gcgzw5rz2xovp84b4vha3a40"),
plexgo.WithClientID("gcgzw5rz2xovp84b4vha3a40"),
plexgo.WithClientName("Plex Web"),
plexgo.WithDeviceName("Linux"),
plexgo.WithClientVersion("4.133.0"),
plexgo.WithXPlexPlatform("Chrome"),
)
ctx := context.Background()
@@ -1316,7 +1488,11 @@ actions:
func main() {
s := plexgo.New(
plexgo.WithSecurity("<YOUR_API_KEY_HERE>"),
plexgo.WithXPlexClientIdentifier("gcgzw5rz2xovp84b4vha3a40"),
plexgo.WithClientID("gcgzw5rz2xovp84b4vha3a40"),
plexgo.WithClientName("Plex Web"),
plexgo.WithDeviceName("Linux"),
plexgo.WithClientVersion("4.133.0"),
plexgo.WithXPlexPlatform("Chrome"),
)
ctx := context.Background()
@@ -1346,7 +1522,11 @@ actions:
func main() {
s := plexgo.New(
plexgo.WithSecurity("<YOUR_API_KEY_HERE>"),
plexgo.WithXPlexClientIdentifier("gcgzw5rz2xovp84b4vha3a40"),
plexgo.WithClientID("gcgzw5rz2xovp84b4vha3a40"),
plexgo.WithClientName("Plex Web"),
plexgo.WithDeviceName("Linux"),
plexgo.WithClientVersion("4.133.0"),
plexgo.WithXPlexPlatform("Chrome"),
)
ctx := context.Background()
@@ -1377,16 +1557,21 @@ actions:
import(
"github.com/LukeHagar/plexgo"
"context"
"github.com/LukeHagar/plexgo/models/operations"
"log"
)
func main() {
s := plexgo.New(
plexgo.WithXPlexClientIdentifier("gcgzw5rz2xovp84b4vha3a40"),
plexgo.WithClientID("gcgzw5rz2xovp84b4vha3a40"),
plexgo.WithClientName("Plex Web"),
plexgo.WithDeviceName("Linux"),
plexgo.WithClientVersion("4.133.0"),
plexgo.WithXPlexPlatform("Chrome"),
)
ctx := context.Background()
res, err := s.Plex.GetPin(ctx, nil, plexgo.String("gcgzw5rz2xovp84b4vha3a40"), plexgo.String("Plex Web"))
res, err := s.Plex.GetPin(ctx, operations.GetPinRequest{})
if err != nil {
log.Fatal(err)
}
@@ -1410,7 +1595,11 @@ actions:
func main() {
s := plexgo.New(
plexgo.WithXPlexClientIdentifier("gcgzw5rz2xovp84b4vha3a40"),
plexgo.WithClientID("gcgzw5rz2xovp84b4vha3a40"),
plexgo.WithClientName("Plex Web"),
plexgo.WithDeviceName("Linux"),
plexgo.WithClientVersion("4.133.0"),
plexgo.WithXPlexPlatform("Chrome"),
)
ctx := context.Background()
@@ -1439,7 +1628,11 @@ actions:
func main() {
s := plexgo.New(
plexgo.WithSecurity("<YOUR_API_KEY_HERE>"),
plexgo.WithXPlexClientIdentifier("gcgzw5rz2xovp84b4vha3a40"),
plexgo.WithClientID("gcgzw5rz2xovp84b4vha3a40"),
plexgo.WithClientName("Plex Web"),
plexgo.WithDeviceName("Linux"),
plexgo.WithClientVersion("4.133.0"),
plexgo.WithXPlexPlatform("Chrome"),
)
ctx := context.Background()
@@ -1469,7 +1662,11 @@ actions:
func main() {
s := plexgo.New(
plexgo.WithSecurity("<YOUR_API_KEY_HERE>"),
plexgo.WithXPlexClientIdentifier("gcgzw5rz2xovp84b4vha3a40"),
plexgo.WithClientID("gcgzw5rz2xovp84b4vha3a40"),
plexgo.WithClientName("Plex Web"),
plexgo.WithDeviceName("Linux"),
plexgo.WithClientVersion("4.133.0"),
plexgo.WithXPlexPlatform("Chrome"),
)
ctx := context.Background()
@@ -1504,7 +1701,11 @@ actions:
func main() {
s := plexgo.New(
plexgo.WithSecurity("<YOUR_API_KEY_HERE>"),
plexgo.WithXPlexClientIdentifier("gcgzw5rz2xovp84b4vha3a40"),
plexgo.WithClientID("gcgzw5rz2xovp84b4vha3a40"),
plexgo.WithClientName("Plex Web"),
plexgo.WithDeviceName("Linux"),
plexgo.WithClientVersion("4.133.0"),
plexgo.WithXPlexPlatform("Chrome"),
)
ctx := context.Background()
@@ -1533,7 +1734,11 @@ actions:
func main() {
s := plexgo.New(
plexgo.WithSecurity("<YOUR_API_KEY_HERE>"),
plexgo.WithXPlexClientIdentifier("gcgzw5rz2xovp84b4vha3a40"),
plexgo.WithClientID("gcgzw5rz2xovp84b4vha3a40"),
plexgo.WithClientName("Plex Web"),
plexgo.WithDeviceName("Linux"),
plexgo.WithClientVersion("4.133.0"),
plexgo.WithXPlexPlatform("Chrome"),
)
ctx := context.Background()
@@ -1562,7 +1767,11 @@ actions:
func main() {
s := plexgo.New(
plexgo.WithSecurity("<YOUR_API_KEY_HERE>"),
plexgo.WithXPlexClientIdentifier("gcgzw5rz2xovp84b4vha3a40"),
plexgo.WithClientID("gcgzw5rz2xovp84b4vha3a40"),
plexgo.WithClientName("Plex Web"),
plexgo.WithDeviceName("Linux"),
plexgo.WithClientVersion("4.133.0"),
plexgo.WithXPlexPlatform("Chrome"),
)
ctx := context.Background()
@@ -1591,7 +1800,11 @@ actions:
func main() {
s := plexgo.New(
plexgo.WithSecurity("<YOUR_API_KEY_HERE>"),
plexgo.WithXPlexClientIdentifier("gcgzw5rz2xovp84b4vha3a40"),
plexgo.WithClientID("gcgzw5rz2xovp84b4vha3a40"),
plexgo.WithClientName("Plex Web"),
plexgo.WithDeviceName("Linux"),
plexgo.WithClientVersion("4.133.0"),
plexgo.WithXPlexPlatform("Chrome"),
)
ctx := context.Background()
@@ -1620,7 +1833,11 @@ actions:
func main() {
s := plexgo.New(
plexgo.WithSecurity("<YOUR_API_KEY_HERE>"),
plexgo.WithXPlexClientIdentifier("gcgzw5rz2xovp84b4vha3a40"),
plexgo.WithClientID("gcgzw5rz2xovp84b4vha3a40"),
plexgo.WithClientName("Plex Web"),
plexgo.WithDeviceName("Linux"),
plexgo.WithClientVersion("4.133.0"),
plexgo.WithXPlexPlatform("Chrome"),
)
ctx := context.Background()
@@ -1650,7 +1867,11 @@ actions:
func main() {
s := plexgo.New(
plexgo.WithSecurity("<YOUR_API_KEY_HERE>"),
plexgo.WithXPlexClientIdentifier("gcgzw5rz2xovp84b4vha3a40"),
plexgo.WithClientID("gcgzw5rz2xovp84b4vha3a40"),
plexgo.WithClientName("Plex Web"),
plexgo.WithDeviceName("Linux"),
plexgo.WithClientVersion("4.133.0"),
plexgo.WithXPlexPlatform("Chrome"),
)
ctx := context.Background()
@@ -1679,7 +1900,11 @@ actions:
func main() {
s := plexgo.New(
plexgo.WithSecurity("<YOUR_API_KEY_HERE>"),
plexgo.WithXPlexClientIdentifier("gcgzw5rz2xovp84b4vha3a40"),
plexgo.WithClientID("gcgzw5rz2xovp84b4vha3a40"),
plexgo.WithClientName("Plex Web"),
plexgo.WithDeviceName("Linux"),
plexgo.WithClientVersion("4.133.0"),
plexgo.WithXPlexPlatform("Chrome"),
)
ctx := context.Background()
@@ -1709,7 +1934,11 @@ actions:
func main() {
s := plexgo.New(
plexgo.WithSecurity("<YOUR_API_KEY_HERE>"),
plexgo.WithXPlexClientIdentifier("gcgzw5rz2xovp84b4vha3a40"),
plexgo.WithClientID("gcgzw5rz2xovp84b4vha3a40"),
plexgo.WithClientName("Plex Web"),
plexgo.WithDeviceName("Linux"),
plexgo.WithClientVersion("4.133.0"),
plexgo.WithXPlexPlatform("Chrome"),
)
ctx := context.Background()
@@ -1738,7 +1967,11 @@ actions:
func main() {
s := plexgo.New(
plexgo.WithSecurity("<YOUR_API_KEY_HERE>"),
plexgo.WithXPlexClientIdentifier("gcgzw5rz2xovp84b4vha3a40"),
plexgo.WithClientID("gcgzw5rz2xovp84b4vha3a40"),
plexgo.WithClientName("Plex Web"),
plexgo.WithDeviceName("Linux"),
plexgo.WithClientVersion("4.133.0"),
plexgo.WithXPlexPlatform("Chrome"),
)
ctx := context.Background()
@@ -1767,7 +2000,11 @@ actions:
func main() {
s := plexgo.New(
plexgo.WithSecurity("<YOUR_API_KEY_HERE>"),
plexgo.WithXPlexClientIdentifier("gcgzw5rz2xovp84b4vha3a40"),
plexgo.WithClientID("gcgzw5rz2xovp84b4vha3a40"),
plexgo.WithClientName("Plex Web"),
plexgo.WithDeviceName("Linux"),
plexgo.WithClientVersion("4.133.0"),
plexgo.WithXPlexPlatform("Chrome"),
)
ctx := context.Background()
@@ -1797,7 +2034,11 @@ actions:
func main() {
s := plexgo.New(
plexgo.WithSecurity("<YOUR_API_KEY_HERE>"),
plexgo.WithXPlexClientIdentifier("gcgzw5rz2xovp84b4vha3a40"),
plexgo.WithClientID("gcgzw5rz2xovp84b4vha3a40"),
plexgo.WithClientName("Plex Web"),
plexgo.WithDeviceName("Linux"),
plexgo.WithClientVersion("4.133.0"),
plexgo.WithXPlexPlatform("Chrome"),
)
ctx := context.Background()
@@ -1826,7 +2067,11 @@ actions:
func main() {
s := plexgo.New(
plexgo.WithSecurity("<YOUR_API_KEY_HERE>"),
plexgo.WithXPlexClientIdentifier("gcgzw5rz2xovp84b4vha3a40"),
plexgo.WithClientID("gcgzw5rz2xovp84b4vha3a40"),
plexgo.WithClientName("Plex Web"),
plexgo.WithDeviceName("Linux"),
plexgo.WithClientVersion("4.133.0"),
plexgo.WithXPlexPlatform("Chrome"),
)
ctx := context.Background()
@@ -1855,7 +2100,11 @@ actions:
func main() {
s := plexgo.New(
plexgo.WithSecurity("<YOUR_API_KEY_HERE>"),
plexgo.WithXPlexClientIdentifier("gcgzw5rz2xovp84b4vha3a40"),
plexgo.WithClientID("gcgzw5rz2xovp84b4vha3a40"),
plexgo.WithClientName("Plex Web"),
plexgo.WithDeviceName("Linux"),
plexgo.WithClientVersion("4.133.0"),
plexgo.WithXPlexPlatform("Chrome"),
)
ctx := context.Background()
@@ -1884,7 +2133,11 @@ actions:
func main() {
s := plexgo.New(
plexgo.WithSecurity("<YOUR_API_KEY_HERE>"),
plexgo.WithXPlexClientIdentifier("gcgzw5rz2xovp84b4vha3a40"),
plexgo.WithClientID("gcgzw5rz2xovp84b4vha3a40"),
plexgo.WithClientName("Plex Web"),
plexgo.WithDeviceName("Linux"),
plexgo.WithClientVersion("4.133.0"),
plexgo.WithXPlexPlatform("Chrome"),
)
ctx := context.Background()
@@ -1913,7 +2166,11 @@ actions:
func main() {
s := plexgo.New(
plexgo.WithSecurity("<YOUR_API_KEY_HERE>"),
plexgo.WithXPlexClientIdentifier("gcgzw5rz2xovp84b4vha3a40"),
plexgo.WithClientID("gcgzw5rz2xovp84b4vha3a40"),
plexgo.WithClientName("Plex Web"),
plexgo.WithDeviceName("Linux"),
plexgo.WithClientVersion("4.133.0"),
plexgo.WithXPlexPlatform("Chrome"),
)
ctx := context.Background()
@@ -1942,7 +2199,11 @@ actions:
func main() {
s := plexgo.New(
plexgo.WithSecurity("<YOUR_API_KEY_HERE>"),
plexgo.WithXPlexClientIdentifier("gcgzw5rz2xovp84b4vha3a40"),
plexgo.WithClientID("gcgzw5rz2xovp84b4vha3a40"),
plexgo.WithClientName("Plex Web"),
plexgo.WithDeviceName("Linux"),
plexgo.WithClientVersion("4.133.0"),
plexgo.WithXPlexPlatform("Chrome"),
)
ctx := context.Background()
@@ -1972,7 +2233,11 @@ actions:
func main() {
s := plexgo.New(
plexgo.WithSecurity("<YOUR_API_KEY_HERE>"),
plexgo.WithXPlexClientIdentifier("gcgzw5rz2xovp84b4vha3a40"),
plexgo.WithClientID("gcgzw5rz2xovp84b4vha3a40"),
plexgo.WithClientName("Plex Web"),
plexgo.WithDeviceName("Linux"),
plexgo.WithClientVersion("4.133.0"),
plexgo.WithXPlexPlatform("Chrome"),
)
ctx := context.Background()
@@ -2001,7 +2266,11 @@ actions:
func main() {
s := plexgo.New(
plexgo.WithSecurity("<YOUR_API_KEY_HERE>"),
plexgo.WithXPlexClientIdentifier("gcgzw5rz2xovp84b4vha3a40"),
plexgo.WithClientID("gcgzw5rz2xovp84b4vha3a40"),
plexgo.WithClientName("Plex Web"),
plexgo.WithDeviceName("Linux"),
plexgo.WithClientVersion("4.133.0"),
plexgo.WithXPlexPlatform("Chrome"),
)
ctx := context.Background()
@@ -2030,7 +2299,11 @@ actions:
func main() {
s := plexgo.New(
plexgo.WithSecurity("<YOUR_API_KEY_HERE>"),
plexgo.WithXPlexClientIdentifier("gcgzw5rz2xovp84b4vha3a40"),
plexgo.WithClientID("gcgzw5rz2xovp84b4vha3a40"),
plexgo.WithClientName("Plex Web"),
plexgo.WithDeviceName("Linux"),
plexgo.WithClientVersion("4.133.0"),
plexgo.WithXPlexPlatform("Chrome"),
)
ctx := context.Background()
@@ -2060,7 +2333,11 @@ actions:
func main() {
s := plexgo.New(
plexgo.WithSecurity("<YOUR_API_KEY_HERE>"),
plexgo.WithXPlexClientIdentifier("gcgzw5rz2xovp84b4vha3a40"),
plexgo.WithClientID("gcgzw5rz2xovp84b4vha3a40"),
plexgo.WithClientName("Plex Web"),
plexgo.WithDeviceName("Linux"),
plexgo.WithClientVersion("4.133.0"),
plexgo.WithXPlexPlatform("Chrome"),
)
ctx := context.Background()
@@ -2090,7 +2367,11 @@ actions:
func main() {
s := plexgo.New(
plexgo.WithSecurity("<YOUR_API_KEY_HERE>"),
plexgo.WithXPlexClientIdentifier("gcgzw5rz2xovp84b4vha3a40"),
plexgo.WithClientID("gcgzw5rz2xovp84b4vha3a40"),
plexgo.WithClientName("Plex Web"),
plexgo.WithDeviceName("Linux"),
plexgo.WithClientVersion("4.133.0"),
plexgo.WithXPlexPlatform("Chrome"),
)
ctx := context.Background()
@@ -2119,7 +2400,11 @@ actions:
func main() {
s := plexgo.New(
plexgo.WithSecurity("<YOUR_API_KEY_HERE>"),
plexgo.WithXPlexClientIdentifier("gcgzw5rz2xovp84b4vha3a40"),
plexgo.WithClientID("gcgzw5rz2xovp84b4vha3a40"),
plexgo.WithClientName("Plex Web"),
plexgo.WithDeviceName("Linux"),
plexgo.WithClientVersion("4.133.0"),
plexgo.WithXPlexPlatform("Chrome"),
)
ctx := context.Background()
@@ -2148,7 +2433,11 @@ actions:
func main() {
s := plexgo.New(
plexgo.WithSecurity("<YOUR_API_KEY_HERE>"),
plexgo.WithXPlexClientIdentifier("gcgzw5rz2xovp84b4vha3a40"),
plexgo.WithClientID("gcgzw5rz2xovp84b4vha3a40"),
plexgo.WithClientName("Plex Web"),
plexgo.WithDeviceName("Linux"),
plexgo.WithClientVersion("4.133.0"),
plexgo.WithXPlexPlatform("Chrome"),
)
ctx := context.Background()
@@ -2177,7 +2466,11 @@ actions:
func main() {
s := plexgo.New(
plexgo.WithXPlexClientIdentifier("gcgzw5rz2xovp84b4vha3a40"),
plexgo.WithClientID("gcgzw5rz2xovp84b4vha3a40"),
plexgo.WithClientName("Plex Web"),
plexgo.WithDeviceName("Linux"),
plexgo.WithClientVersion("4.133.0"),
plexgo.WithXPlexPlatform("Chrome"),
)
ctx := context.Background()
@@ -2211,7 +2504,11 @@ actions:
func main() {
s := plexgo.New(
plexgo.WithSecurity("<YOUR_API_KEY_HERE>"),
plexgo.WithXPlexClientIdentifier("gcgzw5rz2xovp84b4vha3a40"),
plexgo.WithClientID("gcgzw5rz2xovp84b4vha3a40"),
plexgo.WithClientName("Plex Web"),
plexgo.WithDeviceName("Linux"),
plexgo.WithClientVersion("4.133.0"),
plexgo.WithXPlexPlatform("Chrome"),
)
ctx := context.Background()

View File

@@ -5,4 +5,8 @@
| Field | Type | Required | Description | Example |
| --------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `XPlexClientIdentifier` | **string* | :heavy_minus_sign: | The unique identifier for the client application<br/>This is used to track the client application and its usage<br/>(UUID, serial number, or other number unique per device)<br/> | gcgzw5rz2xovp84b4vha3a40 |
| `ClientID` | **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 |
| `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 |

View File

@@ -6,5 +6,8 @@
| Field | Type | Required | Description | Example |
| --------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `Strong` | **bool* | :heavy_minus_sign: | Determines the kind of code returned by the API call<br/>Strong codes are used for Pin authentication flows<br/>Non-Strong codes are used for `Plex.tv/link`<br/> | |
| `XPlexClientIdentifier` | **string* | :heavy_minus_sign: | The unique identifier for the client application<br/>This is used to track the client application and its usage<br/>(UUID, serial number, or other number unique per device)<br/> | gcgzw5rz2xovp84b4vha3a40 |
| `XPlexProduct` | **string* | :heavy_minus_sign: | N/A | Plex Web |
| `ClientID` | **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 |
| `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 |

View File

@@ -5,4 +5,4 @@
| Field | Type | Required | Description | Example |
| --------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `XPlexClientIdentifier` | **string* | :heavy_minus_sign: | The unique identifier for the client application<br/>This is used to track the client application and its usage<br/>(UUID, serial number, or other number unique per device)<br/> | gcgzw5rz2xovp84b4vha3a40 |
| `ClientID` | **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 |

View File

@@ -5,7 +5,7 @@
| Field | Type | Required | Description | Example |
| --------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `XPlexClientIdentifier` | **string* | :heavy_minus_sign: | The unique identifier for the client application<br/>This is used to track the client application and its usage<br/>(UUID, serial number, or other number unique per device)<br/> | gcgzw5rz2xovp84b4vha3a40 |
| `ClientID` | **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` | [*operations.IncludeHTTPS](../../models/operations/includehttps.md) | :heavy_minus_sign: | Include Https entries in the results | 1 |
| `IncludeRelay` | [*operations.IncludeRelay](../../models/operations/includerelay.md) | :heavy_minus_sign: | Include Relay addresses in the results <br/>E.g: https://10-0-0-25.bbf8e10c7fa20447cacee74cd9914cde.plex.direct:32400<br/> | 1 |
| `IncludeIPv6` | [*operations.IncludeIPv6](../../models/operations/includeipv6.md) | :heavy_minus_sign: | Include IPv6 entries in the results | 1 |

View File

@@ -5,4 +5,4 @@
| Field | Type | Required | Description | Example |
| --------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `XPlexClientIdentifier` | **string* | :heavy_minus_sign: | The unique identifier for the client application<br/>This is used to track the client application and its usage<br/>(UUID, serial number, or other number unique per device)<br/> | gcgzw5rz2xovp84b4vha3a40 |
| `ClientID` | **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 |

View File

@@ -5,5 +5,5 @@
| Field | Type | Required | Description | Example |
| --------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `XPlexClientIdentifier` | **string* | :heavy_minus_sign: | The unique identifier for the client application<br/>This is used to track the client application and its usage<br/>(UUID, serial number, or other number unique per device)<br/> | gcgzw5rz2xovp84b4vha3a40 |
| `ClientID` | **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` | *int64* | :heavy_check_mark: | The PinID to retrieve an access token for | |

View File

@@ -5,4 +5,4 @@
| Field | Type | Required | Description | Example |
| --------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `XPlexClientIdentifier` | **string* | :heavy_minus_sign: | The unique identifier for the client application<br/>This is used to track the client application and its usage<br/>(UUID, serial number, or other number unique per device)<br/> | gcgzw5rz2xovp84b4vha3a40 |
| `ClientID` | **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 |

View File

@@ -5,5 +5,5 @@
| Field | Type | Required | Description | Example |
| --------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `XPlexClientIdentifier` | **string* | :heavy_minus_sign: | The unique identifier for the client application<br/>This is used to track the client application and its usage<br/>(UUID, serial number, or other number unique per device)<br/> | gcgzw5rz2xovp84b4vha3a40 |
| `ClientID` | **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` | [*operations.PostUsersSignInDataRequestBody](../../models/operations/postuserssignindatarequestbody.md) | :heavy_minus_sign: | Login credentials | |

View File

@@ -35,7 +35,11 @@ import(
func main() {
s := plexgo.New(
plexgo.WithSecurity("<YOUR_API_KEY_HERE>"),
plexgo.WithXPlexClientIdentifier("gcgzw5rz2xovp84b4vha3a40"),
plexgo.WithClientID("gcgzw5rz2xovp84b4vha3a40"),
plexgo.WithClientName("Plex Web"),
plexgo.WithDeviceName("Linux"),
plexgo.WithClientVersion("4.133.0"),
plexgo.WithXPlexPlatform("Chrome"),
)
ctx := context.Background()
@@ -87,7 +91,11 @@ import(
func main() {
s := plexgo.New(
plexgo.WithSecurity("<YOUR_API_KEY_HERE>"),
plexgo.WithXPlexClientIdentifier("gcgzw5rz2xovp84b4vha3a40"),
plexgo.WithClientID("gcgzw5rz2xovp84b4vha3a40"),
plexgo.WithClientName("Plex Web"),
plexgo.WithDeviceName("Linux"),
plexgo.WithClientVersion("4.133.0"),
plexgo.WithXPlexPlatform("Chrome"),
)
ctx := context.Background()

View File

@@ -33,7 +33,11 @@ import(
func main() {
s := plexgo.New(
plexgo.WithSecurity("<YOUR_API_KEY_HERE>"),
plexgo.WithXPlexClientIdentifier("gcgzw5rz2xovp84b4vha3a40"),
plexgo.WithClientID("gcgzw5rz2xovp84b4vha3a40"),
plexgo.WithClientName("Plex Web"),
plexgo.WithDeviceName("Linux"),
plexgo.WithClientVersion("4.133.0"),
plexgo.WithXPlexPlatform("Chrome"),
)
ctx := context.Background()
@@ -89,7 +93,11 @@ import(
func main() {
s := plexgo.New(
plexgo.WithSecurity("<YOUR_API_KEY_HERE>"),
plexgo.WithXPlexClientIdentifier("gcgzw5rz2xovp84b4vha3a40"),
plexgo.WithClientID("gcgzw5rz2xovp84b4vha3a40"),
plexgo.WithClientName("Plex Web"),
plexgo.WithDeviceName("Linux"),
plexgo.WithClientVersion("4.133.0"),
plexgo.WithXPlexPlatform("Chrome"),
)
ctx := context.Background()
@@ -142,7 +150,11 @@ import(
func main() {
s := plexgo.New(
plexgo.WithSecurity("<YOUR_API_KEY_HERE>"),
plexgo.WithXPlexClientIdentifier("gcgzw5rz2xovp84b4vha3a40"),
plexgo.WithClientID("gcgzw5rz2xovp84b4vha3a40"),
plexgo.WithClientName("Plex Web"),
plexgo.WithDeviceName("Linux"),
plexgo.WithClientVersion("4.133.0"),
plexgo.WithXPlexPlatform("Chrome"),
)
ctx := context.Background()
@@ -194,7 +206,11 @@ import(
func main() {
s := plexgo.New(
plexgo.WithXPlexClientIdentifier("gcgzw5rz2xovp84b4vha3a40"),
plexgo.WithClientID("gcgzw5rz2xovp84b4vha3a40"),
plexgo.WithClientName("Plex Web"),
plexgo.WithDeviceName("Linux"),
plexgo.WithClientVersion("4.133.0"),
plexgo.WithXPlexPlatform("Chrome"),
)
ctx := context.Background()
@@ -217,7 +233,7 @@ func main() {
| Parameter | Type | Required | Description | Example |
| --------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `ctx` | [context.Context](https://pkg.go.dev/context#Context) | :heavy_check_mark: | The context to use for the request. | |
| `xPlexClientIdentifier` | **string* | :heavy_minus_sign: | The unique identifier for the client application<br/>This is used to track the client application and its usage<br/>(UUID, serial number, or other number unique per device)<br/> | gcgzw5rz2xovp84b4vha3a40 |
| `clientID` | **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` | [*operations.PostUsersSignInDataRequestBody](../../models/operations/postuserssignindatarequestbody.md) | :heavy_minus_sign: | Login credentials | |
| `opts` | [][operations.Option](../../models/operations/option.md) | :heavy_minus_sign: | The options for this request. | |

View File

@@ -32,7 +32,11 @@ import(
func main() {
s := plexgo.New(
plexgo.WithSecurity("<YOUR_API_KEY_HERE>"),
plexgo.WithXPlexClientIdentifier("gcgzw5rz2xovp84b4vha3a40"),
plexgo.WithClientID("gcgzw5rz2xovp84b4vha3a40"),
plexgo.WithClientName("Plex Web"),
plexgo.WithDeviceName("Linux"),
plexgo.WithClientVersion("4.133.0"),
plexgo.WithXPlexPlatform("Chrome"),
)
ctx := context.Background()
@@ -89,7 +93,11 @@ import(
func main() {
s := plexgo.New(
plexgo.WithSecurity("<YOUR_API_KEY_HERE>"),
plexgo.WithXPlexClientIdentifier("gcgzw5rz2xovp84b4vha3a40"),
plexgo.WithClientID("gcgzw5rz2xovp84b4vha3a40"),
plexgo.WithClientName("Plex Web"),
plexgo.WithDeviceName("Linux"),
plexgo.WithClientVersion("4.133.0"),
plexgo.WithXPlexPlatform("Chrome"),
)
ctx := context.Background()
@@ -142,7 +150,11 @@ import(
func main() {
s := plexgo.New(
plexgo.WithSecurity("<YOUR_API_KEY_HERE>"),
plexgo.WithXPlexClientIdentifier("gcgzw5rz2xovp84b4vha3a40"),
plexgo.WithClientID("gcgzw5rz2xovp84b4vha3a40"),
plexgo.WithClientName("Plex Web"),
plexgo.WithDeviceName("Linux"),
plexgo.WithClientVersion("4.133.0"),
plexgo.WithXPlexPlatform("Chrome"),
)
ctx := context.Background()
@@ -200,7 +212,11 @@ import(
func main() {
s := plexgo.New(
plexgo.WithSecurity("<YOUR_API_KEY_HERE>"),
plexgo.WithXPlexClientIdentifier("gcgzw5rz2xovp84b4vha3a40"),
plexgo.WithClientID("gcgzw5rz2xovp84b4vha3a40"),
plexgo.WithClientName("Plex Web"),
plexgo.WithDeviceName("Linux"),
plexgo.WithClientVersion("4.133.0"),
plexgo.WithXPlexPlatform("Chrome"),
)
ctx := context.Background()
@@ -255,7 +271,11 @@ import(
func main() {
s := plexgo.New(
plexgo.WithSecurity("<YOUR_API_KEY_HERE>"),
plexgo.WithXPlexClientIdentifier("gcgzw5rz2xovp84b4vha3a40"),
plexgo.WithClientID("gcgzw5rz2xovp84b4vha3a40"),
plexgo.WithClientName("Plex Web"),
plexgo.WithDeviceName("Linux"),
plexgo.WithClientVersion("4.133.0"),
plexgo.WithXPlexPlatform("Chrome"),
)
ctx := context.Background()

View File

@@ -29,7 +29,11 @@ import(
func main() {
s := plexgo.New(
plexgo.WithSecurity("<YOUR_API_KEY_HERE>"),
plexgo.WithXPlexClientIdentifier("gcgzw5rz2xovp84b4vha3a40"),
plexgo.WithClientID("gcgzw5rz2xovp84b4vha3a40"),
plexgo.WithClientName("Plex Web"),
plexgo.WithDeviceName("Linux"),
plexgo.WithClientVersion("4.133.0"),
plexgo.WithXPlexPlatform("Chrome"),
)
ctx := context.Background()
@@ -84,7 +88,11 @@ import(
func main() {
s := plexgo.New(
plexgo.WithSecurity("<YOUR_API_KEY_HERE>"),
plexgo.WithXPlexClientIdentifier("gcgzw5rz2xovp84b4vha3a40"),
plexgo.WithClientID("gcgzw5rz2xovp84b4vha3a40"),
plexgo.WithClientName("Plex Web"),
plexgo.WithDeviceName("Linux"),
plexgo.WithClientVersion("4.133.0"),
plexgo.WithXPlexPlatform("Chrome"),
)
ctx := context.Background()

View File

@@ -39,7 +39,11 @@ import(
func main() {
s := plexgo.New(
plexgo.WithSecurity("<YOUR_API_KEY_HERE>"),
plexgo.WithXPlexClientIdentifier("gcgzw5rz2xovp84b4vha3a40"),
plexgo.WithClientID("gcgzw5rz2xovp84b4vha3a40"),
plexgo.WithClientName("Plex Web"),
plexgo.WithDeviceName("Linux"),
plexgo.WithClientVersion("4.133.0"),
plexgo.WithXPlexPlatform("Chrome"),
)
ctx := context.Background()
@@ -94,7 +98,11 @@ import(
func main() {
s := plexgo.New(
plexgo.WithSecurity("<YOUR_API_KEY_HERE>"),
plexgo.WithXPlexClientIdentifier("gcgzw5rz2xovp84b4vha3a40"),
plexgo.WithClientID("gcgzw5rz2xovp84b4vha3a40"),
plexgo.WithClientName("Plex Web"),
plexgo.WithDeviceName("Linux"),
plexgo.WithClientVersion("4.133.0"),
plexgo.WithXPlexPlatform("Chrome"),
)
ctx := context.Background()
@@ -154,7 +162,11 @@ import(
func main() {
s := plexgo.New(
plexgo.WithSecurity("<YOUR_API_KEY_HERE>"),
plexgo.WithXPlexClientIdentifier("gcgzw5rz2xovp84b4vha3a40"),
plexgo.WithClientID("gcgzw5rz2xovp84b4vha3a40"),
plexgo.WithClientName("Plex Web"),
plexgo.WithDeviceName("Linux"),
plexgo.WithClientVersion("4.133.0"),
plexgo.WithXPlexPlatform("Chrome"),
)
ctx := context.Background()
@@ -245,7 +257,11 @@ import(
func main() {
s := plexgo.New(
plexgo.WithSecurity("<YOUR_API_KEY_HERE>"),
plexgo.WithXPlexClientIdentifier("gcgzw5rz2xovp84b4vha3a40"),
plexgo.WithClientID("gcgzw5rz2xovp84b4vha3a40"),
plexgo.WithClientName("Plex Web"),
plexgo.WithDeviceName("Linux"),
plexgo.WithClientVersion("4.133.0"),
plexgo.WithXPlexPlatform("Chrome"),
)
ctx := context.Background()
@@ -299,7 +315,11 @@ import(
func main() {
s := plexgo.New(
plexgo.WithSecurity("<YOUR_API_KEY_HERE>"),
plexgo.WithXPlexClientIdentifier("gcgzw5rz2xovp84b4vha3a40"),
plexgo.WithClientID("gcgzw5rz2xovp84b4vha3a40"),
plexgo.WithClientName("Plex Web"),
plexgo.WithDeviceName("Linux"),
plexgo.WithClientVersion("4.133.0"),
plexgo.WithXPlexPlatform("Chrome"),
)
ctx := context.Background()
@@ -373,7 +393,11 @@ import(
func main() {
s := plexgo.New(
plexgo.WithSecurity("<YOUR_API_KEY_HERE>"),
plexgo.WithXPlexClientIdentifier("gcgzw5rz2xovp84b4vha3a40"),
plexgo.WithClientID("gcgzw5rz2xovp84b4vha3a40"),
plexgo.WithClientName("Plex Web"),
plexgo.WithDeviceName("Linux"),
plexgo.WithClientVersion("4.133.0"),
plexgo.WithXPlexPlatform("Chrome"),
)
ctx := context.Background()
@@ -436,7 +460,11 @@ import(
func main() {
s := plexgo.New(
plexgo.WithSecurity("<YOUR_API_KEY_HERE>"),
plexgo.WithXPlexClientIdentifier("gcgzw5rz2xovp84b4vha3a40"),
plexgo.WithClientID("gcgzw5rz2xovp84b4vha3a40"),
plexgo.WithClientName("Plex Web"),
plexgo.WithDeviceName("Linux"),
plexgo.WithClientVersion("4.133.0"),
plexgo.WithXPlexPlatform("Chrome"),
)
ctx := context.Background()
@@ -509,7 +537,11 @@ import(
func main() {
s := plexgo.New(
plexgo.WithSecurity("<YOUR_API_KEY_HERE>"),
plexgo.WithXPlexClientIdentifier("gcgzw5rz2xovp84b4vha3a40"),
plexgo.WithClientID("gcgzw5rz2xovp84b4vha3a40"),
plexgo.WithClientName("Plex Web"),
plexgo.WithDeviceName("Linux"),
plexgo.WithClientVersion("4.133.0"),
plexgo.WithXPlexPlatform("Chrome"),
)
ctx := context.Background()
@@ -564,7 +596,11 @@ import(
func main() {
s := plexgo.New(
plexgo.WithSecurity("<YOUR_API_KEY_HERE>"),
plexgo.WithXPlexClientIdentifier("gcgzw5rz2xovp84b4vha3a40"),
plexgo.WithClientID("gcgzw5rz2xovp84b4vha3a40"),
plexgo.WithClientName("Plex Web"),
plexgo.WithDeviceName("Linux"),
plexgo.WithClientVersion("4.133.0"),
plexgo.WithXPlexPlatform("Chrome"),
)
ctx := context.Background()
@@ -618,7 +654,11 @@ import(
func main() {
s := plexgo.New(
plexgo.WithSecurity("<YOUR_API_KEY_HERE>"),
plexgo.WithXPlexClientIdentifier("gcgzw5rz2xovp84b4vha3a40"),
plexgo.WithClientID("gcgzw5rz2xovp84b4vha3a40"),
plexgo.WithClientName("Plex Web"),
plexgo.WithDeviceName("Linux"),
plexgo.WithClientVersion("4.133.0"),
plexgo.WithXPlexPlatform("Chrome"),
)
ctx := context.Background()
@@ -674,7 +714,11 @@ import(
func main() {
s := plexgo.New(
plexgo.WithSecurity("<YOUR_API_KEY_HERE>"),
plexgo.WithXPlexClientIdentifier("gcgzw5rz2xovp84b4vha3a40"),
plexgo.WithClientID("gcgzw5rz2xovp84b4vha3a40"),
plexgo.WithClientName("Plex Web"),
plexgo.WithDeviceName("Linux"),
plexgo.WithClientVersion("4.133.0"),
plexgo.WithXPlexPlatform("Chrome"),
)
ctx := context.Background()
@@ -729,7 +773,11 @@ import(
func main() {
s := plexgo.New(
plexgo.WithSecurity("<YOUR_API_KEY_HERE>"),
plexgo.WithXPlexClientIdentifier("gcgzw5rz2xovp84b4vha3a40"),
plexgo.WithClientID("gcgzw5rz2xovp84b4vha3a40"),
plexgo.WithClientName("Plex Web"),
plexgo.WithDeviceName("Linux"),
plexgo.WithClientVersion("4.133.0"),
plexgo.WithXPlexPlatform("Chrome"),
)
ctx := context.Background()

View File

@@ -32,7 +32,11 @@ import(
func main() {
s := plexgo.New(
plexgo.WithSecurity("<YOUR_API_KEY_HERE>"),
plexgo.WithXPlexClientIdentifier("gcgzw5rz2xovp84b4vha3a40"),
plexgo.WithClientID("gcgzw5rz2xovp84b4vha3a40"),
plexgo.WithClientName("Plex Web"),
plexgo.WithDeviceName("Linux"),
plexgo.WithClientVersion("4.133.0"),
plexgo.WithXPlexPlatform("Chrome"),
)
ctx := context.Background()
@@ -108,7 +112,11 @@ import(
func main() {
s := plexgo.New(
plexgo.WithSecurity("<YOUR_API_KEY_HERE>"),
plexgo.WithXPlexClientIdentifier("gcgzw5rz2xovp84b4vha3a40"),
plexgo.WithClientID("gcgzw5rz2xovp84b4vha3a40"),
plexgo.WithClientName("Plex Web"),
plexgo.WithDeviceName("Linux"),
plexgo.WithClientVersion("4.133.0"),
plexgo.WithXPlexPlatform("Chrome"),
)
ctx := context.Background()
@@ -164,7 +172,11 @@ import(
func main() {
s := plexgo.New(
plexgo.WithSecurity("<YOUR_API_KEY_HERE>"),
plexgo.WithXPlexClientIdentifier("gcgzw5rz2xovp84b4vha3a40"),
plexgo.WithClientID("gcgzw5rz2xovp84b4vha3a40"),
plexgo.WithClientName("Plex Web"),
plexgo.WithDeviceName("Linux"),
plexgo.WithClientVersion("4.133.0"),
plexgo.WithXPlexPlatform("Chrome"),
)
ctx := context.Background()

View File

@@ -32,7 +32,11 @@ import(
func main() {
s := plexgo.New(
plexgo.WithSecurity("<YOUR_API_KEY_HERE>"),
plexgo.WithXPlexClientIdentifier("gcgzw5rz2xovp84b4vha3a40"),
plexgo.WithClientID("gcgzw5rz2xovp84b4vha3a40"),
plexgo.WithClientName("Plex Web"),
plexgo.WithDeviceName("Linux"),
plexgo.WithClientVersion("4.133.0"),
plexgo.WithXPlexPlatform("Chrome"),
)
ctx := context.Background()
@@ -85,7 +89,11 @@ import(
func main() {
s := plexgo.New(
plexgo.WithSecurity("<YOUR_API_KEY_HERE>"),
plexgo.WithXPlexClientIdentifier("gcgzw5rz2xovp84b4vha3a40"),
plexgo.WithClientID("gcgzw5rz2xovp84b4vha3a40"),
plexgo.WithClientName("Plex Web"),
plexgo.WithDeviceName("Linux"),
plexgo.WithClientVersion("4.133.0"),
plexgo.WithXPlexPlatform("Chrome"),
)
ctx := context.Background()
@@ -139,7 +147,11 @@ import(
func main() {
s := plexgo.New(
plexgo.WithSecurity("<YOUR_API_KEY_HERE>"),
plexgo.WithXPlexClientIdentifier("gcgzw5rz2xovp84b4vha3a40"),
plexgo.WithClientID("gcgzw5rz2xovp84b4vha3a40"),
plexgo.WithClientName("Plex Web"),
plexgo.WithDeviceName("Linux"),
plexgo.WithClientVersion("4.133.0"),
plexgo.WithXPlexPlatform("Chrome"),
)
ctx := context.Background()
@@ -195,7 +207,11 @@ import(
func main() {
s := plexgo.New(
plexgo.WithSecurity("<YOUR_API_KEY_HERE>"),
plexgo.WithXPlexClientIdentifier("gcgzw5rz2xovp84b4vha3a40"),
plexgo.WithClientID("gcgzw5rz2xovp84b4vha3a40"),
plexgo.WithClientName("Plex Web"),
plexgo.WithDeviceName("Linux"),
plexgo.WithClientVersion("4.133.0"),
plexgo.WithXPlexPlatform("Chrome"),
)
ctx := context.Background()
@@ -256,7 +272,11 @@ import(
func main() {
s := plexgo.New(
plexgo.WithSecurity("<YOUR_API_KEY_HERE>"),
plexgo.WithXPlexClientIdentifier("gcgzw5rz2xovp84b4vha3a40"),
plexgo.WithClientID("gcgzw5rz2xovp84b4vha3a40"),
plexgo.WithClientName("Plex Web"),
plexgo.WithDeviceName("Linux"),
plexgo.WithClientVersion("4.133.0"),
plexgo.WithXPlexPlatform("Chrome"),
)
ctx := context.Background()

View File

@@ -43,7 +43,11 @@ import(
func main() {
s := plexgo.New(
plexgo.WithSecurity("<YOUR_API_KEY_HERE>"),
plexgo.WithXPlexClientIdentifier("gcgzw5rz2xovp84b4vha3a40"),
plexgo.WithClientID("gcgzw5rz2xovp84b4vha3a40"),
plexgo.WithClientName("Plex Web"),
plexgo.WithDeviceName("Linux"),
plexgo.WithClientVersion("4.133.0"),
plexgo.WithXPlexPlatform("Chrome"),
)
ctx := context.Background()
@@ -101,7 +105,11 @@ import(
func main() {
s := plexgo.New(
plexgo.WithSecurity("<YOUR_API_KEY_HERE>"),
plexgo.WithXPlexClientIdentifier("gcgzw5rz2xovp84b4vha3a40"),
plexgo.WithClientID("gcgzw5rz2xovp84b4vha3a40"),
plexgo.WithClientName("Plex Web"),
plexgo.WithDeviceName("Linux"),
plexgo.WithClientVersion("4.133.0"),
plexgo.WithXPlexPlatform("Chrome"),
)
ctx := context.Background()
@@ -157,7 +165,11 @@ import(
func main() {
s := plexgo.New(
plexgo.WithSecurity("<YOUR_API_KEY_HERE>"),
plexgo.WithXPlexClientIdentifier("gcgzw5rz2xovp84b4vha3a40"),
plexgo.WithClientID("gcgzw5rz2xovp84b4vha3a40"),
plexgo.WithClientName("Plex Web"),
plexgo.WithDeviceName("Linux"),
plexgo.WithClientVersion("4.133.0"),
plexgo.WithXPlexPlatform("Chrome"),
)
ctx := context.Background()
@@ -211,7 +223,11 @@ import(
func main() {
s := plexgo.New(
plexgo.WithSecurity("<YOUR_API_KEY_HERE>"),
plexgo.WithXPlexClientIdentifier("gcgzw5rz2xovp84b4vha3a40"),
plexgo.WithClientID("gcgzw5rz2xovp84b4vha3a40"),
plexgo.WithClientName("Plex Web"),
plexgo.WithDeviceName("Linux"),
plexgo.WithClientVersion("4.133.0"),
plexgo.WithXPlexPlatform("Chrome"),
)
ctx := context.Background()
@@ -265,7 +281,11 @@ import(
func main() {
s := plexgo.New(
plexgo.WithSecurity("<YOUR_API_KEY_HERE>"),
plexgo.WithXPlexClientIdentifier("gcgzw5rz2xovp84b4vha3a40"),
plexgo.WithClientID("gcgzw5rz2xovp84b4vha3a40"),
plexgo.WithClientName("Plex Web"),
plexgo.WithDeviceName("Linux"),
plexgo.WithClientVersion("4.133.0"),
plexgo.WithXPlexPlatform("Chrome"),
)
ctx := context.Background()
@@ -325,7 +345,11 @@ import(
func main() {
s := plexgo.New(
plexgo.WithSecurity("<YOUR_API_KEY_HERE>"),
plexgo.WithXPlexClientIdentifier("gcgzw5rz2xovp84b4vha3a40"),
plexgo.WithClientID("gcgzw5rz2xovp84b4vha3a40"),
plexgo.WithClientName("Plex Web"),
plexgo.WithDeviceName("Linux"),
plexgo.WithClientVersion("4.133.0"),
plexgo.WithXPlexPlatform("Chrome"),
)
ctx := context.Background()
@@ -380,7 +404,11 @@ import(
func main() {
s := plexgo.New(
plexgo.WithSecurity("<YOUR_API_KEY_HERE>"),
plexgo.WithXPlexClientIdentifier("gcgzw5rz2xovp84b4vha3a40"),
plexgo.WithClientID("gcgzw5rz2xovp84b4vha3a40"),
plexgo.WithClientName("Plex Web"),
plexgo.WithDeviceName("Linux"),
plexgo.WithClientVersion("4.133.0"),
plexgo.WithXPlexPlatform("Chrome"),
)
ctx := context.Background()
@@ -435,7 +463,11 @@ import(
func main() {
s := plexgo.New(
plexgo.WithSecurity("<YOUR_API_KEY_HERE>"),
plexgo.WithXPlexClientIdentifier("gcgzw5rz2xovp84b4vha3a40"),
plexgo.WithClientID("gcgzw5rz2xovp84b4vha3a40"),
plexgo.WithClientName("Plex Web"),
plexgo.WithDeviceName("Linux"),
plexgo.WithClientVersion("4.133.0"),
plexgo.WithXPlexPlatform("Chrome"),
)
ctx := context.Background()
@@ -492,7 +524,11 @@ import(
func main() {
s := plexgo.New(
plexgo.WithSecurity("<YOUR_API_KEY_HERE>"),
plexgo.WithXPlexClientIdentifier("gcgzw5rz2xovp84b4vha3a40"),
plexgo.WithClientID("gcgzw5rz2xovp84b4vha3a40"),
plexgo.WithClientName("Plex Web"),
plexgo.WithDeviceName("Linux"),
plexgo.WithClientVersion("4.133.0"),
plexgo.WithXPlexPlatform("Chrome"),
)
ctx := context.Background()

View File

@@ -34,7 +34,11 @@ import(
func main() {
s := plexgo.New(
plexgo.WithSecurity("<YOUR_API_KEY_HERE>"),
plexgo.WithXPlexClientIdentifier("gcgzw5rz2xovp84b4vha3a40"),
plexgo.WithClientID("gcgzw5rz2xovp84b4vha3a40"),
plexgo.WithClientName("Plex Web"),
plexgo.WithDeviceName("Linux"),
plexgo.WithClientVersion("4.133.0"),
plexgo.WithXPlexPlatform("Chrome"),
)
ctx := context.Background()
@@ -86,7 +90,11 @@ import(
func main() {
s := plexgo.New(
plexgo.WithSecurity("<YOUR_API_KEY_HERE>"),
plexgo.WithXPlexClientIdentifier("gcgzw5rz2xovp84b4vha3a40"),
plexgo.WithClientID("gcgzw5rz2xovp84b4vha3a40"),
plexgo.WithClientName("Plex Web"),
plexgo.WithDeviceName("Linux"),
plexgo.WithClientVersion("4.133.0"),
plexgo.WithXPlexPlatform("Chrome"),
)
ctx := context.Background()
@@ -137,7 +145,11 @@ import(
func main() {
s := plexgo.New(
plexgo.WithXPlexClientIdentifier("gcgzw5rz2xovp84b4vha3a40"),
plexgo.WithClientID("gcgzw5rz2xovp84b4vha3a40"),
plexgo.WithClientName("Plex Web"),
plexgo.WithDeviceName("Linux"),
plexgo.WithClientVersion("4.133.0"),
plexgo.WithXPlexPlatform("Chrome"),
)
ctx := context.Background()
@@ -189,7 +201,11 @@ import(
func main() {
s := plexgo.New(
plexgo.WithSecurity("<YOUR_API_KEY_HERE>"),
plexgo.WithXPlexClientIdentifier("gcgzw5rz2xovp84b4vha3a40"),
plexgo.WithClientID("gcgzw5rz2xovp84b4vha3a40"),
plexgo.WithClientName("Plex Web"),
plexgo.WithDeviceName("Linux"),
plexgo.WithClientVersion("4.133.0"),
plexgo.WithXPlexPlatform("Chrome"),
)
ctx := context.Background()
@@ -242,7 +258,11 @@ import(
func main() {
s := plexgo.New(
plexgo.WithSecurity("<YOUR_API_KEY_HERE>"),
plexgo.WithXPlexClientIdentifier("gcgzw5rz2xovp84b4vha3a40"),
plexgo.WithClientID("gcgzw5rz2xovp84b4vha3a40"),
plexgo.WithClientName("Plex Web"),
plexgo.WithDeviceName("Linux"),
plexgo.WithClientVersion("4.133.0"),
plexgo.WithXPlexPlatform("Chrome"),
)
ctx := context.Background()
@@ -261,7 +281,7 @@ func main() {
| Parameter | Type | Required | Description | Example |
| --------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `ctx` | [context.Context](https://pkg.go.dev/context#Context) | :heavy_check_mark: | The context to use for the request. | |
| `xPlexClientIdentifier` | **string* | :heavy_minus_sign: | The unique identifier for the client application<br/>This is used to track the client application and its usage<br/>(UUID, serial number, or other number unique per device)<br/> | gcgzw5rz2xovp84b4vha3a40 |
| `clientID` | **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` | [*operations.IncludeHTTPS](../../models/operations/includehttps.md) | :heavy_minus_sign: | Include Https entries in the results | 1 |
| `includeRelay` | [*operations.IncludeRelay](../../models/operations/includerelay.md) | :heavy_minus_sign: | Include Relay addresses in the results <br/>E.g: https://10-0-0-25.bbf8e10c7fa20447cacee74cd9914cde.plex.direct:32400<br/> | 1 |
| `includeIPv6` | [*operations.IncludeIPv6](../../models/operations/includeipv6.md) | :heavy_minus_sign: | Include IPv6 entries in the results | 1 |
@@ -282,7 +302,7 @@ func main() {
## GetPin
Retrieve a Pin from Plex.tv for authentication flows
Retrieve a Pin ID from Plex.tv to use for authentication flows
### Example Usage
@@ -292,16 +312,21 @@ package main
import(
"github.com/LukeHagar/plexgo"
"context"
"github.com/LukeHagar/plexgo/models/operations"
"log"
)
func main() {
s := plexgo.New(
plexgo.WithXPlexClientIdentifier("gcgzw5rz2xovp84b4vha3a40"),
plexgo.WithClientID("gcgzw5rz2xovp84b4vha3a40"),
plexgo.WithClientName("Plex Web"),
plexgo.WithDeviceName("Linux"),
plexgo.WithClientVersion("4.133.0"),
plexgo.WithXPlexPlatform("Chrome"),
)
ctx := context.Background()
res, err := s.Plex.GetPin(ctx, nil, plexgo.String("gcgzw5rz2xovp84b4vha3a40"), plexgo.String("Plex Web"))
res, err := s.Plex.GetPin(ctx, operations.GetPinRequest{})
if err != nil {
log.Fatal(err)
}
@@ -313,13 +338,11 @@ func main() {
### Parameters
| Parameter | Type | Required | Description | Example |
| --------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `ctx` | [context.Context](https://pkg.go.dev/context#Context) | :heavy_check_mark: | The context to use for the request. | |
| `strong` | **bool* | :heavy_minus_sign: | Determines the kind of code returned by the API call<br/>Strong codes are used for Pin authentication flows<br/>Non-Strong codes are used for `Plex.tv/link`<br/> | |
| `xPlexClientIdentifier` | **string* | :heavy_minus_sign: | The unique identifier for the client application<br/>This is used to track the client application and its usage<br/>(UUID, serial number, or other number unique per device)<br/> | gcgzw5rz2xovp84b4vha3a40 |
| `xPlexProduct` | **string* | :heavy_minus_sign: | N/A | Plex Web |
| `opts` | [][operations.Option](../../models/operations/option.md) | :heavy_minus_sign: | The options for this request. | |
| Parameter | Type | Required | Description |
| -------------------------------------------------------------------- | -------------------------------------------------------------------- | -------------------------------------------------------------------- | -------------------------------------------------------------------- |
| `ctx` | [context.Context](https://pkg.go.dev/context#Context) | :heavy_check_mark: | The context to use for the request. |
| `request` | [operations.GetPinRequest](../../models/operations/getpinrequest.md) | :heavy_check_mark: | The request object to use for the request. |
| `opts` | [][operations.Option](../../models/operations/option.md) | :heavy_minus_sign: | The options for this request. |
### Response
@@ -350,7 +373,11 @@ import(
func main() {
s := plexgo.New(
plexgo.WithXPlexClientIdentifier("gcgzw5rz2xovp84b4vha3a40"),
plexgo.WithClientID("gcgzw5rz2xovp84b4vha3a40"),
plexgo.WithClientName("Plex Web"),
plexgo.WithDeviceName("Linux"),
plexgo.WithClientVersion("4.133.0"),
plexgo.WithXPlexPlatform("Chrome"),
)
ctx := context.Background()
@@ -370,7 +397,7 @@ func main() {
| --------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `ctx` | [context.Context](https://pkg.go.dev/context#Context) | :heavy_check_mark: | The context to use for the request. | |
| `pinID` | *int64* | :heavy_check_mark: | The PinID to retrieve an access token for | |
| `xPlexClientIdentifier` | **string* | :heavy_minus_sign: | The unique identifier for the client application<br/>This is used to track the client application and its usage<br/>(UUID, serial number, or other number unique per device)<br/> | gcgzw5rz2xovp84b4vha3a40 |
| `clientID` | **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 |
| `opts` | [][operations.Option](../../models/operations/option.md) | :heavy_minus_sign: | The options for this request. | |
### Response

View File

@@ -42,7 +42,11 @@ import(
func main() {
s := plexgo.New(
plexgo.WithSecurity("<YOUR_API_KEY_HERE>"),
plexgo.WithXPlexClientIdentifier("gcgzw5rz2xovp84b4vha3a40"),
plexgo.WithClientID("gcgzw5rz2xovp84b4vha3a40"),
plexgo.WithClientName("Plex Web"),
plexgo.WithDeviceName("Linux"),
plexgo.WithClientVersion("4.133.0"),
plexgo.WithXPlexPlatform("Chrome"),
)
ctx := context.Background()
@@ -101,7 +105,11 @@ import(
func main() {
s := plexgo.New(
plexgo.WithSecurity("<YOUR_API_KEY_HERE>"),
plexgo.WithXPlexClientIdentifier("gcgzw5rz2xovp84b4vha3a40"),
plexgo.WithClientID("gcgzw5rz2xovp84b4vha3a40"),
plexgo.WithClientName("Plex Web"),
plexgo.WithDeviceName("Linux"),
plexgo.WithClientVersion("4.133.0"),
plexgo.WithXPlexPlatform("Chrome"),
)
ctx := context.Background()
@@ -156,7 +164,11 @@ import(
func main() {
s := plexgo.New(
plexgo.WithSecurity("<YOUR_API_KEY_HERE>"),
plexgo.WithXPlexClientIdentifier("gcgzw5rz2xovp84b4vha3a40"),
plexgo.WithClientID("gcgzw5rz2xovp84b4vha3a40"),
plexgo.WithClientName("Plex Web"),
plexgo.WithDeviceName("Linux"),
plexgo.WithClientVersion("4.133.0"),
plexgo.WithXPlexPlatform("Chrome"),
)
ctx := context.Background()

View File

@@ -36,7 +36,11 @@ import(
func main() {
s := plexgo.New(
plexgo.WithSecurity("<YOUR_API_KEY_HERE>"),
plexgo.WithXPlexClientIdentifier("gcgzw5rz2xovp84b4vha3a40"),
plexgo.WithClientID("gcgzw5rz2xovp84b4vha3a40"),
plexgo.WithClientName("Plex Web"),
plexgo.WithDeviceName("Linux"),
plexgo.WithClientVersion("4.133.0"),
plexgo.WithXPlexPlatform("Chrome"),
)
ctx := context.Background()
@@ -88,7 +92,11 @@ import(
func main() {
s := plexgo.New(
plexgo.WithSecurity("<YOUR_API_KEY_HERE>"),
plexgo.WithXPlexClientIdentifier("gcgzw5rz2xovp84b4vha3a40"),
plexgo.WithClientID("gcgzw5rz2xovp84b4vha3a40"),
plexgo.WithClientName("Plex Web"),
plexgo.WithDeviceName("Linux"),
plexgo.WithClientVersion("4.133.0"),
plexgo.WithXPlexPlatform("Chrome"),
)
ctx := context.Background()
@@ -140,7 +148,11 @@ import(
func main() {
s := plexgo.New(
plexgo.WithSecurity("<YOUR_API_KEY_HERE>"),
plexgo.WithXPlexClientIdentifier("gcgzw5rz2xovp84b4vha3a40"),
plexgo.WithClientID("gcgzw5rz2xovp84b4vha3a40"),
plexgo.WithClientName("Plex Web"),
plexgo.WithDeviceName("Linux"),
plexgo.WithClientVersion("4.133.0"),
plexgo.WithXPlexPlatform("Chrome"),
)
ctx := context.Background()
@@ -192,7 +204,11 @@ import(
func main() {
s := plexgo.New(
plexgo.WithSecurity("<YOUR_API_KEY_HERE>"),
plexgo.WithXPlexClientIdentifier("gcgzw5rz2xovp84b4vha3a40"),
plexgo.WithClientID("gcgzw5rz2xovp84b4vha3a40"),
plexgo.WithClientName("Plex Web"),
plexgo.WithDeviceName("Linux"),
plexgo.WithClientVersion("4.133.0"),
plexgo.WithXPlexPlatform("Chrome"),
)
ctx := context.Background()
@@ -243,7 +259,11 @@ import(
func main() {
s := plexgo.New(
plexgo.WithXPlexClientIdentifier("gcgzw5rz2xovp84b4vha3a40"),
plexgo.WithClientID("gcgzw5rz2xovp84b4vha3a40"),
plexgo.WithClientName("Plex Web"),
plexgo.WithDeviceName("Linux"),
plexgo.WithClientVersion("4.133.0"),
plexgo.WithXPlexPlatform("Chrome"),
)
ctx := context.Background()
@@ -294,7 +314,11 @@ import(
func main() {
s := plexgo.New(
plexgo.WithSecurity("<YOUR_API_KEY_HERE>"),
plexgo.WithXPlexClientIdentifier("gcgzw5rz2xovp84b4vha3a40"),
plexgo.WithClientID("gcgzw5rz2xovp84b4vha3a40"),
plexgo.WithClientName("Plex Web"),
plexgo.WithDeviceName("Linux"),
plexgo.WithClientVersion("4.133.0"),
plexgo.WithXPlexPlatform("Chrome"),
)
ctx := context.Background()
@@ -348,7 +372,11 @@ import(
func main() {
s := plexgo.New(
plexgo.WithSecurity("<YOUR_API_KEY_HERE>"),
plexgo.WithXPlexClientIdentifier("gcgzw5rz2xovp84b4vha3a40"),
plexgo.WithClientID("gcgzw5rz2xovp84b4vha3a40"),
plexgo.WithClientName("Plex Web"),
plexgo.WithDeviceName("Linux"),
plexgo.WithClientVersion("4.133.0"),
plexgo.WithXPlexPlatform("Chrome"),
)
ctx := context.Background()
@@ -409,7 +437,11 @@ import(
func main() {
s := plexgo.New(
plexgo.WithSecurity("<YOUR_API_KEY_HERE>"),
plexgo.WithXPlexClientIdentifier("gcgzw5rz2xovp84b4vha3a40"),
plexgo.WithClientID("gcgzw5rz2xovp84b4vha3a40"),
plexgo.WithClientName("Plex Web"),
plexgo.WithDeviceName("Linux"),
plexgo.WithClientVersion("4.133.0"),
plexgo.WithXPlexPlatform("Chrome"),
)
ctx := context.Background()
@@ -462,7 +494,11 @@ import(
func main() {
s := plexgo.New(
plexgo.WithSecurity("<YOUR_API_KEY_HERE>"),
plexgo.WithXPlexClientIdentifier("gcgzw5rz2xovp84b4vha3a40"),
plexgo.WithClientID("gcgzw5rz2xovp84b4vha3a40"),
plexgo.WithClientName("Plex Web"),
plexgo.WithDeviceName("Linux"),
plexgo.WithClientVersion("4.133.0"),
plexgo.WithXPlexPlatform("Chrome"),
)
ctx := context.Background()

View File

@@ -31,7 +31,11 @@ import(
func main() {
s := plexgo.New(
plexgo.WithSecurity("<YOUR_API_KEY_HERE>"),
plexgo.WithXPlexClientIdentifier("gcgzw5rz2xovp84b4vha3a40"),
plexgo.WithClientID("gcgzw5rz2xovp84b4vha3a40"),
plexgo.WithClientName("Plex Web"),
plexgo.WithDeviceName("Linux"),
plexgo.WithClientVersion("4.133.0"),
plexgo.WithXPlexPlatform("Chrome"),
)
ctx := context.Background()
@@ -84,7 +88,11 @@ import(
func main() {
s := plexgo.New(
plexgo.WithSecurity("<YOUR_API_KEY_HERE>"),
plexgo.WithXPlexClientIdentifier("gcgzw5rz2xovp84b4vha3a40"),
plexgo.WithClientID("gcgzw5rz2xovp84b4vha3a40"),
plexgo.WithClientName("Plex Web"),
plexgo.WithDeviceName("Linux"),
plexgo.WithClientVersion("4.133.0"),
plexgo.WithXPlexPlatform("Chrome"),
)
ctx := context.Background()
@@ -140,7 +148,11 @@ import(
func main() {
s := plexgo.New(
plexgo.WithSecurity("<YOUR_API_KEY_HERE>"),
plexgo.WithXPlexClientIdentifier("gcgzw5rz2xovp84b4vha3a40"),
plexgo.WithClientID("gcgzw5rz2xovp84b4vha3a40"),
plexgo.WithClientName("Plex Web"),
plexgo.WithDeviceName("Linux"),
plexgo.WithClientVersion("4.133.0"),
plexgo.WithXPlexPlatform("Chrome"),
)
ctx := context.Background()
@@ -192,7 +204,11 @@ import(
func main() {
s := plexgo.New(
plexgo.WithSecurity("<YOUR_API_KEY_HERE>"),
plexgo.WithXPlexClientIdentifier("gcgzw5rz2xovp84b4vha3a40"),
plexgo.WithClientID("gcgzw5rz2xovp84b4vha3a40"),
plexgo.WithClientName("Plex Web"),
plexgo.WithDeviceName("Linux"),
plexgo.WithClientVersion("4.133.0"),
plexgo.WithXPlexPlatform("Chrome"),
)
ctx := context.Background()

View File

@@ -30,7 +30,11 @@ import(
func main() {
s := plexgo.New(
plexgo.WithSecurity("<YOUR_API_KEY_HERE>"),
plexgo.WithXPlexClientIdentifier("gcgzw5rz2xovp84b4vha3a40"),
plexgo.WithClientID("gcgzw5rz2xovp84b4vha3a40"),
plexgo.WithClientName("Plex Web"),
plexgo.WithDeviceName("Linux"),
plexgo.WithClientVersion("4.133.0"),
plexgo.WithXPlexPlatform("Chrome"),
)
ctx := context.Background()
@@ -83,7 +87,11 @@ import(
func main() {
s := plexgo.New(
plexgo.WithSecurity("<YOUR_API_KEY_HERE>"),
plexgo.WithXPlexClientIdentifier("gcgzw5rz2xovp84b4vha3a40"),
plexgo.WithClientID("gcgzw5rz2xovp84b4vha3a40"),
plexgo.WithClientName("Plex Web"),
plexgo.WithDeviceName("Linux"),
plexgo.WithClientVersion("4.133.0"),
plexgo.WithXPlexPlatform("Chrome"),
)
ctx := context.Background()
@@ -136,7 +144,11 @@ import(
func main() {
s := plexgo.New(
plexgo.WithSecurity("<YOUR_API_KEY_HERE>"),
plexgo.WithXPlexClientIdentifier("gcgzw5rz2xovp84b4vha3a40"),
plexgo.WithClientID("gcgzw5rz2xovp84b4vha3a40"),
plexgo.WithClientName("Plex Web"),
plexgo.WithDeviceName("Linux"),
plexgo.WithClientVersion("4.133.0"),
plexgo.WithXPlexPlatform("Chrome"),
)
ctx := context.Background()

View File

@@ -31,7 +31,11 @@ import(
func main() {
s := plexgo.New(
plexgo.WithSecurity("<YOUR_API_KEY_HERE>"),
plexgo.WithXPlexClientIdentifier("gcgzw5rz2xovp84b4vha3a40"),
plexgo.WithClientID("gcgzw5rz2xovp84b4vha3a40"),
plexgo.WithClientName("Plex Web"),
plexgo.WithDeviceName("Linux"),
plexgo.WithClientVersion("4.133.0"),
plexgo.WithXPlexPlatform("Chrome"),
)
ctx := context.Background()
@@ -84,7 +88,11 @@ import(
func main() {
s := plexgo.New(
plexgo.WithSecurity("<YOUR_API_KEY_HERE>"),
plexgo.WithXPlexClientIdentifier("gcgzw5rz2xovp84b4vha3a40"),
plexgo.WithClientID("gcgzw5rz2xovp84b4vha3a40"),
plexgo.WithClientName("Plex Web"),
plexgo.WithDeviceName("Linux"),
plexgo.WithClientVersion("4.133.0"),
plexgo.WithXPlexPlatform("Chrome"),
)
ctx := context.Background()
@@ -139,7 +147,11 @@ import(
func main() {
s := plexgo.New(
plexgo.WithSecurity("<YOUR_API_KEY_HERE>"),
plexgo.WithXPlexClientIdentifier("gcgzw5rz2xovp84b4vha3a40"),
plexgo.WithClientID("gcgzw5rz2xovp84b4vha3a40"),
plexgo.WithClientName("Plex Web"),
plexgo.WithDeviceName("Linux"),
plexgo.WithClientVersion("4.133.0"),
plexgo.WithXPlexPlatform("Chrome"),
)
ctx := context.Background()

View File

@@ -30,7 +30,11 @@ import(
func main() {
s := plexgo.New(
plexgo.WithSecurity("<YOUR_API_KEY_HERE>"),
plexgo.WithXPlexClientIdentifier("gcgzw5rz2xovp84b4vha3a40"),
plexgo.WithClientID("gcgzw5rz2xovp84b4vha3a40"),
plexgo.WithClientName("Plex Web"),
plexgo.WithDeviceName("Linux"),
plexgo.WithClientVersion("4.133.0"),
plexgo.WithXPlexPlatform("Chrome"),
)
ctx := context.Background()
@@ -95,7 +99,11 @@ import(
func main() {
s := plexgo.New(
plexgo.WithSecurity("<YOUR_API_KEY_HERE>"),
plexgo.WithXPlexClientIdentifier("gcgzw5rz2xovp84b4vha3a40"),
plexgo.WithClientID("gcgzw5rz2xovp84b4vha3a40"),
plexgo.WithClientName("Plex Web"),
plexgo.WithDeviceName("Linux"),
plexgo.WithClientVersion("4.133.0"),
plexgo.WithXPlexPlatform("Chrome"),
)
ctx := context.Background()

View File

@@ -29,7 +29,11 @@ import(
func main() {
s := plexgo.New(
plexgo.WithSecurity("<YOUR_API_KEY_HERE>"),
plexgo.WithXPlexClientIdentifier("gcgzw5rz2xovp84b4vha3a40"),
plexgo.WithClientID("gcgzw5rz2xovp84b4vha3a40"),
plexgo.WithClientName("Plex Web"),
plexgo.WithDeviceName("Linux"),
plexgo.WithClientVersion("4.133.0"),
plexgo.WithXPlexPlatform("Chrome"),
)
ctx := context.Background()

View File

@@ -7,12 +7,44 @@ type Globals struct {
// This is used to track the client application and its usage
// (UUID, serial number, or other number unique per device)
//
XPlexClientIdentifier *string `queryParam:"style=form,explode=true,name=X-Plex-Client-Identifier"`
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"`
}
func (o *Globals) GetXPlexClientIdentifier() *string {
func (o *Globals) GetClientID() *string {
if o == nil {
return nil
}
return o.XPlexClientIdentifier
return o.ClientID
}
func (o *Globals) GetClientName() *string {
if o == nil {
return nil
}
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
}
return o.ClientVersion
}
func (o *Globals) GetXPlexPlatform() *string {
if o == nil {
return nil
}
return o.XPlexPlatform
}

View File

@@ -17,14 +17,46 @@ type GetPinGlobals struct {
// This is used to track the client application and its usage
// (UUID, serial number, or other number unique per device)
//
XPlexClientIdentifier *string `queryParam:"style=form,explode=true,name=X-Plex-Client-Identifier"`
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"`
}
func (o *GetPinGlobals) GetXPlexClientIdentifier() *string {
func (o *GetPinGlobals) GetClientID() *string {
if o == nil {
return nil
}
return o.XPlexClientIdentifier
return o.ClientID
}
func (o *GetPinGlobals) GetClientName() *string {
if o == nil {
return nil
}
return o.ClientName
}
func (o *GetPinGlobals) GetDeviceName() *string {
if o == nil {
return nil
}
return o.DeviceName
}
func (o *GetPinGlobals) GetClientVersion() *string {
if o == nil {
return nil
}
return o.ClientVersion
}
func (o *GetPinGlobals) GetXPlexPlatform() *string {
if o == nil {
return nil
}
return o.XPlexPlatform
}
type GetPinRequest struct {
@@ -37,8 +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)
//
XPlexClientIdentifier *string `queryParam:"style=form,explode=true,name=X-Plex-Client-Identifier"`
XPlexProduct *string `queryParam:"style=form,explode=true,name=X-Plex-Product"`
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"`
}
func (g GetPinRequest) MarshalJSON() ([]byte, error) {
@@ -59,18 +94,39 @@ func (o *GetPinRequest) GetStrong() *bool {
return o.Strong
}
func (o *GetPinRequest) GetXPlexClientIdentifier() *string {
func (o *GetPinRequest) GetClientID() *string {
if o == nil {
return nil
}
return o.XPlexClientIdentifier
return o.ClientID
}
func (o *GetPinRequest) GetXPlexProduct() *string {
func (o *GetPinRequest) GetClientName() *string {
if o == nil {
return nil
}
return o.XPlexProduct
return o.ClientName
}
func (o *GetPinRequest) GetDeviceName() *string {
if o == nil {
return nil
}
return o.DeviceName
}
func (o *GetPinRequest) GetClientVersion() *string {
if o == nil {
return nil
}
return o.ClientVersion
}
func (o *GetPinRequest) GetXPlexPlatform() *string {
if o == nil {
return nil
}
return o.XPlexPlatform
}
// GeoData - Geo location data

View File

@@ -19,14 +19,14 @@ type GetServerResourcesGlobals struct {
// This is used to track the client application and its usage
// (UUID, serial number, or other number unique per device)
//
XPlexClientIdentifier *string `queryParam:"style=form,explode=true,name=X-Plex-Client-Identifier"`
ClientID *string `queryParam:"style=form,explode=true,name=X-Plex-Client-Identifier"`
}
func (o *GetServerResourcesGlobals) GetXPlexClientIdentifier() *string {
func (o *GetServerResourcesGlobals) GetClientID() *string {
if o == nil {
return nil
}
return o.XPlexClientIdentifier
return o.ClientID
}
// IncludeHTTPS - Include Https entries in the results
@@ -116,7 +116,7 @@ type GetServerResourcesRequest struct {
// This is used to track the client application and its usage
// (UUID, serial number, or other number unique per device)
//
XPlexClientIdentifier *string `queryParam:"style=form,explode=true,name=X-Plex-Client-Identifier"`
ClientID *string `queryParam:"style=form,explode=true,name=X-Plex-Client-Identifier"`
// Include Https entries in the results
IncludeHTTPS *IncludeHTTPS `default:"0" queryParam:"style=form,explode=true,name=includeHttps"`
// Include Relay addresses in the results
@@ -138,11 +138,11 @@ func (g *GetServerResourcesRequest) UnmarshalJSON(data []byte) error {
return nil
}
func (o *GetServerResourcesRequest) GetXPlexClientIdentifier() *string {
func (o *GetServerResourcesRequest) GetClientID() *string {
if o == nil {
return nil
}
return o.XPlexClientIdentifier
return o.ClientID
}
func (o *GetServerResourcesRequest) GetIncludeHTTPS() *IncludeHTTPS {

View File

@@ -17,14 +17,14 @@ type GetTokenByPinIDGlobals struct {
// This is used to track the client application and its usage
// (UUID, serial number, or other number unique per device)
//
XPlexClientIdentifier *string `queryParam:"style=form,explode=true,name=X-Plex-Client-Identifier"`
ClientID *string `queryParam:"style=form,explode=true,name=X-Plex-Client-Identifier"`
}
func (o *GetTokenByPinIDGlobals) GetXPlexClientIdentifier() *string {
func (o *GetTokenByPinIDGlobals) GetClientID() *string {
if o == nil {
return nil
}
return o.XPlexClientIdentifier
return o.ClientID
}
type GetTokenByPinIDRequest struct {
@@ -32,16 +32,16 @@ type GetTokenByPinIDRequest struct {
// This is used to track the client application and its usage
// (UUID, serial number, or other number unique per device)
//
XPlexClientIdentifier *string `queryParam:"style=form,explode=true,name=X-Plex-Client-Identifier"`
ClientID *string `queryParam:"style=form,explode=true,name=X-Plex-Client-Identifier"`
// The PinID to retrieve an access token for
PinID int64 `pathParam:"style=simple,explode=false,name=pinID"`
}
func (o *GetTokenByPinIDRequest) GetXPlexClientIdentifier() *string {
func (o *GetTokenByPinIDRequest) GetClientID() *string {
if o == nil {
return nil
}
return o.XPlexClientIdentifier
return o.ClientID
}
func (o *GetTokenByPinIDRequest) GetPinID() int64 {

View File

@@ -19,14 +19,14 @@ type PostUsersSignInDataGlobals struct {
// This is used to track the client application and its usage
// (UUID, serial number, or other number unique per device)
//
XPlexClientIdentifier *string `queryParam:"style=form,explode=true,name=X-Plex-Client-Identifier"`
ClientID *string `queryParam:"style=form,explode=true,name=X-Plex-Client-Identifier"`
}
func (o *PostUsersSignInDataGlobals) GetXPlexClientIdentifier() *string {
func (o *PostUsersSignInDataGlobals) GetClientID() *string {
if o == nil {
return nil
}
return o.XPlexClientIdentifier
return o.ClientID
}
// PostUsersSignInDataRequestBody - Login credentials
@@ -81,16 +81,16 @@ type PostUsersSignInDataRequest struct {
// This is used to track the client application and its usage
// (UUID, serial number, or other number unique per device)
//
XPlexClientIdentifier *string `queryParam:"style=form,explode=true,name=X-Plex-Client-Identifier"`
ClientID *string `queryParam:"style=form,explode=true,name=X-Plex-Client-Identifier"`
// Login credentials
RequestBody *PostUsersSignInDataRequestBody `request:"mediaType=application/x-www-form-urlencoded"`
}
func (o *PostUsersSignInDataRequest) GetXPlexClientIdentifier() *string {
func (o *PostUsersSignInDataRequest) GetClientID() *string {
if o == nil {
return nil
}
return o.XPlexClientIdentifier
return o.ClientID
}
func (o *PostUsersSignInDataRequest) GetRequestBody() *PostUsersSignInDataRequestBody {

36
plex.go
View File

@@ -1008,7 +1008,7 @@ func (s *Plex) GetHomeData(ctx context.Context, opts ...operations.Option) (*ope
// GetServerResources - Get Server Resources
// Get Plex server access tokens and server connections
func (s *Plex) GetServerResources(ctx context.Context, xPlexClientIdentifier *string, includeHTTPS *operations.IncludeHTTPS, includeRelay *operations.IncludeRelay, includeIPv6 *operations.IncludeIPv6, opts ...operations.Option) (*operations.GetServerResourcesResponse, error) {
func (s *Plex) GetServerResources(ctx context.Context, clientID *string, includeHTTPS *operations.IncludeHTTPS, includeRelay *operations.IncludeRelay, includeIPv6 *operations.IncludeIPv6, opts ...operations.Option) (*operations.GetServerResourcesResponse, error) {
hookCtx := hooks.HookContext{
Context: ctx,
OperationID: "get-server-resources",
@@ -1017,14 +1017,14 @@ func (s *Plex) GetServerResources(ctx context.Context, xPlexClientIdentifier *st
}
request := operations.GetServerResourcesRequest{
XPlexClientIdentifier: xPlexClientIdentifier,
IncludeHTTPS: includeHTTPS,
IncludeRelay: includeRelay,
IncludeIPv6: includeIPv6,
ClientID: clientID,
IncludeHTTPS: includeHTTPS,
IncludeRelay: includeRelay,
IncludeIPv6: includeIPv6,
}
globals := operations.GetServerResourcesGlobals{
XPlexClientIdentifier: s.sdkConfiguration.Globals.XPlexClientIdentifier,
ClientID: s.sdkConfiguration.Globals.ClientID,
}
o := operations.Options{}
@@ -1269,8 +1269,8 @@ func (s *Plex) GetServerResources(ctx context.Context, xPlexClientIdentifier *st
}
// GetPin - Get a Pin
// Retrieve a Pin from Plex.tv for authentication flows
func (s *Plex) GetPin(ctx context.Context, strong *bool, xPlexClientIdentifier *string, xPlexProduct *string, opts ...operations.Option) (*operations.GetPinResponse, error) {
// Retrieve a Pin ID from Plex.tv to use for authentication flows
func (s *Plex) GetPin(ctx context.Context, request operations.GetPinRequest, opts ...operations.Option) (*operations.GetPinResponse, error) {
hookCtx := hooks.HookContext{
Context: ctx,
OperationID: "getPin",
@@ -1278,14 +1278,12 @@ func (s *Plex) GetPin(ctx context.Context, strong *bool, xPlexClientIdentifier *
SecuritySource: nil,
}
request := operations.GetPinRequest{
Strong: strong,
XPlexClientIdentifier: xPlexClientIdentifier,
XPlexProduct: xPlexProduct,
}
globals := operations.GetPinGlobals{
XPlexClientIdentifier: s.sdkConfiguration.Globals.XPlexClientIdentifier,
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,
}
o := operations.Options{}
@@ -1504,7 +1502,7 @@ func (s *Plex) GetPin(ctx context.Context, strong *bool, xPlexClientIdentifier *
// GetTokenByPinID - Get Access Token by PinId
// Retrieve an Access Token from Plex.tv after the Pin has been authenticated
func (s *Plex) GetTokenByPinID(ctx context.Context, pinID int64, xPlexClientIdentifier *string, opts ...operations.Option) (*operations.GetTokenByPinIDResponse, error) {
func (s *Plex) GetTokenByPinID(ctx context.Context, pinID int64, clientID *string, opts ...operations.Option) (*operations.GetTokenByPinIDResponse, error) {
hookCtx := hooks.HookContext{
Context: ctx,
OperationID: "getTokenByPinId",
@@ -1513,12 +1511,12 @@ func (s *Plex) GetTokenByPinID(ctx context.Context, pinID int64, xPlexClientIden
}
request := operations.GetTokenByPinIDRequest{
XPlexClientIdentifier: xPlexClientIdentifier,
PinID: pinID,
ClientID: clientID,
PinID: pinID,
}
globals := operations.GetTokenByPinIDGlobals{
XPlexClientIdentifier: s.sdkConfiguration.Globals.XPlexClientIdentifier,
ClientID: s.sdkConfiguration.Globals.ClientID,
}
o := operations.Options{}

View File

@@ -257,10 +257,38 @@ func WithSecuritySource(security func(context.Context) (components.Security, err
}
}
// WithXPlexClientIdentifier allows setting the XPlexClientIdentifier parameter for all supported operations
func WithXPlexClientIdentifier(xPlexClientIdentifier string) SDKOption {
// WithClientID allows setting the ClientID parameter for all supported operations
func WithClientID(clientID string) SDKOption {
return func(sdk *PlexAPI) {
sdk.sdkConfiguration.Globals.XPlexClientIdentifier = &xPlexClientIdentifier
sdk.sdkConfiguration.Globals.ClientID = &clientID
}
}
// WithClientName allows setting the ClientName parameter for all supported operations
func WithClientName(clientName string) SDKOption {
return func(sdk *PlexAPI) {
sdk.sdkConfiguration.Globals.ClientName = &clientName
}
}
// 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) {
sdk.sdkConfiguration.Globals.ClientVersion = &clientVersion
}
}
// WithXPlexPlatform allows setting the XPlexPlatform parameter for all supported operations
func WithXPlexPlatform(xPlexPlatform string) SDKOption {
return func(sdk *PlexAPI) {
sdk.sdkConfiguration.Globals.XPlexPlatform = &xPlexPlatform
}
}
@@ -283,9 +311,9 @@ func New(opts ...SDKOption) *PlexAPI {
sdkConfiguration: sdkConfiguration{
Language: "go",
OpenAPIDocVersion: "0.0.3",
SDKVersion: "0.11.10",
SDKVersion: "0.11.11",
GenVersion: "2.415.8",
UserAgent: "speakeasy-sdk/go 0.11.10 2.415.8 0.0.3 github.com/LukeHagar/plexgo",
UserAgent: "speakeasy-sdk/go 0.11.11 2.415.8 0.0.3 github.com/LukeHagar/plexgo",
Globals: globals.Globals{},
ServerDefaults: []map[string]string{
{