Compare commits

...

4 Commits

Author SHA1 Message Date
speakeasybot
f52d81d1f6 ci: regenerated with OpenAPI Doc , Speakeasy CLI 1.401.2 2024-09-21 00:10:16 +00:00
speakeasybot
d83bd96c5f ci: regenerated with OpenAPI Doc , Speakeasy CLI 1.399.2 2024-09-19 00:11:05 +00:00
speakeasybot
2289036c2b ci: regenerated with OpenAPI Doc , Speakeasy CLI 1.399.2 2024-09-18 15:03:35 +00:00
speakeasybot
a7eedd3598 ci: regenerated with OpenAPI Doc , Speakeasy CLI 1.399.1 2024-09-18 14:12:18 +00:00
95 changed files with 1514 additions and 1188 deletions

File diff suppressed because one or more lines are too long

View File

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

View File

@@ -1,4 +1,4 @@
speakeasyVersion: 1.399.0
speakeasyVersion: 1.401.2
sources:
my-source:
sourceNamespace: my-source
@@ -9,8 +9,8 @@ sources:
- main
plexapi:
sourceNamespace: plexapi
sourceRevisionDigest: sha256:957dc5226ef7b740811a8c5ad0a0a59f37ee8eafd68fbf8686326f49a9216e83
sourceBlobDigest: sha256:b422e0684d1f7d90919f3ba6e3508fc8564af9810e13394a707d0d9016facb2c
sourceRevisionDigest: sha256:5aa71ad96ca6de91143ee513c9880e08e555e7748fb4b5f8d069c6ab0c8f3069
sourceBlobDigest: sha256:1cbef844e2856c2eabba4bd6d677d96c572fed13b27978d0d953aa06b224c02f
tags:
- latest
- main
@@ -18,10 +18,10 @@ targets:
plexgo:
source: plexapi
sourceNamespace: plexapi
sourceRevisionDigest: sha256:957dc5226ef7b740811a8c5ad0a0a59f37ee8eafd68fbf8686326f49a9216e83
sourceBlobDigest: sha256:b422e0684d1f7d90919f3ba6e3508fc8564af9810e13394a707d0d9016facb2c
sourceRevisionDigest: sha256:5aa71ad96ca6de91143ee513c9880e08e555e7748fb4b5f8d069c6ab0c8f3069
sourceBlobDigest: sha256:1cbef844e2856c2eabba4bd6d677d96c572fed13b27978d0d953aa06b224c02f
codeSamplesNamespace: code-samples-go-plexgo
codeSamplesRevisionDigest: sha256:10f0ca43c97f1275b36a100af203ef302d5dad9a8736f731445a909296a48027
codeSamplesRevisionDigest: sha256:366a4aca940e2161009b4efe3c83407ecf0d02ac6a9e3420964c593aa24e3a34
workflow:
workflowVersion: 1.0.0
speakeasyVersion: latest

View File

@@ -56,9 +56,9 @@ func main() {
plexgo.WithSecurity("<YOUR_API_KEY_HERE>"),
plexgo.WithClientID("gcgzw5rz2xovp84b4vha3a40"),
plexgo.WithClientName("Plex Web"),
plexgo.WithDeviceName("Linux"),
plexgo.WithClientVersion("4.133.0"),
plexgo.WithXPlexPlatform("Chrome"),
plexgo.WithClientPlatform("Chrome"),
plexgo.WithDeviceName("Linux"),
)
ctx := context.Background()
@@ -228,9 +228,9 @@ func main() {
plexgo.WithSecurity("<YOUR_API_KEY_HERE>"),
plexgo.WithClientID("gcgzw5rz2xovp84b4vha3a40"),
plexgo.WithClientName("Plex Web"),
plexgo.WithDeviceName("Linux"),
plexgo.WithClientVersion("4.133.0"),
plexgo.WithXPlexPlatform("Chrome"),
plexgo.WithClientPlatform("Chrome"),
plexgo.WithDeviceName("Linux"),
)
ctx := context.Background()
@@ -282,9 +282,9 @@ func main() {
plexgo.WithSecurity("<YOUR_API_KEY_HERE>"),
plexgo.WithClientID("gcgzw5rz2xovp84b4vha3a40"),
plexgo.WithClientName("Plex Web"),
plexgo.WithDeviceName("Linux"),
plexgo.WithClientVersion("4.133.0"),
plexgo.WithXPlexPlatform("Chrome"),
plexgo.WithClientPlatform("Chrome"),
plexgo.WithDeviceName("Linux"),
)
ctx := context.Background()
@@ -329,9 +329,9 @@ func main() {
plexgo.WithSecurity("<YOUR_API_KEY_HERE>"),
plexgo.WithClientID("gcgzw5rz2xovp84b4vha3a40"),
plexgo.WithClientName("Plex Web"),
plexgo.WithDeviceName("Linux"),
plexgo.WithClientVersion("4.133.0"),
plexgo.WithXPlexPlatform("Chrome"),
plexgo.WithClientPlatform("Chrome"),
plexgo.WithDeviceName("Linux"),
)
ctx := context.Background()
@@ -389,9 +389,9 @@ func main() {
plexgo.WithSecurity("<YOUR_API_KEY_HERE>"),
plexgo.WithClientID("gcgzw5rz2xovp84b4vha3a40"),
plexgo.WithClientName("Plex Web"),
plexgo.WithDeviceName("Linux"),
plexgo.WithClientVersion("4.133.0"),
plexgo.WithXPlexPlatform("Chrome"),
plexgo.WithClientPlatform("Chrome"),
plexgo.WithDeviceName("Linux"),
)
ctx := context.Background()
@@ -431,9 +431,9 @@ func main() {
plexgo.WithSecurity("<YOUR_API_KEY_HERE>"),
plexgo.WithClientID("gcgzw5rz2xovp84b4vha3a40"),
plexgo.WithClientName("Plex Web"),
plexgo.WithDeviceName("Linux"),
plexgo.WithClientVersion("4.133.0"),
plexgo.WithXPlexPlatform("Chrome"),
plexgo.WithClientPlatform("Chrome"),
plexgo.WithDeviceName("Linux"),
)
ctx := context.Background()
@@ -466,9 +466,9 @@ func main() {
plexgo.WithSecurity("<YOUR_API_KEY_HERE>"),
plexgo.WithClientID("gcgzw5rz2xovp84b4vha3a40"),
plexgo.WithClientName("Plex Web"),
plexgo.WithDeviceName("Linux"),
plexgo.WithClientVersion("4.133.0"),
plexgo.WithXPlexPlatform("Chrome"),
plexgo.WithClientPlatform("Chrome"),
plexgo.WithDeviceName("Linux"),
)
ctx := context.Background()
@@ -539,9 +539,9 @@ func main() {
plexgo.WithSecurity("<YOUR_API_KEY_HERE>"),
plexgo.WithClientID("gcgzw5rz2xovp84b4vha3a40"),
plexgo.WithClientName("Plex Web"),
plexgo.WithDeviceName("Linux"),
plexgo.WithClientVersion("4.133.0"),
plexgo.WithXPlexPlatform("Chrome"),
plexgo.WithClientPlatform("Chrome"),
plexgo.WithDeviceName("Linux"),
)
ctx := context.Background()
@@ -588,7 +588,7 @@ d6 := types.MustDateFromString("2019-01-01") // returns types.Date and panics on
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 `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.
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 `GetPin`. But if you want to do so you may, which will locally override the global setting. See the example code below for a demonstration.
### Available Globals
@@ -602,9 +602,9 @@ This is used to track the client application and its usage
(UUID, serial number, or other number unique per device)
|
| ClientName | string | | The ClientName parameter. |
| DeviceName | string | | The DeviceName parameter. |
| ClientVersion | string | | The ClientVersion parameter. |
| XPlexPlatform | string | | The XPlexPlatform parameter. |
| ClientPlatform | string | | The ClientPlatform parameter. |
| DeviceName | string | | The DeviceName parameter. |
### Example
@@ -621,20 +621,19 @@ import (
func main() {
s := plexgo.New(
plexgo.WithSecurity("<YOUR_API_KEY_HERE>"),
plexgo.WithClientID("gcgzw5rz2xovp84b4vha3a40"),
plexgo.WithClientName("Plex Web"),
plexgo.WithDeviceName("Linux"),
plexgo.WithClientVersion("4.133.0"),
plexgo.WithXPlexPlatform("Chrome"),
plexgo.WithClientPlatform("Chrome"),
plexgo.WithDeviceName("Linux"),
)
ctx := context.Background()
res, err := s.Plex.GetServerResources(ctx, plexgo.String("gcgzw5rz2xovp84b4vha3a40"), operations.IncludeHTTPSOne.ToPointer(), operations.IncludeRelayOne.ToPointer(), operations.IncludeIPv6One.ToPointer())
res, err := s.Plex.GetPin(ctx, operations.GetPinRequest{})
if err != nil {
log.Fatal(err)
}
if res.PlexDevices != nil {
if res.AuthPinContainer != nil {
// handle response
}
}

View File

@@ -862,4 +862,44 @@ Based on:
### Generated
- [go v0.11.11] .
### Releases
- [Go v0.11.11] https://github.com/LukeHagar/plexgo/releases/tag/v0.11.11 - .
- [Go v0.11.11] https://github.com/LukeHagar/plexgo/releases/tag/v0.11.11 - .
## 2024-09-18 14:09:58
### Changes
Based on:
- OpenAPI Doc
- Speakeasy CLI 1.399.1 (2.415.8) https://github.com/speakeasy-api/speakeasy
### Generated
- [go v0.11.12] .
### Releases
- [Go v0.11.12] https://github.com/LukeHagar/plexgo/releases/tag/v0.11.12 - .
## 2024-09-18 15:01:19
### Changes
Based on:
- OpenAPI Doc
- Speakeasy CLI 1.399.2 (2.416.6) https://github.com/speakeasy-api/speakeasy
### Generated
- [go v0.11.13] .
### Releases
- [Go v0.11.13] https://github.com/LukeHagar/plexgo/releases/tag/v0.11.13 - .
## 2024-09-19 00:08:52
### Changes
Based on:
- OpenAPI Doc
- Speakeasy CLI 1.399.2 (2.416.6) https://github.com/speakeasy-api/speakeasy
### Generated
- [go v0.11.14] .
### Releases
- [Go v0.11.14] https://github.com/LukeHagar/plexgo/releases/tag/v0.11.14 - .
## 2024-09-21 00:08:46
### Changes
Based on:
- OpenAPI Doc
- Speakeasy CLI 1.401.2 (2.421.3) https://github.com/speakeasy-api/speakeasy
### Generated
- [go v0.12.0] .
### Releases
- [Go v0.12.0] https://github.com/LukeHagar/plexgo/releases/tag/v0.12.0 - .

View File

@@ -13,9 +13,9 @@ func main() {
plexgo.WithSecurity("<YOUR_API_KEY_HERE>"),
plexgo.WithClientID("gcgzw5rz2xovp84b4vha3a40"),
plexgo.WithClientName("Plex Web"),
plexgo.WithDeviceName("Linux"),
plexgo.WithClientVersion("4.133.0"),
plexgo.WithXPlexPlatform("Chrome"),
plexgo.WithClientPlatform("Chrome"),
plexgo.WithDeviceName("Linux"),
)
ctx := context.Background()

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, clientID *string, requestBody *operations.PostUsersSignInDataRequestBody, opts ...operations.Option) (*operations.PostUsersSignInDataResponse, error) {
func (s *Authentication) PostUsersSignInData(ctx context.Context, request *operations.PostUsersSignInDataRequestBody, opts ...operations.Option) (*operations.PostUsersSignInDataResponse, error) {
hookCtx := hooks.HookContext{
Context: ctx,
OperationID: "post-users-sign-in-data",
@@ -744,15 +744,6 @@ func (s *Authentication) PostUsersSignInData(ctx context.Context, clientID *stri
SecuritySource: nil,
}
request := operations.PostUsersSignInDataRequest{
ClientID: clientID,
RequestBody: requestBody,
}
globals := operations.PostUsersSignInDataGlobals{
ClientID: s.sdkConfiguration.Globals.ClientID,
}
o := operations.Options{}
supportedOptions := []string{
operations.SupportedOptionServerURL,
@@ -776,7 +767,7 @@ func (s *Authentication) PostUsersSignInData(ctx context.Context, clientID *stri
return nil, fmt.Errorf("error generating URL: %w", err)
}
bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "RequestBody", "form", `request:"mediaType=application/x-www-form-urlencoded"`)
bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "Request", "form", `request:"mediaType=application/x-www-form-urlencoded"`)
if err != nil {
return nil, err
}
@@ -800,10 +791,6 @@ func (s *Authentication) PostUsersSignInData(ctx context.Context, clientID *stri
req.Header.Set("User-Agent", s.sdkConfiguration.UserAgent)
req.Header.Set("Content-Type", reqContentType)
if err := utils.PopulateQueryParams(ctx, req, request, globals); err != nil {
return nil, fmt.Errorf("error populating query params: %w", err)
}
globalRetryConfig := s.sdkConfiguration.RetryConfig
retryConfig := o.Retries
if retryConfig == nil {

View File

@@ -22,9 +22,9 @@ actions:
plexgo.WithSecurity("<YOUR_API_KEY_HERE>"),
plexgo.WithClientID("gcgzw5rz2xovp84b4vha3a40"),
plexgo.WithClientName("Plex Web"),
plexgo.WithDeviceName("Linux"),
plexgo.WithClientVersion("4.133.0"),
plexgo.WithXPlexPlatform("Chrome"),
plexgo.WithClientPlatform("Chrome"),
plexgo.WithDeviceName("Linux"),
)
ctx := context.Background()
@@ -55,9 +55,9 @@ actions:
plexgo.WithSecurity("<YOUR_API_KEY_HERE>"),
plexgo.WithClientID("gcgzw5rz2xovp84b4vha3a40"),
plexgo.WithClientName("Plex Web"),
plexgo.WithDeviceName("Linux"),
plexgo.WithClientVersion("4.133.0"),
plexgo.WithXPlexPlatform("Chrome"),
plexgo.WithClientPlatform("Chrome"),
plexgo.WithDeviceName("Linux"),
)
ctx := context.Background()
@@ -88,9 +88,9 @@ actions:
plexgo.WithSecurity("<YOUR_API_KEY_HERE>"),
plexgo.WithClientID("gcgzw5rz2xovp84b4vha3a40"),
plexgo.WithClientName("Plex Web"),
plexgo.WithDeviceName("Linux"),
plexgo.WithClientVersion("4.133.0"),
plexgo.WithXPlexPlatform("Chrome"),
plexgo.WithClientPlatform("Chrome"),
plexgo.WithDeviceName("Linux"),
)
ctx := context.Background()
@@ -121,9 +121,9 @@ actions:
plexgo.WithSecurity("<YOUR_API_KEY_HERE>"),
plexgo.WithClientID("gcgzw5rz2xovp84b4vha3a40"),
plexgo.WithClientName("Plex Web"),
plexgo.WithDeviceName("Linux"),
plexgo.WithClientVersion("4.133.0"),
plexgo.WithXPlexPlatform("Chrome"),
plexgo.WithClientPlatform("Chrome"),
plexgo.WithDeviceName("Linux"),
)
ctx := context.Background()
@@ -155,9 +155,9 @@ actions:
plexgo.WithSecurity("<YOUR_API_KEY_HERE>"),
plexgo.WithClientID("gcgzw5rz2xovp84b4vha3a40"),
plexgo.WithClientName("Plex Web"),
plexgo.WithDeviceName("Linux"),
plexgo.WithClientVersion("4.133.0"),
plexgo.WithXPlexPlatform("Chrome"),
plexgo.WithClientPlatform("Chrome"),
plexgo.WithDeviceName("Linux"),
)
ctx := context.Background()
@@ -199,9 +199,9 @@ actions:
plexgo.WithSecurity("<YOUR_API_KEY_HERE>"),
plexgo.WithClientID("gcgzw5rz2xovp84b4vha3a40"),
plexgo.WithClientName("Plex Web"),
plexgo.WithDeviceName("Linux"),
plexgo.WithClientVersion("4.133.0"),
plexgo.WithXPlexPlatform("Chrome"),
plexgo.WithClientPlatform("Chrome"),
plexgo.WithDeviceName("Linux"),
)
ctx := context.Background()
@@ -232,9 +232,9 @@ actions:
plexgo.WithSecurity("<YOUR_API_KEY_HERE>"),
plexgo.WithClientID("gcgzw5rz2xovp84b4vha3a40"),
plexgo.WithClientName("Plex Web"),
plexgo.WithDeviceName("Linux"),
plexgo.WithClientVersion("4.133.0"),
plexgo.WithXPlexPlatform("Chrome"),
plexgo.WithClientPlatform("Chrome"),
plexgo.WithDeviceName("Linux"),
)
ctx := context.Background()
@@ -265,9 +265,9 @@ actions:
plexgo.WithSecurity("<YOUR_API_KEY_HERE>"),
plexgo.WithClientID("gcgzw5rz2xovp84b4vha3a40"),
plexgo.WithClientName("Plex Web"),
plexgo.WithDeviceName("Linux"),
plexgo.WithClientVersion("4.133.0"),
plexgo.WithXPlexPlatform("Chrome"),
plexgo.WithClientPlatform("Chrome"),
plexgo.WithDeviceName("Linux"),
)
ctx := context.Background()
@@ -298,9 +298,9 @@ actions:
plexgo.WithSecurity("<YOUR_API_KEY_HERE>"),
plexgo.WithClientID("gcgzw5rz2xovp84b4vha3a40"),
plexgo.WithClientName("Plex Web"),
plexgo.WithDeviceName("Linux"),
plexgo.WithClientVersion("4.133.0"),
plexgo.WithXPlexPlatform("Chrome"),
plexgo.WithClientPlatform("Chrome"),
plexgo.WithDeviceName("Linux"),
)
ctx := context.Background()
@@ -331,9 +331,9 @@ actions:
plexgo.WithSecurity("<YOUR_API_KEY_HERE>"),
plexgo.WithClientID("gcgzw5rz2xovp84b4vha3a40"),
plexgo.WithClientName("Plex Web"),
plexgo.WithDeviceName("Linux"),
plexgo.WithClientVersion("4.133.0"),
plexgo.WithXPlexPlatform("Chrome"),
plexgo.WithClientPlatform("Chrome"),
plexgo.WithDeviceName("Linux"),
)
ctx := context.Background()
@@ -364,9 +364,9 @@ actions:
plexgo.WithSecurity("<YOUR_API_KEY_HERE>"),
plexgo.WithClientID("gcgzw5rz2xovp84b4vha3a40"),
plexgo.WithClientName("Plex Web"),
plexgo.WithDeviceName("Linux"),
plexgo.WithClientVersion("4.133.0"),
plexgo.WithXPlexPlatform("Chrome"),
plexgo.WithClientPlatform("Chrome"),
plexgo.WithDeviceName("Linux"),
)
ctx := context.Background()
@@ -398,9 +398,9 @@ actions:
plexgo.WithSecurity("<YOUR_API_KEY_HERE>"),
plexgo.WithClientID("gcgzw5rz2xovp84b4vha3a40"),
plexgo.WithClientName("Plex Web"),
plexgo.WithDeviceName("Linux"),
plexgo.WithClientVersion("4.133.0"),
plexgo.WithXPlexPlatform("Chrome"),
plexgo.WithClientPlatform("Chrome"),
plexgo.WithDeviceName("Linux"),
)
ctx := context.Background()
@@ -432,9 +432,9 @@ actions:
plexgo.WithSecurity("<YOUR_API_KEY_HERE>"),
plexgo.WithClientID("gcgzw5rz2xovp84b4vha3a40"),
plexgo.WithClientName("Plex Web"),
plexgo.WithDeviceName("Linux"),
plexgo.WithClientVersion("4.133.0"),
plexgo.WithXPlexPlatform("Chrome"),
plexgo.WithClientPlatform("Chrome"),
plexgo.WithDeviceName("Linux"),
)
ctx := context.Background()
@@ -465,9 +465,9 @@ actions:
plexgo.WithSecurity("<YOUR_API_KEY_HERE>"),
plexgo.WithClientID("gcgzw5rz2xovp84b4vha3a40"),
plexgo.WithClientName("Plex Web"),
plexgo.WithDeviceName("Linux"),
plexgo.WithClientVersion("4.133.0"),
plexgo.WithXPlexPlatform("Chrome"),
plexgo.WithClientPlatform("Chrome"),
plexgo.WithDeviceName("Linux"),
)
ctx := context.Background()
@@ -498,9 +498,9 @@ actions:
plexgo.WithSecurity("<YOUR_API_KEY_HERE>"),
plexgo.WithClientID("gcgzw5rz2xovp84b4vha3a40"),
plexgo.WithClientName("Plex Web"),
plexgo.WithDeviceName("Linux"),
plexgo.WithClientVersion("4.133.0"),
plexgo.WithXPlexPlatform("Chrome"),
plexgo.WithClientPlatform("Chrome"),
plexgo.WithDeviceName("Linux"),
)
ctx := context.Background()
@@ -531,9 +531,9 @@ actions:
plexgo.WithSecurity("<YOUR_API_KEY_HERE>"),
plexgo.WithClientID("gcgzw5rz2xovp84b4vha3a40"),
plexgo.WithClientName("Plex Web"),
plexgo.WithDeviceName("Linux"),
plexgo.WithClientVersion("4.133.0"),
plexgo.WithXPlexPlatform("Chrome"),
plexgo.WithClientPlatform("Chrome"),
plexgo.WithDeviceName("Linux"),
)
ctx := context.Background()
@@ -564,9 +564,9 @@ actions:
plexgo.WithSecurity("<YOUR_API_KEY_HERE>"),
plexgo.WithClientID("gcgzw5rz2xovp84b4vha3a40"),
plexgo.WithClientName("Plex Web"),
plexgo.WithDeviceName("Linux"),
plexgo.WithClientVersion("4.133.0"),
plexgo.WithXPlexPlatform("Chrome"),
plexgo.WithClientPlatform("Chrome"),
plexgo.WithDeviceName("Linux"),
)
ctx := context.Background()
@@ -596,9 +596,9 @@ actions:
s := plexgo.New(
plexgo.WithClientID("gcgzw5rz2xovp84b4vha3a40"),
plexgo.WithClientName("Plex Web"),
plexgo.WithDeviceName("Linux"),
plexgo.WithClientVersion("4.133.0"),
plexgo.WithXPlexPlatform("Chrome"),
plexgo.WithClientPlatform("Chrome"),
plexgo.WithDeviceName("Linux"),
)
ctx := context.Background()
@@ -629,9 +629,9 @@ actions:
plexgo.WithSecurity("<YOUR_API_KEY_HERE>"),
plexgo.WithClientID("gcgzw5rz2xovp84b4vha3a40"),
plexgo.WithClientName("Plex Web"),
plexgo.WithDeviceName("Linux"),
plexgo.WithClientVersion("4.133.0"),
plexgo.WithXPlexPlatform("Chrome"),
plexgo.WithClientPlatform("Chrome"),
plexgo.WithDeviceName("Linux"),
)
ctx := context.Background()
@@ -662,9 +662,9 @@ actions:
plexgo.WithSecurity("<YOUR_API_KEY_HERE>"),
plexgo.WithClientID("gcgzw5rz2xovp84b4vha3a40"),
plexgo.WithClientName("Plex Web"),
plexgo.WithDeviceName("Linux"),
plexgo.WithClientVersion("4.133.0"),
plexgo.WithXPlexPlatform("Chrome"),
plexgo.WithClientPlatform("Chrome"),
plexgo.WithDeviceName("Linux"),
)
ctx := context.Background()
@@ -695,9 +695,9 @@ actions:
plexgo.WithSecurity("<YOUR_API_KEY_HERE>"),
plexgo.WithClientID("gcgzw5rz2xovp84b4vha3a40"),
plexgo.WithClientName("Plex Web"),
plexgo.WithDeviceName("Linux"),
plexgo.WithClientVersion("4.133.0"),
plexgo.WithXPlexPlatform("Chrome"),
plexgo.WithClientPlatform("Chrome"),
plexgo.WithDeviceName("Linux"),
)
ctx := context.Background()
@@ -728,9 +728,9 @@ actions:
plexgo.WithSecurity("<YOUR_API_KEY_HERE>"),
plexgo.WithClientID("gcgzw5rz2xovp84b4vha3a40"),
plexgo.WithClientName("Plex Web"),
plexgo.WithDeviceName("Linux"),
plexgo.WithClientVersion("4.133.0"),
plexgo.WithXPlexPlatform("Chrome"),
plexgo.WithClientPlatform("Chrome"),
plexgo.WithDeviceName("Linux"),
)
ctx := context.Background()
@@ -761,9 +761,9 @@ actions:
plexgo.WithSecurity("<YOUR_API_KEY_HERE>"),
plexgo.WithClientID("gcgzw5rz2xovp84b4vha3a40"),
plexgo.WithClientName("Plex Web"),
plexgo.WithDeviceName("Linux"),
plexgo.WithClientVersion("4.133.0"),
plexgo.WithXPlexPlatform("Chrome"),
plexgo.WithClientPlatform("Chrome"),
plexgo.WithDeviceName("Linux"),
)
ctx := context.Background()
@@ -793,9 +793,9 @@ actions:
s := plexgo.New(
plexgo.WithClientID("gcgzw5rz2xovp84b4vha3a40"),
plexgo.WithClientName("Plex Web"),
plexgo.WithDeviceName("Linux"),
plexgo.WithClientVersion("4.133.0"),
plexgo.WithXPlexPlatform("Chrome"),
plexgo.WithClientPlatform("Chrome"),
plexgo.WithDeviceName("Linux"),
)
ctx := context.Background()
@@ -827,13 +827,13 @@ actions:
plexgo.WithSecurity("<YOUR_API_KEY_HERE>"),
plexgo.WithClientID("gcgzw5rz2xovp84b4vha3a40"),
plexgo.WithClientName("Plex Web"),
plexgo.WithDeviceName("Linux"),
plexgo.WithClientVersion("4.133.0"),
plexgo.WithXPlexPlatform("Chrome"),
plexgo.WithClientPlatform("Chrome"),
plexgo.WithDeviceName("Linux"),
)
ctx := context.Background()
res, err := s.Library.GetTopWatchedContent(ctx, operations.GetTopWatchedContentQueryParamTypeTwo, plexgo.Int64(1))
res, err := s.Library.GetTopWatchedContent(ctx, operations.GetTopWatchedContentQueryParamTypeShow, plexgo.Int64(1))
if err != nil {
log.Fatal(err)
}
@@ -860,9 +860,9 @@ actions:
plexgo.WithSecurity("<YOUR_API_KEY_HERE>"),
plexgo.WithClientID("gcgzw5rz2xovp84b4vha3a40"),
plexgo.WithClientName("Plex Web"),
plexgo.WithDeviceName("Linux"),
plexgo.WithClientVersion("4.133.0"),
plexgo.WithXPlexPlatform("Chrome"),
plexgo.WithClientPlatform("Chrome"),
plexgo.WithDeviceName("Linux"),
)
ctx := context.Background()
@@ -893,9 +893,9 @@ actions:
plexgo.WithSecurity("<YOUR_API_KEY_HERE>"),
plexgo.WithClientID("gcgzw5rz2xovp84b4vha3a40"),
plexgo.WithClientName("Plex Web"),
plexgo.WithDeviceName("Linux"),
plexgo.WithClientVersion("4.133.0"),
plexgo.WithXPlexPlatform("Chrome"),
plexgo.WithClientPlatform("Chrome"),
plexgo.WithDeviceName("Linux"),
)
ctx := context.Background()
@@ -927,9 +927,9 @@ actions:
plexgo.WithSecurity("<YOUR_API_KEY_HERE>"),
plexgo.WithClientID("gcgzw5rz2xovp84b4vha3a40"),
plexgo.WithClientName("Plex Web"),
plexgo.WithDeviceName("Linux"),
plexgo.WithClientVersion("4.133.0"),
plexgo.WithXPlexPlatform("Chrome"),
plexgo.WithClientPlatform("Chrome"),
plexgo.WithDeviceName("Linux"),
)
ctx := context.Background()
@@ -967,13 +967,13 @@ actions:
plexgo.WithSecurity("<YOUR_API_KEY_HERE>"),
plexgo.WithClientID("gcgzw5rz2xovp84b4vha3a40"),
plexgo.WithClientName("Plex Web"),
plexgo.WithDeviceName("Linux"),
plexgo.WithClientVersion("4.133.0"),
plexgo.WithXPlexPlatform("Chrome"),
plexgo.WithClientPlatform("Chrome"),
plexgo.WithDeviceName("Linux"),
)
ctx := context.Background()
res, err := s.Library.GetMetadataChildren(ctx, 1539.14, plexgo.String("Stream"))
res, err := s.Library.GetMetadataChildren(ctx, 1539.15, plexgo.String("Stream"))
if err != nil {
log.Fatal(err)
}
@@ -1001,9 +1001,9 @@ actions:
plexgo.WithSecurity("<YOUR_API_KEY_HERE>"),
plexgo.WithClientID("gcgzw5rz2xovp84b4vha3a40"),
plexgo.WithClientName("Plex Web"),
plexgo.WithDeviceName("Linux"),
plexgo.WithClientVersion("4.133.0"),
plexgo.WithXPlexPlatform("Chrome"),
plexgo.WithClientPlatform("Chrome"),
plexgo.WithDeviceName("Linux"),
)
ctx := context.Background()
@@ -1041,9 +1041,9 @@ actions:
plexgo.WithSecurity("<YOUR_API_KEY_HERE>"),
plexgo.WithClientID("gcgzw5rz2xovp84b4vha3a40"),
plexgo.WithClientName("Plex Web"),
plexgo.WithDeviceName("Linux"),
plexgo.WithClientVersion("4.133.0"),
plexgo.WithXPlexPlatform("Chrome"),
plexgo.WithClientPlatform("Chrome"),
plexgo.WithDeviceName("Linux"),
)
ctx := context.Background()
@@ -1074,9 +1074,9 @@ actions:
plexgo.WithSecurity("<YOUR_API_KEY_HERE>"),
plexgo.WithClientID("gcgzw5rz2xovp84b4vha3a40"),
plexgo.WithClientName("Plex Web"),
plexgo.WithDeviceName("Linux"),
plexgo.WithClientVersion("4.133.0"),
plexgo.WithXPlexPlatform("Chrome"),
plexgo.WithClientPlatform("Chrome"),
plexgo.WithDeviceName("Linux"),
)
ctx := context.Background()
@@ -1107,9 +1107,9 @@ actions:
plexgo.WithSecurity("<YOUR_API_KEY_HERE>"),
plexgo.WithClientID("gcgzw5rz2xovp84b4vha3a40"),
plexgo.WithClientName("Plex Web"),
plexgo.WithDeviceName("Linux"),
plexgo.WithClientVersion("4.133.0"),
plexgo.WithXPlexPlatform("Chrome"),
plexgo.WithClientPlatform("Chrome"),
plexgo.WithDeviceName("Linux"),
)
ctx := context.Background()
@@ -1141,9 +1141,9 @@ actions:
plexgo.WithSecurity("<YOUR_API_KEY_HERE>"),
plexgo.WithClientID("gcgzw5rz2xovp84b4vha3a40"),
plexgo.WithClientName("Plex Web"),
plexgo.WithDeviceName("Linux"),
plexgo.WithClientVersion("4.133.0"),
plexgo.WithXPlexPlatform("Chrome"),
plexgo.WithClientPlatform("Chrome"),
plexgo.WithDeviceName("Linux"),
)
ctx := context.Background()
@@ -1179,9 +1179,9 @@ actions:
plexgo.WithSecurity("<YOUR_API_KEY_HERE>"),
plexgo.WithClientID("gcgzw5rz2xovp84b4vha3a40"),
plexgo.WithClientName("Plex Web"),
plexgo.WithDeviceName("Linux"),
plexgo.WithClientVersion("4.133.0"),
plexgo.WithXPlexPlatform("Chrome"),
plexgo.WithClientPlatform("Chrome"),
plexgo.WithDeviceName("Linux"),
)
ctx := context.Background()
@@ -1212,9 +1212,9 @@ actions:
plexgo.WithSecurity("<YOUR_API_KEY_HERE>"),
plexgo.WithClientID("gcgzw5rz2xovp84b4vha3a40"),
plexgo.WithClientName("Plex Web"),
plexgo.WithDeviceName("Linux"),
plexgo.WithClientVersion("4.133.0"),
plexgo.WithXPlexPlatform("Chrome"),
plexgo.WithClientPlatform("Chrome"),
plexgo.WithDeviceName("Linux"),
)
ctx := context.Background()
@@ -1246,9 +1246,9 @@ actions:
plexgo.WithSecurity("<YOUR_API_KEY_HERE>"),
plexgo.WithClientID("gcgzw5rz2xovp84b4vha3a40"),
plexgo.WithClientName("Plex Web"),
plexgo.WithDeviceName("Linux"),
plexgo.WithClientVersion("4.133.0"),
plexgo.WithXPlexPlatform("Chrome"),
plexgo.WithClientPlatform("Chrome"),
plexgo.WithDeviceName("Linux"),
)
ctx := context.Background()
@@ -1280,13 +1280,13 @@ actions:
plexgo.WithSecurity("<YOUR_API_KEY_HERE>"),
plexgo.WithClientID("gcgzw5rz2xovp84b4vha3a40"),
plexgo.WithClientName("Plex Web"),
plexgo.WithDeviceName("Linux"),
plexgo.WithClientVersion("4.133.0"),
plexgo.WithXPlexPlatform("Chrome"),
plexgo.WithClientPlatform("Chrome"),
plexgo.WithDeviceName("Linux"),
)
ctx := context.Background()
res, err := s.Library.GetSearchLibrary(ctx, 9518, operations.QueryParamTypeTwo)
res, err := s.Library.GetSearchLibrary(ctx, 9518, operations.QueryParamTypeShow)
if err != nil {
log.Fatal(err)
}
@@ -1314,18 +1314,18 @@ actions:
plexgo.WithSecurity("<YOUR_API_KEY_HERE>"),
plexgo.WithClientID("gcgzw5rz2xovp84b4vha3a40"),
plexgo.WithClientName("Plex Web"),
plexgo.WithDeviceName("Linux"),
plexgo.WithClientVersion("4.133.0"),
plexgo.WithXPlexPlatform("Chrome"),
plexgo.WithClientPlatform("Chrome"),
plexgo.WithDeviceName("Linux"),
)
ctx := context.Background()
res, err := s.Library.GetLibraryItems(ctx, operations.GetLibraryItemsRequest{
SectionKey: 9518,
Tag: operations.TagEdition,
IncludeGuids: operations.IncludeGuidsOne.ToPointer(),
IncludeMeta: operations.IncludeMetaOne.ToPointer(),
Type: operations.TypeTwo,
IncludeGuids: operations.IncludeGuidsEnable.ToPointer(),
IncludeMeta: operations.IncludeMetaEnable.ToPointer(),
Type: operations.TypeShow,
XPlexContainerStart: plexgo.Int(0),
XPlexContainerSize: plexgo.Int(50),
})
@@ -1356,9 +1356,9 @@ actions:
plexgo.WithSecurity("<YOUR_API_KEY_HERE>"),
plexgo.WithClientID("gcgzw5rz2xovp84b4vha3a40"),
plexgo.WithClientName("Plex Web"),
plexgo.WithDeviceName("Linux"),
plexgo.WithClientVersion("4.133.0"),
plexgo.WithXPlexPlatform("Chrome"),
plexgo.WithClientPlatform("Chrome"),
plexgo.WithDeviceName("Linux"),
)
ctx := context.Background()
@@ -1389,9 +1389,9 @@ actions:
plexgo.WithSecurity("<YOUR_API_KEY_HERE>"),
plexgo.WithClientID("gcgzw5rz2xovp84b4vha3a40"),
plexgo.WithClientName("Plex Web"),
plexgo.WithDeviceName("Linux"),
plexgo.WithClientVersion("4.133.0"),
plexgo.WithXPlexPlatform("Chrome"),
plexgo.WithClientPlatform("Chrome"),
plexgo.WithDeviceName("Linux"),
)
ctx := context.Background()
@@ -1424,9 +1424,9 @@ actions:
plexgo.WithSecurity("<YOUR_API_KEY_HERE>"),
plexgo.WithClientID("gcgzw5rz2xovp84b4vha3a40"),
plexgo.WithClientName("Plex Web"),
plexgo.WithDeviceName("Linux"),
plexgo.WithClientVersion("4.133.0"),
plexgo.WithXPlexPlatform("Chrome"),
plexgo.WithClientPlatform("Chrome"),
plexgo.WithDeviceName("Linux"),
)
ctx := context.Background()
@@ -1457,9 +1457,9 @@ actions:
plexgo.WithSecurity("<YOUR_API_KEY_HERE>"),
plexgo.WithClientID("gcgzw5rz2xovp84b4vha3a40"),
plexgo.WithClientName("Plex Web"),
plexgo.WithDeviceName("Linux"),
plexgo.WithClientVersion("4.133.0"),
plexgo.WithXPlexPlatform("Chrome"),
plexgo.WithClientPlatform("Chrome"),
plexgo.WithDeviceName("Linux"),
)
ctx := context.Background()
@@ -1490,9 +1490,9 @@ actions:
plexgo.WithSecurity("<YOUR_API_KEY_HERE>"),
plexgo.WithClientID("gcgzw5rz2xovp84b4vha3a40"),
plexgo.WithClientName("Plex Web"),
plexgo.WithDeviceName("Linux"),
plexgo.WithClientVersion("4.133.0"),
plexgo.WithXPlexPlatform("Chrome"),
plexgo.WithClientPlatform("Chrome"),
plexgo.WithDeviceName("Linux"),
)
ctx := context.Background()
@@ -1524,9 +1524,9 @@ actions:
plexgo.WithSecurity("<YOUR_API_KEY_HERE>"),
plexgo.WithClientID("gcgzw5rz2xovp84b4vha3a40"),
plexgo.WithClientName("Plex Web"),
plexgo.WithDeviceName("Linux"),
plexgo.WithClientVersion("4.133.0"),
plexgo.WithXPlexPlatform("Chrome"),
plexgo.WithClientPlatform("Chrome"),
plexgo.WithDeviceName("Linux"),
)
ctx := context.Background()
@@ -1534,7 +1534,7 @@ actions:
Width: 110,
Height: 165,
Opacity: 100,
Blur: 20,
Blur: 0,
MinSize: operations.MinSizeOne,
Upscale: operations.UpscaleOne,
URL: "/library/metadata/49564/thumb/1654258204",
@@ -1565,9 +1565,9 @@ actions:
s := plexgo.New(
plexgo.WithClientID("gcgzw5rz2xovp84b4vha3a40"),
plexgo.WithClientName("Plex Web"),
plexgo.WithDeviceName("Linux"),
plexgo.WithClientVersion("4.133.0"),
plexgo.WithXPlexPlatform("Chrome"),
plexgo.WithClientPlatform("Chrome"),
plexgo.WithDeviceName("Linux"),
)
ctx := context.Background()
@@ -1597,13 +1597,13 @@ actions:
s := plexgo.New(
plexgo.WithClientID("gcgzw5rz2xovp84b4vha3a40"),
plexgo.WithClientName("Plex Web"),
plexgo.WithDeviceName("Linux"),
plexgo.WithClientVersion("4.133.0"),
plexgo.WithXPlexPlatform("Chrome"),
plexgo.WithClientPlatform("Chrome"),
plexgo.WithDeviceName("Linux"),
)
ctx := context.Background()
res, err := s.Plex.GetTokenByPinID(ctx, 408895, plexgo.String("gcgzw5rz2xovp84b4vha3a40"))
res, err := s.Plex.GetTokenByPinID(ctx, 408895)
if err != nil {
log.Fatal(err)
}
@@ -1630,9 +1630,9 @@ actions:
plexgo.WithSecurity("<YOUR_API_KEY_HERE>"),
plexgo.WithClientID("gcgzw5rz2xovp84b4vha3a40"),
plexgo.WithClientName("Plex Web"),
plexgo.WithDeviceName("Linux"),
plexgo.WithClientVersion("4.133.0"),
plexgo.WithXPlexPlatform("Chrome"),
plexgo.WithClientPlatform("Chrome"),
plexgo.WithDeviceName("Linux"),
)
ctx := context.Background()
@@ -1664,9 +1664,9 @@ actions:
plexgo.WithSecurity("<YOUR_API_KEY_HERE>"),
plexgo.WithClientID("gcgzw5rz2xovp84b4vha3a40"),
plexgo.WithClientName("Plex Web"),
plexgo.WithDeviceName("Linux"),
plexgo.WithClientVersion("4.133.0"),
plexgo.WithXPlexPlatform("Chrome"),
plexgo.WithClientPlatform("Chrome"),
plexgo.WithDeviceName("Linux"),
)
ctx := context.Background()
@@ -1674,7 +1674,7 @@ actions:
Title: "<value>",
Type: operations.CreatePlaylistQueryParamTypePhoto,
Smart: operations.SmartOne,
URI: "https://inborn-brochure.biz",
URI: "https://hoarse-testing.info/",
})
if err != nil {
log.Fatal(err)
@@ -1703,13 +1703,13 @@ actions:
plexgo.WithSecurity("<YOUR_API_KEY_HERE>"),
plexgo.WithClientID("gcgzw5rz2xovp84b4vha3a40"),
plexgo.WithClientName("Plex Web"),
plexgo.WithDeviceName("Linux"),
plexgo.WithClientVersion("4.133.0"),
plexgo.WithXPlexPlatform("Chrome"),
plexgo.WithClientPlatform("Chrome"),
plexgo.WithDeviceName("Linux"),
)
ctx := context.Background()
res, err := s.Playlists.UploadPlaylist(ctx, "/home/barkley/playlist.m3u", operations.QueryParamForceZero)
res, err := s.Playlists.UploadPlaylist(ctx, "/home/barkley/playlist.m3u", operations.QueryParamForceZero, 1)
if err != nil {
log.Fatal(err)
}
@@ -1736,9 +1736,9 @@ actions:
plexgo.WithSecurity("<YOUR_API_KEY_HERE>"),
plexgo.WithClientID("gcgzw5rz2xovp84b4vha3a40"),
plexgo.WithClientName("Plex Web"),
plexgo.WithDeviceName("Linux"),
plexgo.WithClientVersion("4.133.0"),
plexgo.WithXPlexPlatform("Chrome"),
plexgo.WithClientPlatform("Chrome"),
plexgo.WithDeviceName("Linux"),
)
ctx := context.Background()
@@ -1769,9 +1769,9 @@ actions:
plexgo.WithSecurity("<YOUR_API_KEY_HERE>"),
plexgo.WithClientID("gcgzw5rz2xovp84b4vha3a40"),
plexgo.WithClientName("Plex Web"),
plexgo.WithDeviceName("Linux"),
plexgo.WithClientVersion("4.133.0"),
plexgo.WithXPlexPlatform("Chrome"),
plexgo.WithClientPlatform("Chrome"),
plexgo.WithDeviceName("Linux"),
)
ctx := context.Background()
@@ -1802,13 +1802,13 @@ actions:
plexgo.WithSecurity("<YOUR_API_KEY_HERE>"),
plexgo.WithClientID("gcgzw5rz2xovp84b4vha3a40"),
plexgo.WithClientName("Plex Web"),
plexgo.WithDeviceName("Linux"),
plexgo.WithClientVersion("4.133.0"),
plexgo.WithXPlexPlatform("Chrome"),
plexgo.WithClientPlatform("Chrome"),
plexgo.WithDeviceName("Linux"),
)
ctx := context.Background()
res, err := s.Playlists.UpdatePlaylist(ctx, 3915, nil, nil)
res, err := s.Playlists.UpdatePlaylist(ctx, 3915.00, nil, nil)
if err != nil {
log.Fatal(err)
}
@@ -1835,9 +1835,9 @@ actions:
plexgo.WithSecurity("<YOUR_API_KEY_HERE>"),
plexgo.WithClientID("gcgzw5rz2xovp84b4vha3a40"),
plexgo.WithClientName("Plex Web"),
plexgo.WithDeviceName("Linux"),
plexgo.WithClientVersion("4.133.0"),
plexgo.WithXPlexPlatform("Chrome"),
plexgo.WithClientPlatform("Chrome"),
plexgo.WithDeviceName("Linux"),
)
ctx := context.Background()
@@ -1869,13 +1869,13 @@ actions:
plexgo.WithSecurity("<YOUR_API_KEY_HERE>"),
plexgo.WithClientID("gcgzw5rz2xovp84b4vha3a40"),
plexgo.WithClientName("Plex Web"),
plexgo.WithDeviceName("Linux"),
plexgo.WithClientVersion("4.133.0"),
plexgo.WithXPlexPlatform("Chrome"),
plexgo.WithClientPlatform("Chrome"),
plexgo.WithDeviceName("Linux"),
)
ctx := context.Background()
res, err := s.Playlists.GetPlaylistContents(ctx, 5004.46, operations.GetPlaylistContentsQueryParamTypeTwo)
res, err := s.Playlists.GetPlaylistContents(ctx, 5004.46, operations.GetPlaylistContentsQueryParamTypeShow)
if err != nil {
log.Fatal(err)
}
@@ -1902,13 +1902,13 @@ actions:
plexgo.WithSecurity("<YOUR_API_KEY_HERE>"),
plexgo.WithClientID("gcgzw5rz2xovp84b4vha3a40"),
plexgo.WithClientName("Plex Web"),
plexgo.WithDeviceName("Linux"),
plexgo.WithClientVersion("4.133.0"),
plexgo.WithXPlexPlatform("Chrome"),
plexgo.WithClientPlatform("Chrome"),
plexgo.WithDeviceName("Linux"),
)
ctx := context.Background()
res, err := s.Playlists.AddPlaylistContents(ctx, 8502.01, "server://12345/com.plexapp.plugins.library/library/metadata/1", plexgo.Float64(123))
res, err := s.Playlists.AddPlaylistContents(ctx, 8502.00, "server://12345/com.plexapp.plugins.library/library/metadata/1", plexgo.Float64(123))
if err != nil {
log.Fatal(err)
}
@@ -1936,13 +1936,13 @@ actions:
plexgo.WithSecurity("<YOUR_API_KEY_HERE>"),
plexgo.WithClientID("gcgzw5rz2xovp84b4vha3a40"),
plexgo.WithClientName("Plex Web"),
plexgo.WithDeviceName("Linux"),
plexgo.WithClientVersion("4.133.0"),
plexgo.WithXPlexPlatform("Chrome"),
plexgo.WithClientPlatform("Chrome"),
plexgo.WithDeviceName("Linux"),
)
ctx := context.Background()
res, err := s.Plex.GetServerResources(ctx, plexgo.String("gcgzw5rz2xovp84b4vha3a40"), operations.IncludeHTTPSOne.ToPointer(), operations.IncludeRelayOne.ToPointer(), operations.IncludeIPv6One.ToPointer())
res, err := s.Plex.GetServerResources(ctx, operations.IncludeHTTPSEnable.ToPointer(), operations.IncludeRelayEnable.ToPointer(), operations.IncludeIPv6Enable.ToPointer())
if err != nil {
log.Fatal(err)
}
@@ -1969,9 +1969,9 @@ actions:
plexgo.WithSecurity("<YOUR_API_KEY_HERE>"),
plexgo.WithClientID("gcgzw5rz2xovp84b4vha3a40"),
plexgo.WithClientName("Plex Web"),
plexgo.WithDeviceName("Linux"),
plexgo.WithClientVersion("4.133.0"),
plexgo.WithXPlexPlatform("Chrome"),
plexgo.WithClientPlatform("Chrome"),
plexgo.WithDeviceName("Linux"),
)
ctx := context.Background()
@@ -2002,13 +2002,13 @@ actions:
plexgo.WithSecurity("<YOUR_API_KEY_HERE>"),
plexgo.WithClientID("gcgzw5rz2xovp84b4vha3a40"),
plexgo.WithClientName("Plex Web"),
plexgo.WithDeviceName("Linux"),
plexgo.WithClientVersion("4.133.0"),
plexgo.WithXPlexPlatform("Chrome"),
plexgo.WithClientPlatform("Chrome"),
plexgo.WithDeviceName("Linux"),
)
ctx := context.Background()
res, err := s.Authentication.GetSourceConnectionInformation(ctx, "server://client-identifier")
res, err := s.Authentication.GetSourceConnectionInformation(ctx, "provider://provider-identifier")
if err != nil {
log.Fatal(err)
}
@@ -2036,9 +2036,9 @@ actions:
plexgo.WithSecurity("<YOUR_API_KEY_HERE>"),
plexgo.WithClientID("gcgzw5rz2xovp84b4vha3a40"),
plexgo.WithClientName("Plex Web"),
plexgo.WithDeviceName("Linux"),
plexgo.WithClientVersion("4.133.0"),
plexgo.WithXPlexPlatform("Chrome"),
plexgo.WithClientPlatform("Chrome"),
plexgo.WithDeviceName("Linux"),
)
ctx := context.Background()
@@ -2069,9 +2069,9 @@ actions:
plexgo.WithSecurity("<YOUR_API_KEY_HERE>"),
plexgo.WithClientID("gcgzw5rz2xovp84b4vha3a40"),
plexgo.WithClientName("Plex Web"),
plexgo.WithDeviceName("Linux"),
plexgo.WithClientVersion("4.133.0"),
plexgo.WithXPlexPlatform("Chrome"),
plexgo.WithClientPlatform("Chrome"),
plexgo.WithDeviceName("Linux"),
)
ctx := context.Background()
@@ -2102,9 +2102,9 @@ actions:
plexgo.WithSecurity("<YOUR_API_KEY_HERE>"),
plexgo.WithClientID("gcgzw5rz2xovp84b4vha3a40"),
plexgo.WithClientName("Plex Web"),
plexgo.WithDeviceName("Linux"),
plexgo.WithClientVersion("4.133.0"),
plexgo.WithXPlexPlatform("Chrome"),
plexgo.WithClientPlatform("Chrome"),
plexgo.WithDeviceName("Linux"),
)
ctx := context.Background()
@@ -2135,9 +2135,9 @@ actions:
plexgo.WithSecurity("<YOUR_API_KEY_HERE>"),
plexgo.WithClientID("gcgzw5rz2xovp84b4vha3a40"),
plexgo.WithClientName("Plex Web"),
plexgo.WithDeviceName("Linux"),
plexgo.WithClientVersion("4.133.0"),
plexgo.WithXPlexPlatform("Chrome"),
plexgo.WithClientPlatform("Chrome"),
plexgo.WithDeviceName("Linux"),
)
ctx := context.Background()
@@ -2168,9 +2168,9 @@ actions:
plexgo.WithSecurity("<YOUR_API_KEY_HERE>"),
plexgo.WithClientID("gcgzw5rz2xovp84b4vha3a40"),
plexgo.WithClientName("Plex Web"),
plexgo.WithDeviceName("Linux"),
plexgo.WithClientVersion("4.133.0"),
plexgo.WithXPlexPlatform("Chrome"),
plexgo.WithClientPlatform("Chrome"),
plexgo.WithDeviceName("Linux"),
)
ctx := context.Background()
@@ -2201,9 +2201,9 @@ actions:
plexgo.WithSecurity("<YOUR_API_KEY_HERE>"),
plexgo.WithClientID("gcgzw5rz2xovp84b4vha3a40"),
plexgo.WithClientName("Plex Web"),
plexgo.WithDeviceName("Linux"),
plexgo.WithClientVersion("4.133.0"),
plexgo.WithXPlexPlatform("Chrome"),
plexgo.WithClientPlatform("Chrome"),
plexgo.WithDeviceName("Linux"),
)
ctx := context.Background()
@@ -2235,9 +2235,9 @@ actions:
plexgo.WithSecurity("<YOUR_API_KEY_HERE>"),
plexgo.WithClientID("gcgzw5rz2xovp84b4vha3a40"),
plexgo.WithClientName("Plex Web"),
plexgo.WithDeviceName("Linux"),
plexgo.WithClientVersion("4.133.0"),
plexgo.WithXPlexPlatform("Chrome"),
plexgo.WithClientPlatform("Chrome"),
plexgo.WithDeviceName("Linux"),
)
ctx := context.Background()
@@ -2268,9 +2268,9 @@ actions:
plexgo.WithSecurity("<YOUR_API_KEY_HERE>"),
plexgo.WithClientID("gcgzw5rz2xovp84b4vha3a40"),
plexgo.WithClientName("Plex Web"),
plexgo.WithDeviceName("Linux"),
plexgo.WithClientVersion("4.133.0"),
plexgo.WithXPlexPlatform("Chrome"),
plexgo.WithClientPlatform("Chrome"),
plexgo.WithDeviceName("Linux"),
)
ctx := context.Background()
@@ -2301,9 +2301,9 @@ actions:
plexgo.WithSecurity("<YOUR_API_KEY_HERE>"),
plexgo.WithClientID("gcgzw5rz2xovp84b4vha3a40"),
plexgo.WithClientName("Plex Web"),
plexgo.WithDeviceName("Linux"),
plexgo.WithClientVersion("4.133.0"),
plexgo.WithXPlexPlatform("Chrome"),
plexgo.WithClientPlatform("Chrome"),
plexgo.WithDeviceName("Linux"),
)
ctx := context.Background()
@@ -2335,9 +2335,9 @@ actions:
plexgo.WithSecurity("<YOUR_API_KEY_HERE>"),
plexgo.WithClientID("gcgzw5rz2xovp84b4vha3a40"),
plexgo.WithClientName("Plex Web"),
plexgo.WithDeviceName("Linux"),
plexgo.WithClientVersion("4.133.0"),
plexgo.WithXPlexPlatform("Chrome"),
plexgo.WithClientPlatform("Chrome"),
plexgo.WithDeviceName("Linux"),
)
ctx := context.Background()
@@ -2369,9 +2369,9 @@ actions:
plexgo.WithSecurity("<YOUR_API_KEY_HERE>"),
plexgo.WithClientID("gcgzw5rz2xovp84b4vha3a40"),
plexgo.WithClientName("Plex Web"),
plexgo.WithDeviceName("Linux"),
plexgo.WithClientVersion("4.133.0"),
plexgo.WithXPlexPlatform("Chrome"),
plexgo.WithClientPlatform("Chrome"),
plexgo.WithDeviceName("Linux"),
)
ctx := context.Background()
@@ -2402,9 +2402,9 @@ actions:
plexgo.WithSecurity("<YOUR_API_KEY_HERE>"),
plexgo.WithClientID("gcgzw5rz2xovp84b4vha3a40"),
plexgo.WithClientName("Plex Web"),
plexgo.WithDeviceName("Linux"),
plexgo.WithClientVersion("4.133.0"),
plexgo.WithXPlexPlatform("Chrome"),
plexgo.WithClientPlatform("Chrome"),
plexgo.WithDeviceName("Linux"),
)
ctx := context.Background()
@@ -2435,9 +2435,9 @@ actions:
plexgo.WithSecurity("<YOUR_API_KEY_HERE>"),
plexgo.WithClientID("gcgzw5rz2xovp84b4vha3a40"),
plexgo.WithClientName("Plex Web"),
plexgo.WithDeviceName("Linux"),
plexgo.WithClientVersion("4.133.0"),
plexgo.WithXPlexPlatform("Chrome"),
plexgo.WithClientPlatform("Chrome"),
plexgo.WithDeviceName("Linux"),
)
ctx := context.Background()
@@ -2468,13 +2468,13 @@ actions:
s := plexgo.New(
plexgo.WithClientID("gcgzw5rz2xovp84b4vha3a40"),
plexgo.WithClientName("Plex Web"),
plexgo.WithDeviceName("Linux"),
plexgo.WithClientVersion("4.133.0"),
plexgo.WithXPlexPlatform("Chrome"),
plexgo.WithClientPlatform("Chrome"),
plexgo.WithDeviceName("Linux"),
)
ctx := context.Background()
res, err := s.Authentication.PostUsersSignInData(ctx, plexgo.String("gcgzw5rz2xovp84b4vha3a40"), &operations.PostUsersSignInDataRequestBody{
res, err := s.Authentication.PostUsersSignInData(ctx, &operations.PostUsersSignInDataRequestBody{
Login: "username@email.com",
Password: "password123",
VerificationCode: plexgo.String("123456"),
@@ -2506,9 +2506,9 @@ actions:
plexgo.WithSecurity("<YOUR_API_KEY_HERE>"),
plexgo.WithClientID("gcgzw5rz2xovp84b4vha3a40"),
plexgo.WithClientName("Plex Web"),
plexgo.WithDeviceName("Linux"),
plexgo.WithClientVersion("4.133.0"),
plexgo.WithXPlexPlatform("Chrome"),
plexgo.WithClientPlatform("Chrome"),
plexgo.WithDeviceName("Linux"),
)
ctx := context.Background()

View File

@@ -5,7 +5,7 @@ The auto-select subtitle mode (0 = Manually selected, 1 = Shown with foreign aud
## Values
| Name | Value |
| ------------------------ | ------------------------ |
| `AutoSelectSubtitleZero` | 0 |
| `AutoSelectSubtitleOne` | 1 |
| Name | Value |
| --------------------------- | --------------------------- |
| `AutoSelectSubtitleDisable` | 0 |
| `AutoSelectSubtitleEnable` | 1 |

View File

@@ -3,12 +3,12 @@
## Fields
| Field | Type | Required | Description |
| ------------------ | ------------------ | ------------------ | ------------------ |
| `Protocol` | *string* | :heavy_check_mark: | N/A |
| `Address` | *string* | :heavy_check_mark: | N/A |
| `Port` | *float64* | :heavy_check_mark: | N/A |
| `URI` | *string* | :heavy_check_mark: | N/A |
| `Local` | *bool* | :heavy_check_mark: | N/A |
| `Relay` | *bool* | :heavy_check_mark: | N/A |
| `IPv6` | *bool* | :heavy_check_mark: | N/A |
| Field | Type | Required | Description |
| ---------------------------------------------------------- | ---------------------------------------------------------- | ---------------------------------------------------------- | ---------------------------------------------------------- |
| `Protocol` | [operations.Protocol](../../models/operations/protocol.md) | :heavy_check_mark: | The protocol used for the connection (http, https, etc) |
| `Address` | *string* | :heavy_check_mark: | The (ip) address or domain name used for the connection |
| `Port` | *int* | :heavy_check_mark: | The port used for the connection |
| `URI` | *string* | :heavy_check_mark: | The full URI of the connection |
| `Local` | *bool* | :heavy_check_mark: | If the connection is local address |
| `Relay` | *bool* | :heavy_check_mark: | If the connection is relayed through plex.direct |
| `IPv6` | *bool* | :heavy_check_mark: | If the connection is using IPv6 |

View File

@@ -1,11 +1,11 @@
# DefaultSubtitleAccessibility
The subtitles for the deaf or hard-of-hearing (SDH) searches mode (0 = Prefer non-SDH subtitles, 1 = Prefer SDH subtitles, 2 = Only show SDH subtitles, 3 = Only shown non-SDH subtitles)
The subtitles for the deaf or hard-of-hearing (SDH) searches mode (0 = Prefer non-SDH subtitles, 1 = Prefer SDH subtitles, 2 = Only show SDH subtitles, 3 = Only show non-SDH subtitles)
## Values
| Name | Value |
| ---------------------------------- | ---------------------------------- |
| `DefaultSubtitleAccessibilityZero` | 0 |
| `DefaultSubtitleAccessibilityOne` | 1 |
| Name | Value |
| ------------------------------------- | ------------------------------------- |
| `DefaultSubtitleAccessibilityDisable` | 0 |
| `DefaultSubtitleAccessibilityEnable` | 1 |

View File

@@ -5,7 +5,7 @@ The forced subtitles searches mode (0 = Prefer non-forced subtitles, 1 = Prefer
## Values
| Name | Value |
| --------------------------- | --------------------------- |
| `DefaultSubtitleForcedZero` | 0 |
| `DefaultSubtitleForcedOne` | 1 |
| Name | Value |
| ------------------------------ | ------------------------------ |
| `DefaultSubtitleForcedDisable` | 0 |
| `DefaultSubtitleForcedEnable` | 1 |

View File

@@ -13,7 +13,7 @@ Geo location data
| `City` | *string* | :heavy_check_mark: | The name of the city. | Amsterdam |
| `EuropeanUnionMember` | **bool* | :heavy_minus_sign: | Indicates if the country is a member of the European Union. | true |
| `TimeZone` | *string* | :heavy_check_mark: | The time zone of the country. | America/St_Thomas |
| `PostalCode` | *int64* | :heavy_check_mark: | The postal code of the location. | 802 |
| `PostalCode` | *string* | :heavy_check_mark: | The postal code of the location. | 802 |
| `InPrivacyRestrictedCountry` | **bool* | :heavy_minus_sign: | Indicates if the country has privacy restrictions. | true |
| `InPrivacyRestrictedRegion` | **bool* | :heavy_minus_sign: | Indicates if the region has privacy restrictions. | true |
| `Subdivisions` | *string* | :heavy_check_mark: | The name of the primary administrative subdivision. | Saint Thomas |

View File

@@ -5,24 +5,24 @@
| Field | Type | Required | Description | Example |
| ------------------------------------------------------------ | ------------------------------------------------------------ | ------------------------------------------------------------ | ------------------------------------------------------------ | ------------------------------------------------------------ |
| `AllowSync` | **bool* | :heavy_minus_sign: | N/A | true |
| `Art` | **string* | :heavy_minus_sign: | N/A | /:/resources/movie-fanart.jpg |
| `Composite` | **string* | :heavy_minus_sign: | N/A | /library/sections/1/composite/1705615584 |
| `Filters` | **bool* | :heavy_minus_sign: | N/A | true |
| `Refreshing` | **bool* | :heavy_minus_sign: | N/A | false |
| `Thumb` | **string* | :heavy_minus_sign: | N/A | /:/resources/movie.png |
| `Key` | **string* | :heavy_minus_sign: | N/A | 1 |
| `Type` | **string* | :heavy_minus_sign: | N/A | movie |
| `Title` | **string* | :heavy_minus_sign: | N/A | Movies |
| `Agent` | **string* | :heavy_minus_sign: | N/A | tv.plex.agents.movie |
| `Scanner` | **string* | :heavy_minus_sign: | N/A | Plex Movie |
| `Language` | **string* | :heavy_minus_sign: | N/A | en-US |
| `UUID` | **string* | :heavy_minus_sign: | N/A | 322a231a-b7f7-49f5-920f-14c61199cd30 |
| `UpdatedAt` | **int64* | :heavy_minus_sign: | Unix epoch datetime | 1556281940 |
| `CreatedAt` | **int64* | :heavy_minus_sign: | Unix epoch datetime | 1556281940 |
| `ScannedAt` | **int64* | :heavy_minus_sign: | Unix epoch datetime | 1556281940 |
| `Content` | **bool* | :heavy_minus_sign: | N/A | true |
| `Directory` | **bool* | :heavy_minus_sign: | N/A | true |
| `ContentChangedAt` | **int* | :heavy_minus_sign: | N/A | 3192854 |
| `Hidden` | **int* | :heavy_minus_sign: | N/A | 0 |
| `Location` | [][operations.Location](../../models/operations/location.md) | :heavy_minus_sign: | N/A | |
| `AllowSync` | *bool* | :heavy_check_mark: | N/A | true |
| `Art` | *string* | :heavy_check_mark: | N/A | /:/resources/movie-fanart.jpg |
| `Composite` | *string* | :heavy_check_mark: | N/A | /library/sections/1/composite/1705615584 |
| `Filters` | *bool* | :heavy_check_mark: | N/A | true |
| `Refreshing` | *bool* | :heavy_check_mark: | N/A | false |
| `Thumb` | *string* | :heavy_check_mark: | N/A | /:/resources/movie.png |
| `Key` | *string* | :heavy_check_mark: | N/A | 1 |
| `Type` | *string* | :heavy_check_mark: | N/A | movie |
| `Title` | *string* | :heavy_check_mark: | N/A | Movies |
| `Agent` | *string* | :heavy_check_mark: | N/A | tv.plex.agents.movie |
| `Scanner` | *string* | :heavy_check_mark: | N/A | Plex Movie |
| `Language` | *string* | :heavy_check_mark: | N/A | en-US |
| `UUID` | *string* | :heavy_check_mark: | N/A | 322a231a-b7f7-49f5-920f-14c61199cd30 |
| `UpdatedAt` | *int64* | :heavy_check_mark: | Unix epoch datetime in seconds | 1556281940 |
| `CreatedAt` | *int64* | :heavy_check_mark: | Unix epoch datetime in seconds | 1556281940 |
| `ScannedAt` | *int64* | :heavy_check_mark: | Unix epoch datetime in seconds | 1556281940 |
| `Content` | *bool* | :heavy_check_mark: | N/A | true |
| `Directory` | *bool* | :heavy_check_mark: | N/A | true |
| `ContentChangedAt` | *int* | :heavy_check_mark: | N/A | 3192854 |
| `Hidden` | *int* | :heavy_check_mark: | N/A | 0 |
| `Location` | [][operations.Location](../../models/operations/location.md) | :heavy_check_mark: | N/A | |

View File

@@ -8,4 +8,4 @@
| `Size` | *int* | :heavy_check_mark: | N/A | 5 |
| `AllowSync` | *bool* | :heavy_check_mark: | N/A | false |
| `Title1` | *string* | :heavy_check_mark: | N/A | Plex Library |
| `Directory` | [][operations.GetAllLibrariesDirectory](../../models/operations/getalllibrariesdirectory.md) | :heavy_minus_sign: | N/A | |
| `Directory` | [][operations.GetAllLibrariesDirectory](../../models/operations/getalllibrariesdirectory.md) | :heavy_check_mark: | N/A | |

View File

@@ -5,6 +5,6 @@ The libraries available on the Server
## Fields
| Field | Type | Required | Description |
| ----------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------- |
| `MediaContainer` | [*operations.GetAllLibrariesMediaContainer](../../models/operations/getalllibrariesmediacontainer.md) | :heavy_minus_sign: | N/A |
| Field | Type | Required | Description |
| ---------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------- |
| `MediaContainer` | [operations.GetAllLibrariesMediaContainer](../../models/operations/getalllibrariesmediacontainer.md) | :heavy_check_mark: | N/A |

View File

@@ -13,7 +13,7 @@ Geo location data
| `City` | *string* | :heavy_check_mark: | The name of the city. | Amsterdam |
| `EuropeanUnionMember` | **bool* | :heavy_minus_sign: | Indicates if the country is a member of the European Union. | true |
| `TimeZone` | *string* | :heavy_check_mark: | The time zone of the country. | America/St_Thomas |
| `PostalCode` | *int64* | :heavy_check_mark: | The postal code of the location. | 802 |
| `PostalCode` | *string* | :heavy_check_mark: | The postal code of the location. | 802 |
| `InPrivacyRestrictedCountry` | **bool* | :heavy_minus_sign: | Indicates if the country has privacy restrictions. | true |
| `InPrivacyRestrictedRegion` | **bool* | :heavy_minus_sign: | Indicates if the region has privacy restrictions. | true |
| `Subdivisions` | *string* | :heavy_check_mark: | The name of the primary administrative subdivision. | Saint Thomas |

View File

@@ -0,0 +1,11 @@
# GetLibraryItemsField
## Fields
| Field | Type | Required | Description | Example |
| ------------------ | ------------------ | ------------------ | ------------------ | ------------------ |
| `Key` | *string* | :heavy_check_mark: | N/A | show.title |
| `Title` | *string* | :heavy_check_mark: | N/A | Show Title |
| `Type` | *string* | :heavy_check_mark: | N/A | string |
| `SubType` | **string* | :heavy_minus_sign: | N/A | rating |

View File

@@ -0,0 +1,9 @@
# GetLibraryItemsFieldType
## Fields
| Field | Type | Required | Description | Example |
| ------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------ |
| `Type` | *string* | :heavy_check_mark: | N/A | tag |
| `Operator` | [][operations.GetLibraryItemsOperator](../../models/operations/getlibraryitemsoperator.md) | :heavy_check_mark: | N/A | |

View File

@@ -0,0 +1,12 @@
# GetLibraryItemsFilter
## Fields
| Field | Type | Required | Description | Example |
| -------------------------------- | -------------------------------- | -------------------------------- | -------------------------------- | -------------------------------- |
| `Filter` | *string* | :heavy_check_mark: | N/A | genre |
| `FilterType` | *string* | :heavy_check_mark: | N/A | string |
| `Key` | *string* | :heavy_check_mark: | N/A | /library/sections/2/genre?type=2 |
| `Title` | *string* | :heavy_check_mark: | N/A | Genre |
| `Type` | *string* | :heavy_check_mark: | N/A | filter |

View File

@@ -3,21 +3,22 @@
## Fields
| Field | Type | Required | Description | Example |
| ------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------ |
| `Size` | **int* | :heavy_minus_sign: | N/A | 70 |
| `AllowSync` | **bool* | :heavy_minus_sign: | N/A | true |
| `Art` | **string* | :heavy_minus_sign: | N/A | /:/resources/movie-fanart.jpg |
| `Identifier` | **string* | :heavy_minus_sign: | N/A | com.plexapp.plugins.library |
| `LibrarySectionID` | [*operations.LibrarySectionID](../../models/operations/librarysectionid.md) | :heavy_minus_sign: | N/A | |
| `LibrarySectionTitle` | **string* | :heavy_minus_sign: | N/A | Movies |
| `LibrarySectionUUID` | **string* | :heavy_minus_sign: | N/A | 322a231a-b7f7-49f5-920f-14c61199cd30 |
| `MediaTagPrefix` | **string* | :heavy_minus_sign: | N/A | /system/bundle/media/flags/ |
| `MediaTagVersion` | **int* | :heavy_minus_sign: | N/A | 1701731894 |
| `Thumb` | **string* | :heavy_minus_sign: | N/A | /:/resources/movie.png |
| `Title1` | **string* | :heavy_minus_sign: | N/A | Movies |
| `Title2` | **string* | :heavy_minus_sign: | N/A | Recently Released |
| `ViewGroup` | **string* | :heavy_minus_sign: | N/A | movie |
| `ViewMode` | **int* | :heavy_minus_sign: | N/A | 65592 |
| `MixedParents` | **bool* | :heavy_minus_sign: | N/A | true |
| `Metadata` | [][operations.GetLibraryItemsMetadata](../../models/operations/getlibraryitemsmetadata.md) | :heavy_minus_sign: | N/A | |
| Field | Type | Required | Description | Example |
| ----------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------- |
| `Size` | *int* | :heavy_check_mark: | N/A | 70 |
| `AllowSync` | *bool* | :heavy_check_mark: | N/A | true |
| `Art` | *string* | :heavy_check_mark: | N/A | /:/resources/movie-fanart.jpg |
| `Identifier` | *string* | :heavy_check_mark: | N/A | com.plexapp.plugins.library |
| `LibrarySectionID` | [operations.LibrarySectionID](../../models/operations/librarysectionid.md) | :heavy_check_mark: | N/A | |
| `LibrarySectionTitle` | *string* | :heavy_check_mark: | N/A | Movies |
| `LibrarySectionUUID` | *string* | :heavy_check_mark: | N/A | 322a231a-b7f7-49f5-920f-14c61199cd30 |
| `MediaTagPrefix` | *string* | :heavy_check_mark: | N/A | /system/bundle/media/flags/ |
| `MediaTagVersion` | *int* | :heavy_check_mark: | N/A | 1701731894 |
| `Thumb` | *string* | :heavy_check_mark: | N/A | /:/resources/movie.png |
| `Title1` | *string* | :heavy_check_mark: | N/A | Movies |
| `Title2` | *string* | :heavy_check_mark: | N/A | Recently Released |
| `ViewGroup` | *string* | :heavy_check_mark: | N/A | movie |
| `ViewMode` | **int* | :heavy_minus_sign: | N/A | 65592 |
| `MixedParents` | **bool* | :heavy_minus_sign: | N/A | true |
| `Metadata` | [][operations.GetLibraryItemsMetadata](../../models/operations/getlibraryitemsmetadata.md) | :heavy_minus_sign: | N/A | |
| `Meta` | [*operations.Meta](../../models/operations/meta.md) | :heavy_minus_sign: | The Meta object is only included in the response if the `includeMeta` parameter is set to `1`.<br/> | |

View File

@@ -5,21 +5,21 @@
| Field | Type | Required | Description | Example |
| ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `RatingKey` | **string* | :heavy_minus_sign: | N/A | 58683 |
| `Key` | **string* | :heavy_minus_sign: | N/A | /library/metadata/58683 |
| `GUID` | **string* | :heavy_minus_sign: | N/A | plex://movie/5d7768ba96b655001fdc0408 |
| `RatingKey` | *string* | :heavy_check_mark: | N/A | 58683 |
| `Key` | *string* | :heavy_check_mark: | N/A | /library/metadata/58683 |
| `GUID` | *string* | :heavy_check_mark: | N/A | plex://movie/5d7768ba96b655001fdc0408 |
| `Studio` | **string* | :heavy_minus_sign: | N/A | 20th Century Studios |
| `Type` | **string* | :heavy_minus_sign: | N/A | movie |
| `Title` | **string* | :heavy_minus_sign: | N/A | Avatar: The Way of Water |
| `Type` | *string* | :heavy_check_mark: | N/A | movie |
| `Title` | *string* | :heavy_check_mark: | N/A | Avatar: The Way of Water |
| `ContentRating` | **string* | :heavy_minus_sign: | N/A | PG-13 |
| `Summary` | **string* | :heavy_minus_sign: | N/A | Jake Sully lives with his newfound family formed on the extrasolar moon Pandora. Once a familiar threat returns to finish what was previously started, Jake must work with Neytiri and the army of the Na'vi race to protect their home. |
| `Rating` | **float64* | :heavy_minus_sign: | N/A | 7.6 |
| `AudienceRating` | **float64* | :heavy_minus_sign: | N/A | 9.2 |
| `Year` | **int* | :heavy_minus_sign: | N/A | 2022 |
| `Year` | *int* | :heavy_check_mark: | N/A | 2022 |
| `Tagline` | **string* | :heavy_minus_sign: | N/A | Return to Pandora. |
| `Thumb` | **string* | :heavy_minus_sign: | N/A | /library/metadata/58683/thumb/1703239236 |
| `Art` | **string* | :heavy_minus_sign: | N/A | /library/metadata/58683/art/1703239236 |
| `Duration` | **int* | :heavy_minus_sign: | N/A | 11558112 |
| `Duration` | *int* | :heavy_check_mark: | N/A | 11558112 |
| `OriginallyAvailableAt` | [*types.Date](../../types/date.md) | :heavy_minus_sign: | N/A | 2022-12-14 00:00:00 +0000 UTC |
| `AddedAt` | **int* | :heavy_minus_sign: | N/A | 1680457607 |
| `UpdatedAt` | **int* | :heavy_minus_sign: | N/A | 1703239236 |
@@ -34,12 +34,13 @@
| `GrandparentThumb` | **string* | :heavy_minus_sign: | N/A | /library/metadata/66/thumb/1705716261 |
| `GrandparentArt` | **string* | :heavy_minus_sign: | N/A | /library/metadata/66/art/1705716261 |
| `GrandparentTheme` | **string* | :heavy_minus_sign: | N/A | /library/metadata/66/theme/1705716261 |
| `Media` | [][operations.GetLibraryItemsMedia](../../models/operations/getlibraryitemsmedia.md) | :heavy_minus_sign: | N/A | |
| `Media` | [][operations.GetLibraryItemsMedia](../../models/operations/getlibraryitemsmedia.md) | :heavy_check_mark: | N/A | |
| `Genre` | [][operations.GetLibraryItemsGenre](../../models/operations/getlibraryitemsgenre.md) | :heavy_minus_sign: | N/A | |
| `Country` | [][operations.GetLibraryItemsCountry](../../models/operations/getlibraryitemscountry.md) | :heavy_minus_sign: | N/A | |
| `Director` | [][operations.GetLibraryItemsDirector](../../models/operations/getlibraryitemsdirector.md) | :heavy_minus_sign: | N/A | |
| `Writer` | [][operations.GetLibraryItemsWriter](../../models/operations/getlibraryitemswriter.md) | :heavy_minus_sign: | N/A | |
| `Role` | [][operations.GetLibraryItemsRole](../../models/operations/getlibraryitemsrole.md) | :heavy_minus_sign: | N/A | |
| `MediaGUID` | [][operations.MediaGUID](../../models/operations/mediaguid.md) | :heavy_minus_sign: | The Guid object is only included in the response if the `includeGuids` parameter is set to `1`.<br/> | |
| `TitleSort` | **string* | :heavy_minus_sign: | N/A | Whale |
| `ViewCount` | **int* | :heavy_minus_sign: | N/A | 1 |
| `LastViewedAt` | **int* | :heavy_minus_sign: | N/A | 1682752242 |

View File

@@ -0,0 +1,9 @@
# GetLibraryItemsOperator
## Fields
| Field | Type | Required | Description | Example |
| ------------------ | ------------------ | ------------------ | ------------------ | ------------------ |
| `Key` | *string* | :heavy_check_mark: | N/A | = |
| `Title` | *string* | :heavy_check_mark: | N/A | is |

View File

@@ -0,0 +1,13 @@
# GetLibraryItemsSort
## Fields
| Field | Type | Required | Description | Example |
| ---------------------------------- | ---------------------------------- | ---------------------------------- | ---------------------------------- | ---------------------------------- |
| `Default` | **string* | :heavy_minus_sign: | N/A | asc |
| `DefaultDirection` | *string* | :heavy_check_mark: | N/A | asc |
| `DescKey` | **string* | :heavy_minus_sign: | N/A | titleSort:desc |
| `FirstCharacterKey` | **string* | :heavy_minus_sign: | N/A | /library/sections/2/firstCharacter |
| `Key` | *string* | :heavy_check_mark: | N/A | titleSort |
| `Title` | *string* | :heavy_check_mark: | N/A | Title |

View File

@@ -0,0 +1,14 @@
# GetLibraryItemsType
## Fields
| Field | Type | Required | Description | Example |
| -------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------- |
| `Key` | *string* | :heavy_check_mark: | N/A | /library/sections/2/all?type=2 |
| `Type` | *string* | :heavy_check_mark: | N/A | show |
| `Title` | *string* | :heavy_check_mark: | N/A | TV Shows |
| `Active` | *bool* | :heavy_check_mark: | N/A | false |
| `Filter` | [][operations.GetLibraryItemsFilter](../../models/operations/getlibraryitemsfilter.md) | :heavy_minus_sign: | N/A | |
| `Sort` | [][operations.GetLibraryItemsSort](../../models/operations/getlibraryitemssort.md) | :heavy_minus_sign: | N/A | |
| `Field` | [][operations.GetLibraryItemsField](../../models/operations/getlibraryitemsfield.md) | :heavy_minus_sign: | N/A | |

View File

@@ -9,13 +9,13 @@ Requests a new pin id used in the authentication flow
| ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `ID` | *int64* | :heavy_check_mark: | N/A | 308667304 |
| `Code` | *string* | :heavy_check_mark: | N/A | 7RQZ |
| `Product` | *string* | :heavy_check_mark: | N/A | 0 |
| `Product` | *string* | :heavy_check_mark: | N/A | Tautulli |
| `Trusted` | **bool* | :heavy_minus_sign: | N/A | |
| `Qr` | *string* | :heavy_check_mark: | N/A | https://plex.tv/api/v2/pins/qr/7RQZ |
| `ClientIdentifier` | *string* | :heavy_check_mark: | The X-Client-Identifier used in the request | |
| `ClientIdentifier` | *string* | :heavy_check_mark: | The X-Client-Identifier used in the request | Tautulli |
| `Location` | [operations.GeoData](../../models/operations/geodata.md) | :heavy_check_mark: | Geo location data | {<br/>"code": "VI",<br/>"continent_code": "NA",<br/>"country": "United States Virgin Islands",<br/>"city": "Amsterdam",<br/>"european_union_member": true,<br/>"time_zone": "America/St_Thomas",<br/>"postal_code": 802,<br/>"in_privacy_restricted_country": true,<br/>"in_privacy_restricted_region": true,<br/>"subdivisions": "Saint Thomas",<br/>"coordinates": "18.3381, -64.8941"<br/>} |
| `ExpiresIn` | **int64* | :heavy_minus_sign: | The number of seconds this pin expires, by default 900 seconds | 876 |
| `CreatedAt` | [time.Time](https://pkg.go.dev/time#Time) | :heavy_check_mark: | N/A | 2024-07-16T17:03:05Z |
| `ExpiresAt` | [time.Time](https://pkg.go.dev/time#Time) | :heavy_check_mark: | N/A | 2024-07-16T17:18:05Z |
| `AuthToken` | *any* | :heavy_minus_sign: | N/A | |
| `AuthToken` | **string* | :heavy_minus_sign: | N/A | gcgzw5rz2xovp84b4vha3a40 |
| `NewRegistration` | *any* | :heavy_minus_sign: | N/A | |

View File

@@ -3,10 +3,9 @@
## Fields
| Field | Type | Required | Description | Example |
| --------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `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 |
| Field | Type | Required | Description | Example |
| ------------------ | ------------------ | ------------------ | ------------------ | ------------------ |
| `ClientName` | **string* | :heavy_minus_sign: | N/A | Plex Web |
| `DeviceName` | **string* | :heavy_minus_sign: | N/A | Linux |
| `ClientVersion` | **string* | :heavy_minus_sign: | N/A | 4.133.0 |
| `ClientPlatform` | **string* | :heavy_minus_sign: | N/A | Chrome |

View File

@@ -3,11 +3,10 @@
## Fields
| 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/> | |
| `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 |
| 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/> | |
| `ClientName` | **string* | :heavy_minus_sign: | N/A | Plex Web |
| `DeviceName` | **string* | :heavy_minus_sign: | N/A | Linux |
| `ClientVersion` | **string* | :heavy_minus_sign: | N/A | 4.133.0 |
| `ClientPlatform` | **string* | :heavy_minus_sign: | N/A | Chrome |

View File

@@ -11,9 +11,9 @@ E.g. A movie library will not return anything with type 3 as there are no season
## Values
| Name | Value |
| ---------------------------------------- | ---------------------------------------- |
| `GetPlaylistContentsQueryParamTypeOne` | 1 |
| `GetPlaylistContentsQueryParamTypeTwo` | 2 |
| `GetPlaylistContentsQueryParamTypeThree` | 3 |
| `GetPlaylistContentsQueryParamTypeFour` | 4 |
| Name | Value |
| ------------------------------------------ | ------------------------------------------ |
| `GetPlaylistContentsQueryParamTypeMovie` | 1 |
| `GetPlaylistContentsQueryParamTypeShow` | 2 |
| `GetPlaylistContentsQueryParamTypeSeason` | 3 |
| `GetPlaylistContentsQueryParamTypeEpisode` | 4 |

View File

@@ -1,8 +0,0 @@
# GetServerResourcesGlobals
## Fields
| Field | Type | Required | Description | Example |
| --------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `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

@@ -3,9 +3,8 @@
## Fields
| Field | Type | Required | Description | Example |
| --------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `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 |
| Field | Type | Required | Description | Example |
| ------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------ |
| `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

@@ -9,13 +9,13 @@ The Pin with a non-null authToken when it has been verified by the user
| ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `ID` | *int64* | :heavy_check_mark: | N/A | 308667304 |
| `Code` | *string* | :heavy_check_mark: | N/A | 7RQZ |
| `Product` | *string* | :heavy_check_mark: | N/A | 0 |
| `Product` | *string* | :heavy_check_mark: | N/A | Tautulli |
| `Trusted` | **bool* | :heavy_minus_sign: | N/A | |
| `Qr` | *string* | :heavy_check_mark: | N/A | https://plex.tv/api/v2/pins/qr/7RQZ |
| `ClientIdentifier` | *string* | :heavy_check_mark: | The X-Client-Identifier used in the request | |
| `ClientIdentifier` | *string* | :heavy_check_mark: | The X-Client-Identifier used in the request | Tautulli |
| `Location` | [operations.GetTokenByPinIDGeoData](../../models/operations/gettokenbypinidgeodata.md) | :heavy_check_mark: | Geo location data | {<br/>"code": "VI",<br/>"continent_code": "NA",<br/>"country": "United States Virgin Islands",<br/>"city": "Amsterdam",<br/>"european_union_member": true,<br/>"time_zone": "America/St_Thomas",<br/>"postal_code": 802,<br/>"in_privacy_restricted_country": true,<br/>"in_privacy_restricted_region": true,<br/>"subdivisions": "Saint Thomas",<br/>"coordinates": "18.3381, -64.8941"<br/>} |
| `ExpiresIn` | **int64* | :heavy_minus_sign: | The number of seconds this pin expires, by default 900 seconds | 876 |
| `CreatedAt` | [time.Time](https://pkg.go.dev/time#Time) | :heavy_check_mark: | N/A | 2024-07-16T17:03:05Z |
| `ExpiresAt` | [time.Time](https://pkg.go.dev/time#Time) | :heavy_check_mark: | N/A | 2024-07-16T17:18:05Z |
| `AuthToken` | *any* | :heavy_minus_sign: | N/A | |
| `AuthToken` | **string* | :heavy_minus_sign: | N/A | gcgzw5rz2xovp84b4vha3a40 |
| `NewRegistration` | *any* | :heavy_minus_sign: | N/A | |

View File

@@ -13,7 +13,7 @@ Geo location data
| `City` | *string* | :heavy_check_mark: | The name of the city. | Amsterdam |
| `EuropeanUnionMember` | **bool* | :heavy_minus_sign: | Indicates if the country is a member of the European Union. | true |
| `TimeZone` | *string* | :heavy_check_mark: | The time zone of the country. | America/St_Thomas |
| `PostalCode` | *int64* | :heavy_check_mark: | The postal code of the location. | 802 |
| `PostalCode` | *string* | :heavy_check_mark: | The postal code of the location. | 802 |
| `InPrivacyRestrictedCountry` | **bool* | :heavy_minus_sign: | Indicates if the country has privacy restrictions. | true |
| `InPrivacyRestrictedRegion` | **bool* | :heavy_minus_sign: | Indicates if the region has privacy restrictions. | true |
| `Subdivisions` | *string* | :heavy_check_mark: | The name of the primary administrative subdivision. | Saint Thomas |

View File

@@ -1,8 +0,0 @@
# GetTokenByPinIDGlobals
## Fields
| Field | Type | Required | Description | Example |
| --------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `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

@@ -3,7 +3,6 @@
## Fields
| Field | Type | Required | Description | Example |
| --------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `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 | |
| Field | Type | Required | Description |
| ----------------------------------------- | ----------------------------------------- | ----------------------------------------- | ----------------------------------------- |
| `PinID` | *int64* | :heavy_check_mark: | The PinID to retrieve an access token for |

View File

@@ -26,7 +26,7 @@ Logged in user details
| `HomeAdmin` | **bool* | :heavy_minus_sign: | If the account is the Plex Home admin | |
| `HomeSize` | *int* | :heavy_check_mark: | The number of accounts in the Plex Home | 1 |
| `ID` | *int* | :heavy_check_mark: | The Plex account ID | 13692262 |
| `JoinedAt` | *int64* | :heavy_check_mark: | Unix epoch datetime | 1556281940 |
| `JoinedAt` | *int64* | :heavy_check_mark: | Unix epoch datetime in seconds | 1556281940 |
| `Locale` | *string* | :heavy_check_mark: | The account locale | |
| `MailingListActive` | **bool* | :heavy_minus_sign: | If you are subscribed to the Plex newsletter | |
| `MailingListStatus` | [operations.MailingListStatus](../../models/operations/mailingliststatus.md) | :heavy_check_mark: | Your current mailing list status | |
@@ -34,7 +34,7 @@ Logged in user details
| ~~`Pin`~~ | **string* | :heavy_minus_sign: | : warning: ** DEPRECATED **: This will be removed in a future release, please migrate away from it as soon as possible.<br/><br/>[Might be removed] The hashed Plex Home PIN | |
| `Profile` | [operations.UserProfile](../../models/operations/userprofile.md) | :heavy_check_mark: | N/A | |
| `Protected` | **bool* | :heavy_minus_sign: | If the account has a Plex Home PIN enabled | |
| `RememberExpiresAt` | *int64* | :heavy_check_mark: | Unix epoch datetime | 1556281940 |
| `RememberExpiresAt` | *int64* | :heavy_check_mark: | Unix epoch datetime in seconds | 1556281940 |
| `Restricted` | **bool* | :heavy_minus_sign: | If the account is a Plex Home managed user | |
| `Roles` | []*string* | :heavy_minus_sign: | [Might be removed] List of account roles. Plexpass membership listed here | |
| `ScrobbleTypes` | *string* | :heavy_check_mark: | Unknown | |

View File

@@ -11,9 +11,9 @@ E.g. A movie library will not return anything with type 3 as there are no season
## Values
| Name | Value |
| ----------------------------------------- | ----------------------------------------- |
| `GetTopWatchedContentQueryParamTypeOne` | 1 |
| `GetTopWatchedContentQueryParamTypeTwo` | 2 |
| `GetTopWatchedContentQueryParamTypeThree` | 3 |
| `GetTopWatchedContentQueryParamTypeFour` | 4 |
| Name | Value |
| ------------------------------------------- | ------------------------------------------- |
| `GetTopWatchedContentQueryParamTypeMovie` | 1 |
| `GetTopWatchedContentQueryParamTypeShow` | 2 |
| `GetTopWatchedContentQueryParamTypeSeason` | 3 |
| `GetTopWatchedContentQueryParamTypeEpisode` | 4 |

View File

@@ -6,7 +6,7 @@ Adds the Guids object to the response
## Values
| Name | Value |
| ------------------ | ------------------ |
| `IncludeGuidsZero` | 0 |
| `IncludeGuidsOne` | 1 |
| Name | Value |
| --------------------- | --------------------- |
| `IncludeGuidsDisable` | 0 |
| `IncludeGuidsEnable` | 1 |

View File

@@ -5,7 +5,7 @@ Include Https entries in the results
## Values
| Name | Value |
| ------------------ | ------------------ |
| `IncludeHTTPSZero` | 0 |
| `IncludeHTTPSOne` | 1 |
| Name | Value |
| --------------------- | --------------------- |
| `IncludeHTTPSDisable` | 0 |
| `IncludeHTTPSEnable` | 1 |

View File

@@ -5,7 +5,7 @@ Include IPv6 entries in the results
## Values
| Name | Value |
| ----------------- | ----------------- |
| `IncludeIPv6Zero` | 0 |
| `IncludeIPv6One` | 1 |
| Name | Value |
| -------------------- | -------------------- |
| `IncludeIPv6Disable` | 0 |
| `IncludeIPv6Enable` | 1 |

View File

@@ -6,7 +6,7 @@ Adds the Meta object to the response
## Values
| Name | Value |
| ----------------- | ----------------- |
| `IncludeMetaZero` | 0 |
| `IncludeMetaOne` | 1 |
| Name | Value |
| -------------------- | -------------------- |
| `IncludeMetaDisable` | 0 |
| `IncludeMetaEnable` | 1 |

View File

@@ -7,7 +7,7 @@ E.g: https://10-0-0-25.bbf8e10c7fa20447cacee74cd9914cde.plex.direct:32400
## Values
| Name | Value |
| ------------------ | ------------------ |
| `IncludeRelayZero` | 0 |
| `IncludeRelayOne` | 1 |
| Name | Value |
| --------------------- | --------------------- |
| `IncludeRelayDisable` | 0 |
| `IncludeRelayEnable` | 1 |

View File

@@ -5,5 +5,5 @@
| Field | Type | Required | Description | Example |
| ------------------ | ------------------ | ------------------ | ------------------ | ------------------ |
| `ID` | **int* | :heavy_minus_sign: | N/A | 1 |
| `Path` | **string* | :heavy_minus_sign: | N/A | /movies |
| `ID` | *int* | :heavy_check_mark: | N/A | 1 |
| `Path` | *string* | :heavy_check_mark: | N/A | /movies |

View File

@@ -0,0 +1,8 @@
# MediaGUID
## Fields
| Field | Type | Required | Description | Example |
| --------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------- |
| `ID` | *string* | :heavy_check_mark: | Can be one of the following formats:<br/>imdb://tt13015952, tmdb://2434012, tvdb://7945991<br/> | imdb://tt13015952 |

View File

@@ -1,9 +1,11 @@
# MediaReviewsVisibility
Whether or not the account has media reviews visibility enabled
## Values
| Name | Value |
| ---------------------------- | ---------------------------- |
| `MediaReviewsVisibilityZero` | 0 |
| `MediaReviewsVisibilityOne` | 1 |
| Name | Value |
| ------------------------------- | ------------------------------- |
| `MediaReviewsVisibilityDisable` | 0 |
| `MediaReviewsVisibilityEnable` | 1 |

View File

@@ -0,0 +1,12 @@
# Meta
The Meta object is only included in the response if the `includeMeta` parameter is set to `1`.
## Fields
| Field | Type | Required | Description |
| -------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------- |
| `Type` | [][operations.GetLibraryItemsType](../../models/operations/getlibraryitemstype.md) | :heavy_minus_sign: | N/A |
| `FieldType` | [][operations.GetLibraryItemsFieldType](../../models/operations/getlibraryitemsfieldtype.md) | :heavy_minus_sign: | N/A |

View File

@@ -3,29 +3,29 @@
## Fields
| Field | Type | Required | Description |
| ------------------------------------------------------------------------------ | ------------------------------------------------------------------------------ | ------------------------------------------------------------------------------ | ------------------------------------------------------------------------------ |
| `Name` | *string* | :heavy_check_mark: | N/A |
| `Product` | *string* | :heavy_check_mark: | N/A |
| `ProductVersion` | *string* | :heavy_check_mark: | N/A |
| `Platform` | *string* | :heavy_check_mark: | N/A |
| `PlatformVersion` | *string* | :heavy_check_mark: | N/A |
| `Device` | *string* | :heavy_check_mark: | N/A |
| `ClientIdentifier` | *string* | :heavy_check_mark: | N/A |
| `CreatedAt` | [time.Time](https://pkg.go.dev/time#Time) | :heavy_check_mark: | N/A |
| `LastSeenAt` | [time.Time](https://pkg.go.dev/time#Time) | :heavy_check_mark: | N/A |
| `Provides` | *string* | :heavy_check_mark: | N/A |
| `OwnerID` | *int64* | :heavy_check_mark: | ownerId is null when the device is owned by the token used to send the request |
| `SourceTitle` | *string* | :heavy_check_mark: | N/A |
| `PublicAddress` | *string* | :heavy_check_mark: | N/A |
| `AccessToken` | *string* | :heavy_check_mark: | N/A |
| `Owned` | *bool* | :heavy_check_mark: | N/A |
| `Home` | *bool* | :heavy_check_mark: | N/A |
| `Synced` | *bool* | :heavy_check_mark: | N/A |
| `Relay` | *bool* | :heavy_check_mark: | N/A |
| `Presence` | *bool* | :heavy_check_mark: | N/A |
| `HTTPSRequired` | *bool* | :heavy_check_mark: | N/A |
| `PublicAddressMatches` | *bool* | :heavy_check_mark: | N/A |
| `DNSRebindingProtection` | *bool* | :heavy_check_mark: | N/A |
| `NatLoopbackSupported` | *bool* | :heavy_check_mark: | N/A |
| `Connections` | [][operations.Connections](../../models/operations/connections.md) | :heavy_check_mark: | N/A |
| Field | Type | Required | Description | Example |
| ------------------------------------------------------------------------------ | ------------------------------------------------------------------------------ | ------------------------------------------------------------------------------ | ------------------------------------------------------------------------------ | ------------------------------------------------------------------------------ |
| `Name` | *string* | :heavy_check_mark: | N/A | |
| `Product` | *string* | :heavy_check_mark: | N/A | |
| `ProductVersion` | *string* | :heavy_check_mark: | N/A | |
| `Platform` | *string* | :heavy_check_mark: | N/A | |
| `PlatformVersion` | *string* | :heavy_check_mark: | N/A | |
| `Device` | *string* | :heavy_check_mark: | N/A | |
| `ClientIdentifier` | *string* | :heavy_check_mark: | N/A | |
| `CreatedAt` | [time.Time](https://pkg.go.dev/time#Time) | :heavy_check_mark: | N/A | 2019-06-24T11:38:02Z |
| `LastSeenAt` | [time.Time](https://pkg.go.dev/time#Time) | :heavy_check_mark: | N/A | 2019-06-24T11:38:02Z |
| `Provides` | *string* | :heavy_check_mark: | N/A | |
| `OwnerID` | *int64* | :heavy_check_mark: | ownerId is null when the device is owned by the token used to send the request | |
| `SourceTitle` | *string* | :heavy_check_mark: | N/A | |
| `PublicAddress` | *string* | :heavy_check_mark: | N/A | |
| `AccessToken` | *string* | :heavy_check_mark: | N/A | |
| `Owned` | *bool* | :heavy_check_mark: | N/A | |
| `Home` | *bool* | :heavy_check_mark: | N/A | |
| `Synced` | *bool* | :heavy_check_mark: | N/A | |
| `Relay` | *bool* | :heavy_check_mark: | N/A | |
| `Presence` | *bool* | :heavy_check_mark: | N/A | |
| `HTTPSRequired` | *bool* | :heavy_check_mark: | N/A | |
| `PublicAddressMatches` | *bool* | :heavy_check_mark: | N/A | |
| `DNSRebindingProtection` | *bool* | :heavy_check_mark: | N/A | |
| `NatLoopbackSupported` | *bool* | :heavy_check_mark: | N/A | |
| `Connections` | [][operations.Connections](../../models/operations/connections.md) | :heavy_check_mark: | N/A | |

View File

@@ -5,7 +5,7 @@ The auto-select subtitle mode (0 = Manually selected, 1 = Shown with foreign aud
## Values
| Name | Value |
| ------------------------------------------- | ------------------------------------------- |
| `PostUsersSignInDataAutoSelectSubtitleZero` | 0 |
| `PostUsersSignInDataAutoSelectSubtitleOne` | 1 |
| Name | Value |
| ---------------------------------------------- | ---------------------------------------------- |
| `PostUsersSignInDataAutoSelectSubtitleDisable` | 0 |
| `PostUsersSignInDataAutoSelectSubtitleEnable` | 1 |

View File

@@ -1,11 +1,11 @@
# PostUsersSignInDataDefaultSubtitleAccessibility
The subtitles for the deaf or hard-of-hearing (SDH) searches mode (0 = Prefer non-SDH subtitles, 1 = Prefer SDH subtitles, 2 = Only show SDH subtitles, 3 = Only shown non-SDH subtitles)
The subtitles for the deaf or hard-of-hearing (SDH) searches mode (0 = Prefer non-SDH subtitles, 1 = Prefer SDH subtitles, 2 = Only show SDH subtitles, 3 = Only show non-SDH subtitles)
## Values
| Name | Value |
| ----------------------------------------------------- | ----------------------------------------------------- |
| `PostUsersSignInDataDefaultSubtitleAccessibilityZero` | 0 |
| `PostUsersSignInDataDefaultSubtitleAccessibilityOne` | 1 |
| Name | Value |
| -------------------------------------------------------- | -------------------------------------------------------- |
| `PostUsersSignInDataDefaultSubtitleAccessibilityDisable` | 0 |
| `PostUsersSignInDataDefaultSubtitleAccessibilityEnable` | 1 |

View File

@@ -5,7 +5,7 @@ The forced subtitles searches mode (0 = Prefer non-forced subtitles, 1 = Prefer
## Values
| Name | Value |
| ---------------------------------------------- | ---------------------------------------------- |
| `PostUsersSignInDataDefaultSubtitleForcedZero` | 0 |
| `PostUsersSignInDataDefaultSubtitleForcedOne` | 1 |
| Name | Value |
| ------------------------------------------------- | ------------------------------------------------- |
| `PostUsersSignInDataDefaultSubtitleForcedDisable` | 0 |
| `PostUsersSignInDataDefaultSubtitleForcedEnable` | 1 |

View File

@@ -1,8 +0,0 @@
# PostUsersSignInDataGlobals
## Fields
| Field | Type | Required | Description | Example |
| --------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `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

@@ -1,9 +1,11 @@
# PostUsersSignInDataMediaReviewsVisibility
Whether or not the account has media reviews visibility enabled
## Values
| Name | Value |
| ----------------------------------------------- | ----------------------------------------------- |
| `PostUsersSignInDataMediaReviewsVisibilityZero` | 0 |
| `PostUsersSignInDataMediaReviewsVisibilityOne` | 1 |
| Name | Value |
| -------------------------------------------------- | -------------------------------------------------- |
| `PostUsersSignInDataMediaReviewsVisibilityDisable` | 0 |
| `PostUsersSignInDataMediaReviewsVisibilityEnable` | 1 |

View File

@@ -1,9 +0,0 @@
# PostUsersSignInDataRequest
## Fields
| Field | Type | Required | Description | Example |
| --------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `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

@@ -26,7 +26,7 @@ Returns the user account data with a valid auth token
| `HomeAdmin` | **bool* | :heavy_minus_sign: | If the account is the Plex Home admin | |
| `HomeSize` | *int* | :heavy_check_mark: | The number of accounts in the Plex Home | 1 |
| `ID` | *int* | :heavy_check_mark: | The Plex account ID | 13692262 |
| `JoinedAt` | *int64* | :heavy_check_mark: | Unix epoch datetime | 1556281940 |
| `JoinedAt` | *int64* | :heavy_check_mark: | Unix epoch datetime in seconds | 1556281940 |
| `Locale` | *string* | :heavy_check_mark: | The account locale | |
| `MailingListActive` | **bool* | :heavy_minus_sign: | If you are subscribed to the Plex newsletter | |
| `MailingListStatus` | [operations.PostUsersSignInDataMailingListStatus](../../models/operations/postuserssignindatamailingliststatus.md) | :heavy_check_mark: | Your current mailing list status | |
@@ -34,7 +34,7 @@ Returns the user account data with a valid auth token
| ~~`Pin`~~ | **string* | :heavy_minus_sign: | : warning: ** DEPRECATED **: This will be removed in a future release, please migrate away from it as soon as possible.<br/><br/>[Might be removed] The hashed Plex Home PIN | |
| `Profile` | [operations.PostUsersSignInDataUserProfile](../../models/operations/postuserssignindatauserprofile.md) | :heavy_check_mark: | N/A | |
| `Protected` | **bool* | :heavy_minus_sign: | If the account has a Plex Home PIN enabled | |
| `RememberExpiresAt` | *int64* | :heavy_check_mark: | Unix epoch datetime | 1556281940 |
| `RememberExpiresAt` | *int64* | :heavy_check_mark: | Unix epoch datetime in seconds | 1556281940 |
| `Restricted` | **bool* | :heavy_minus_sign: | If the account is a Plex Home managed user | |
| `Roles` | []*string* | :heavy_minus_sign: | [Might be removed] List of account roles. Plexpass membership listed here | |
| `ScrobbleTypes` | *string* | :heavy_check_mark: | Unknown | |

View File

@@ -3,13 +3,13 @@
## Fields
| Field | Type | Required | Description | Example |
| ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `AutoSelectAudio` | **bool* | :heavy_minus_sign: | If the account has automatically select audio and subtitle tracks enabled | true |
| `DefaultAudioLanguage` | *string* | :heavy_check_mark: | The preferred audio language for the account | ja |
| `DefaultSubtitleLanguage` | *string* | :heavy_check_mark: | The preferred subtitle language for the account | en |
| `AutoSelectSubtitle` | [*operations.PostUsersSignInDataAutoSelectSubtitle](../../models/operations/postuserssignindataautoselectsubtitle.md) | :heavy_minus_sign: | The auto-select subtitle mode (0 = Manually selected, 1 = Shown with foreign audio, 2 = Always enabled) | 1 |
| `DefaultSubtitleAccessibility` | [*operations.PostUsersSignInDataDefaultSubtitleAccessibility](../../models/operations/postuserssignindatadefaultsubtitleaccessibility.md) | :heavy_minus_sign: | The subtitles for the deaf or hard-of-hearing (SDH) searches mode (0 = Prefer non-SDH subtitles, 1 = Prefer SDH subtitles, 2 = Only show SDH subtitles, 3 = Only shown non-SDH subtitles) | 1 |
| `DefaultSubtitleForced` | [*operations.PostUsersSignInDataDefaultSubtitleForced](../../models/operations/postuserssignindatadefaultsubtitleforced.md) | :heavy_minus_sign: | The forced subtitles searches mode (0 = Prefer non-forced subtitles, 1 = Prefer forced subtitles, 2 = Only show forced subtitles, 3 = Only show non-forced subtitles) | 0 |
| `WatchedIndicator` | [*operations.PostUsersSignInDataWatchedIndicator](../../models/operations/postuserssignindatawatchedindicator.md) | :heavy_minus_sign: | N/A | 1 |
| `MediaReviewsVisibility` | [*operations.PostUsersSignInDataMediaReviewsVisibility](../../models/operations/postuserssignindatamediareviewsvisibility.md) | :heavy_minus_sign: | N/A | 0 |
| Field | Type | Required | Description | Example |
| ----------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------- |
| `AutoSelectAudio` | **bool* | :heavy_minus_sign: | If the account has automatically select audio and subtitle tracks enabled | true |
| `DefaultAudioLanguage` | *string* | :heavy_check_mark: | The preferred audio language for the account | ja |
| `DefaultSubtitleLanguage` | *string* | :heavy_check_mark: | The preferred subtitle language for the account | en |
| `AutoSelectSubtitle` | [*operations.PostUsersSignInDataAutoSelectSubtitle](../../models/operations/postuserssignindataautoselectsubtitle.md) | :heavy_minus_sign: | N/A | 1 |
| `DefaultSubtitleAccessibility` | [*operations.PostUsersSignInDataDefaultSubtitleAccessibility](../../models/operations/postuserssignindatadefaultsubtitleaccessibility.md) | :heavy_minus_sign: | N/A | 1 |
| `DefaultSubtitleForced` | [*operations.PostUsersSignInDataDefaultSubtitleForced](../../models/operations/postuserssignindatadefaultsubtitleforced.md) | :heavy_minus_sign: | N/A | 1 |
| `WatchedIndicator` | [*operations.PostUsersSignInDataWatchedIndicator](../../models/operations/postuserssignindatawatchedindicator.md) | :heavy_minus_sign: | N/A | 1 |
| `MediaReviewsVisibility` | [*operations.PostUsersSignInDataMediaReviewsVisibility](../../models/operations/postuserssignindatamediareviewsvisibility.md) | :heavy_minus_sign: | N/A | 1 |

View File

@@ -1,9 +1,11 @@
# PostUsersSignInDataWatchedIndicator
Whether or not media watched indicators are enabled (little orange dot on media)
## Values
| Name | Value |
| ----------------------------------------- | ----------------------------------------- |
| `PostUsersSignInDataWatchedIndicatorZero` | 0 |
| `PostUsersSignInDataWatchedIndicatorOne` | 1 |
| Name | Value |
| -------------------------------------------- | -------------------------------------------- |
| `PostUsersSignInDataWatchedIndicatorDisable` | 0 |
| `PostUsersSignInDataWatchedIndicatorEnable` | 1 |

View File

@@ -0,0 +1,11 @@
# Protocol
The protocol used for the connection (http, https, etc)
## Values
| Name | Value |
| --------------- | --------------- |
| `ProtocolHTTP` | http |
| `ProtocolHTTPS` | https |

View File

@@ -11,9 +11,9 @@ E.g. A movie library will not return anything with type 3 as there are no season
## Values
| Name | Value |
| --------------------- | --------------------- |
| `QueryParamTypeOne` | 1 |
| `QueryParamTypeTwo` | 2 |
| `QueryParamTypeThree` | 3 |
| `QueryParamTypeFour` | 4 |
| Name | Value |
| ----------------------- | ----------------------- |
| `QueryParamTypeMovie` | 1 |
| `QueryParamTypeShow` | 2 |
| `QueryParamTypeSeason` | 3 |
| `QueryParamTypeEpisode` | 4 |

View File

@@ -11,9 +11,9 @@ E.g. A movie library will not return anything with type 3 as there are no season
## Values
| Name | Value |
| ----------- | ----------- |
| `TypeOne` | 1 |
| `TypeTwo` | 2 |
| `TypeThree` | 3 |
| `TypeFour` | 4 |
| Name | Value |
| ------------- | ------------- |
| `TypeMovie` | 1 |
| `TypeShow` | 2 |
| `TypeSeason` | 3 |
| `TypeEpisode` | 4 |

View File

@@ -6,4 +6,5 @@
| Field | Type | Required | Description | Example |
| ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `Path` | *string* | :heavy_check_mark: | absolute path to a directory on the server where m3u files are stored, or the absolute path to a playlist file on the server. <br/>If the `path` argument is a directory, that path will be scanned for playlist files to be processed. <br/>Each file in that directory creates a separate playlist, with a name based on the filename of the file that created it. <br/>The GUID of each playlist is based on the filename. <br/>If the `path` argument is a file, that file will be used to create a new playlist, with the name based on the filename of the file that created it. <br/>The GUID of each playlist is based on the filename.<br/> | /home/barkley/playlist.m3u |
| `Force` | [operations.QueryParamForce](../../models/operations/queryparamforce.md) | :heavy_check_mark: | Force overwriting of duplicate playlists. <br/>By default, a playlist file uploaded with the same path will overwrite the existing playlist. <br/>The `force` argument is used to disable overwriting. <br/>If the `force` argument is set to 0, a new playlist will be created suffixed with the date and time that the duplicate was uploaded.<br/> | |
| `Force` | [operations.QueryParamForce](../../models/operations/queryparamforce.md) | :heavy_check_mark: | Force overwriting of duplicate playlists. <br/>By default, a playlist file uploaded with the same path will overwrite the existing playlist. <br/>The `force` argument is used to disable overwriting. <br/>If the `force` argument is set to 0, a new playlist will be created suffixed with the date and time that the duplicate was uploaded.<br/> | |
| `SectionID` | *int64* | :heavy_check_mark: | Possibly the section ID to upload the playlist to, we are not certain. | 1 |

View File

@@ -3,13 +3,13 @@
## Fields
| Field | Type | Required | Description | Example |
| ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `AutoSelectAudio` | **bool* | :heavy_minus_sign: | If the account has automatically select audio and subtitle tracks enabled | true |
| `DefaultAudioLanguage` | *string* | :heavy_check_mark: | The preferred audio language for the account | ja |
| `DefaultSubtitleLanguage` | *string* | :heavy_check_mark: | The preferred subtitle language for the account | en |
| `AutoSelectSubtitle` | [*operations.AutoSelectSubtitle](../../models/operations/autoselectsubtitle.md) | :heavy_minus_sign: | The auto-select subtitle mode (0 = Manually selected, 1 = Shown with foreign audio, 2 = Always enabled) | 1 |
| `DefaultSubtitleAccessibility` | [*operations.DefaultSubtitleAccessibility](../../models/operations/defaultsubtitleaccessibility.md) | :heavy_minus_sign: | The subtitles for the deaf or hard-of-hearing (SDH) searches mode (0 = Prefer non-SDH subtitles, 1 = Prefer SDH subtitles, 2 = Only show SDH subtitles, 3 = Only shown non-SDH subtitles) | 1 |
| `DefaultSubtitleForced` | [*operations.DefaultSubtitleForced](../../models/operations/defaultsubtitleforced.md) | :heavy_minus_sign: | The forced subtitles searches mode (0 = Prefer non-forced subtitles, 1 = Prefer forced subtitles, 2 = Only show forced subtitles, 3 = Only show non-forced subtitles) | 0 |
| `WatchedIndicator` | [*operations.WatchedIndicator](../../models/operations/watchedindicator.md) | :heavy_minus_sign: | N/A | 1 |
| `MediaReviewsVisibility` | [*operations.MediaReviewsVisibility](../../models/operations/mediareviewsvisibility.md) | :heavy_minus_sign: | N/A | 0 |
| Field | Type | Required | Description | Example |
| --------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------- |
| `AutoSelectAudio` | **bool* | :heavy_minus_sign: | If the account has automatically select audio and subtitle tracks enabled | true |
| `DefaultAudioLanguage` | *string* | :heavy_check_mark: | The preferred audio language for the account | ja |
| `DefaultSubtitleLanguage` | *string* | :heavy_check_mark: | The preferred subtitle language for the account | en |
| `AutoSelectSubtitle` | [*operations.AutoSelectSubtitle](../../models/operations/autoselectsubtitle.md) | :heavy_minus_sign: | N/A | 1 |
| `DefaultSubtitleAccessibility` | [*operations.DefaultSubtitleAccessibility](../../models/operations/defaultsubtitleaccessibility.md) | :heavy_minus_sign: | N/A | 1 |
| `DefaultSubtitleForced` | [*operations.DefaultSubtitleForced](../../models/operations/defaultsubtitleforced.md) | :heavy_minus_sign: | N/A | 1 |
| `WatchedIndicator` | [*operations.WatchedIndicator](../../models/operations/watchedindicator.md) | :heavy_minus_sign: | N/A | 1 |
| `MediaReviewsVisibility` | [*operations.MediaReviewsVisibility](../../models/operations/mediareviewsvisibility.md) | :heavy_minus_sign: | N/A | 1 |

View File

@@ -1,9 +1,11 @@
# WatchedIndicator
Whether or not media watched indicators are enabled (little orange dot on media)
## Values
| Name | Value |
| ---------------------- | ---------------------- |
| `WatchedIndicatorZero` | 0 |
| `WatchedIndicatorOne` | 1 |
| Name | Value |
| ------------------------- | ------------------------- |
| `WatchedIndicatorDisable` | 0 |
| `WatchedIndicatorEnable` | 1 |

View File

@@ -37,9 +37,9 @@ func main() {
plexgo.WithSecurity("<YOUR_API_KEY_HERE>"),
plexgo.WithClientID("gcgzw5rz2xovp84b4vha3a40"),
plexgo.WithClientName("Plex Web"),
plexgo.WithDeviceName("Linux"),
plexgo.WithClientVersion("4.133.0"),
plexgo.WithXPlexPlatform("Chrome"),
plexgo.WithClientPlatform("Chrome"),
plexgo.WithDeviceName("Linux"),
)
ctx := context.Background()
@@ -93,9 +93,9 @@ func main() {
plexgo.WithSecurity("<YOUR_API_KEY_HERE>"),
plexgo.WithClientID("gcgzw5rz2xovp84b4vha3a40"),
plexgo.WithClientName("Plex Web"),
plexgo.WithDeviceName("Linux"),
plexgo.WithClientVersion("4.133.0"),
plexgo.WithXPlexPlatform("Chrome"),
plexgo.WithClientPlatform("Chrome"),
plexgo.WithDeviceName("Linux"),
)
ctx := context.Background()

View File

@@ -35,9 +35,9 @@ func main() {
plexgo.WithSecurity("<YOUR_API_KEY_HERE>"),
plexgo.WithClientID("gcgzw5rz2xovp84b4vha3a40"),
plexgo.WithClientName("Plex Web"),
plexgo.WithDeviceName("Linux"),
plexgo.WithClientVersion("4.133.0"),
plexgo.WithXPlexPlatform("Chrome"),
plexgo.WithClientPlatform("Chrome"),
plexgo.WithDeviceName("Linux"),
)
ctx := context.Background()
@@ -95,13 +95,13 @@ func main() {
plexgo.WithSecurity("<YOUR_API_KEY_HERE>"),
plexgo.WithClientID("gcgzw5rz2xovp84b4vha3a40"),
plexgo.WithClientName("Plex Web"),
plexgo.WithDeviceName("Linux"),
plexgo.WithClientVersion("4.133.0"),
plexgo.WithXPlexPlatform("Chrome"),
plexgo.WithClientPlatform("Chrome"),
plexgo.WithDeviceName("Linux"),
)
ctx := context.Background()
res, err := s.Authentication.GetSourceConnectionInformation(ctx, "server://client-identifier")
res, err := s.Authentication.GetSourceConnectionInformation(ctx, "provider://provider-identifier")
if err != nil {
log.Fatal(err)
}
@@ -152,9 +152,9 @@ func main() {
plexgo.WithSecurity("<YOUR_API_KEY_HERE>"),
plexgo.WithClientID("gcgzw5rz2xovp84b4vha3a40"),
plexgo.WithClientName("Plex Web"),
plexgo.WithDeviceName("Linux"),
plexgo.WithClientVersion("4.133.0"),
plexgo.WithXPlexPlatform("Chrome"),
plexgo.WithClientPlatform("Chrome"),
plexgo.WithDeviceName("Linux"),
)
ctx := context.Background()
@@ -208,13 +208,13 @@ func main() {
s := plexgo.New(
plexgo.WithClientID("gcgzw5rz2xovp84b4vha3a40"),
plexgo.WithClientName("Plex Web"),
plexgo.WithDeviceName("Linux"),
plexgo.WithClientVersion("4.133.0"),
plexgo.WithXPlexPlatform("Chrome"),
plexgo.WithClientPlatform("Chrome"),
plexgo.WithDeviceName("Linux"),
)
ctx := context.Background()
res, err := s.Authentication.PostUsersSignInData(ctx, plexgo.String("gcgzw5rz2xovp84b4vha3a40"), &operations.PostUsersSignInDataRequestBody{
res, err := s.Authentication.PostUsersSignInData(ctx, &operations.PostUsersSignInDataRequestBody{
Login: "username@email.com",
Password: "password123",
VerificationCode: plexgo.String("123456"),
@@ -230,12 +230,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. | |
| `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. | |
| 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.PostUsersSignInDataRequestBody](../../models/operations/postuserssignindatarequestbody.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

View File

@@ -34,9 +34,9 @@ func main() {
plexgo.WithSecurity("<YOUR_API_KEY_HERE>"),
plexgo.WithClientID("gcgzw5rz2xovp84b4vha3a40"),
plexgo.WithClientName("Plex Web"),
plexgo.WithDeviceName("Linux"),
plexgo.WithClientVersion("4.133.0"),
plexgo.WithXPlexPlatform("Chrome"),
plexgo.WithClientPlatform("Chrome"),
plexgo.WithDeviceName("Linux"),
)
ctx := context.Background()
@@ -95,9 +95,9 @@ func main() {
plexgo.WithSecurity("<YOUR_API_KEY_HERE>"),
plexgo.WithClientID("gcgzw5rz2xovp84b4vha3a40"),
plexgo.WithClientName("Plex Web"),
plexgo.WithDeviceName("Linux"),
plexgo.WithClientVersion("4.133.0"),
plexgo.WithXPlexPlatform("Chrome"),
plexgo.WithClientPlatform("Chrome"),
plexgo.WithDeviceName("Linux"),
)
ctx := context.Background()
@@ -152,9 +152,9 @@ func main() {
plexgo.WithSecurity("<YOUR_API_KEY_HERE>"),
plexgo.WithClientID("gcgzw5rz2xovp84b4vha3a40"),
plexgo.WithClientName("Plex Web"),
plexgo.WithDeviceName("Linux"),
plexgo.WithClientVersion("4.133.0"),
plexgo.WithXPlexPlatform("Chrome"),
plexgo.WithClientPlatform("Chrome"),
plexgo.WithDeviceName("Linux"),
)
ctx := context.Background()
@@ -214,9 +214,9 @@ func main() {
plexgo.WithSecurity("<YOUR_API_KEY_HERE>"),
plexgo.WithClientID("gcgzw5rz2xovp84b4vha3a40"),
plexgo.WithClientName("Plex Web"),
plexgo.WithDeviceName("Linux"),
plexgo.WithClientVersion("4.133.0"),
plexgo.WithXPlexPlatform("Chrome"),
plexgo.WithClientPlatform("Chrome"),
plexgo.WithDeviceName("Linux"),
)
ctx := context.Background()
@@ -273,9 +273,9 @@ func main() {
plexgo.WithSecurity("<YOUR_API_KEY_HERE>"),
plexgo.WithClientID("gcgzw5rz2xovp84b4vha3a40"),
plexgo.WithClientName("Plex Web"),
plexgo.WithDeviceName("Linux"),
plexgo.WithClientVersion("4.133.0"),
plexgo.WithXPlexPlatform("Chrome"),
plexgo.WithClientPlatform("Chrome"),
plexgo.WithDeviceName("Linux"),
)
ctx := context.Background()

View File

@@ -31,9 +31,9 @@ func main() {
plexgo.WithSecurity("<YOUR_API_KEY_HERE>"),
plexgo.WithClientID("gcgzw5rz2xovp84b4vha3a40"),
plexgo.WithClientName("Plex Web"),
plexgo.WithDeviceName("Linux"),
plexgo.WithClientVersion("4.133.0"),
plexgo.WithXPlexPlatform("Chrome"),
plexgo.WithClientPlatform("Chrome"),
plexgo.WithDeviceName("Linux"),
)
ctx := context.Background()
@@ -90,9 +90,9 @@ func main() {
plexgo.WithSecurity("<YOUR_API_KEY_HERE>"),
plexgo.WithClientID("gcgzw5rz2xovp84b4vha3a40"),
plexgo.WithClientName("Plex Web"),
plexgo.WithDeviceName("Linux"),
plexgo.WithClientVersion("4.133.0"),
plexgo.WithXPlexPlatform("Chrome"),
plexgo.WithClientPlatform("Chrome"),
plexgo.WithDeviceName("Linux"),
)
ctx := context.Background()

View File

@@ -41,9 +41,9 @@ func main() {
plexgo.WithSecurity("<YOUR_API_KEY_HERE>"),
plexgo.WithClientID("gcgzw5rz2xovp84b4vha3a40"),
plexgo.WithClientName("Plex Web"),
plexgo.WithDeviceName("Linux"),
plexgo.WithClientVersion("4.133.0"),
plexgo.WithXPlexPlatform("Chrome"),
plexgo.WithClientPlatform("Chrome"),
plexgo.WithDeviceName("Linux"),
)
ctx := context.Background()
@@ -100,9 +100,9 @@ func main() {
plexgo.WithSecurity("<YOUR_API_KEY_HERE>"),
plexgo.WithClientID("gcgzw5rz2xovp84b4vha3a40"),
plexgo.WithClientName("Plex Web"),
plexgo.WithDeviceName("Linux"),
plexgo.WithClientVersion("4.133.0"),
plexgo.WithXPlexPlatform("Chrome"),
plexgo.WithClientPlatform("Chrome"),
plexgo.WithDeviceName("Linux"),
)
ctx := context.Background()
@@ -164,9 +164,9 @@ func main() {
plexgo.WithSecurity("<YOUR_API_KEY_HERE>"),
plexgo.WithClientID("gcgzw5rz2xovp84b4vha3a40"),
plexgo.WithClientName("Plex Web"),
plexgo.WithDeviceName("Linux"),
plexgo.WithClientVersion("4.133.0"),
plexgo.WithXPlexPlatform("Chrome"),
plexgo.WithClientPlatform("Chrome"),
plexgo.WithDeviceName("Linux"),
)
ctx := context.Background()
@@ -259,9 +259,9 @@ func main() {
plexgo.WithSecurity("<YOUR_API_KEY_HERE>"),
plexgo.WithClientID("gcgzw5rz2xovp84b4vha3a40"),
plexgo.WithClientName("Plex Web"),
plexgo.WithDeviceName("Linux"),
plexgo.WithClientVersion("4.133.0"),
plexgo.WithXPlexPlatform("Chrome"),
plexgo.WithClientPlatform("Chrome"),
plexgo.WithDeviceName("Linux"),
)
ctx := context.Background()
@@ -317,9 +317,9 @@ func main() {
plexgo.WithSecurity("<YOUR_API_KEY_HERE>"),
plexgo.WithClientID("gcgzw5rz2xovp84b4vha3a40"),
plexgo.WithClientName("Plex Web"),
plexgo.WithDeviceName("Linux"),
plexgo.WithClientVersion("4.133.0"),
plexgo.WithXPlexPlatform("Chrome"),
plexgo.WithClientPlatform("Chrome"),
plexgo.WithDeviceName("Linux"),
)
ctx := context.Background()
@@ -395,18 +395,18 @@ func main() {
plexgo.WithSecurity("<YOUR_API_KEY_HERE>"),
plexgo.WithClientID("gcgzw5rz2xovp84b4vha3a40"),
plexgo.WithClientName("Plex Web"),
plexgo.WithDeviceName("Linux"),
plexgo.WithClientVersion("4.133.0"),
plexgo.WithXPlexPlatform("Chrome"),
plexgo.WithClientPlatform("Chrome"),
plexgo.WithDeviceName("Linux"),
)
ctx := context.Background()
res, err := s.Library.GetLibraryItems(ctx, operations.GetLibraryItemsRequest{
SectionKey: 9518,
Tag: operations.TagEdition,
IncludeGuids: operations.IncludeGuidsOne.ToPointer(),
IncludeMeta: operations.IncludeMetaOne.ToPointer(),
Type: operations.TypeTwo,
IncludeGuids: operations.IncludeGuidsEnable.ToPointer(),
IncludeMeta: operations.IncludeMetaEnable.ToPointer(),
Type: operations.TypeShow,
XPlexContainerStart: plexgo.Int(0),
XPlexContainerSize: plexgo.Int(50),
})
@@ -462,9 +462,9 @@ func main() {
plexgo.WithSecurity("<YOUR_API_KEY_HERE>"),
plexgo.WithClientID("gcgzw5rz2xovp84b4vha3a40"),
plexgo.WithClientName("Plex Web"),
plexgo.WithDeviceName("Linux"),
plexgo.WithClientVersion("4.133.0"),
plexgo.WithXPlexPlatform("Chrome"),
plexgo.WithClientPlatform("Chrome"),
plexgo.WithDeviceName("Linux"),
)
ctx := context.Background()
@@ -539,13 +539,13 @@ func main() {
plexgo.WithSecurity("<YOUR_API_KEY_HERE>"),
plexgo.WithClientID("gcgzw5rz2xovp84b4vha3a40"),
plexgo.WithClientName("Plex Web"),
plexgo.WithDeviceName("Linux"),
plexgo.WithClientVersion("4.133.0"),
plexgo.WithXPlexPlatform("Chrome"),
plexgo.WithClientPlatform("Chrome"),
plexgo.WithDeviceName("Linux"),
)
ctx := context.Background()
res, err := s.Library.GetSearchLibrary(ctx, 9518, operations.QueryParamTypeTwo)
res, err := s.Library.GetSearchLibrary(ctx, 9518, operations.QueryParamTypeShow)
if err != nil {
log.Fatal(err)
}
@@ -598,9 +598,9 @@ func main() {
plexgo.WithSecurity("<YOUR_API_KEY_HERE>"),
plexgo.WithClientID("gcgzw5rz2xovp84b4vha3a40"),
plexgo.WithClientName("Plex Web"),
plexgo.WithDeviceName("Linux"),
plexgo.WithClientVersion("4.133.0"),
plexgo.WithXPlexPlatform("Chrome"),
plexgo.WithClientPlatform("Chrome"),
plexgo.WithDeviceName("Linux"),
)
ctx := context.Background()
@@ -656,9 +656,9 @@ func main() {
plexgo.WithSecurity("<YOUR_API_KEY_HERE>"),
plexgo.WithClientID("gcgzw5rz2xovp84b4vha3a40"),
plexgo.WithClientName("Plex Web"),
plexgo.WithDeviceName("Linux"),
plexgo.WithClientVersion("4.133.0"),
plexgo.WithXPlexPlatform("Chrome"),
plexgo.WithClientPlatform("Chrome"),
plexgo.WithDeviceName("Linux"),
)
ctx := context.Background()
@@ -716,13 +716,13 @@ func main() {
plexgo.WithSecurity("<YOUR_API_KEY_HERE>"),
plexgo.WithClientID("gcgzw5rz2xovp84b4vha3a40"),
plexgo.WithClientName("Plex Web"),
plexgo.WithDeviceName("Linux"),
plexgo.WithClientVersion("4.133.0"),
plexgo.WithXPlexPlatform("Chrome"),
plexgo.WithClientPlatform("Chrome"),
plexgo.WithDeviceName("Linux"),
)
ctx := context.Background()
res, err := s.Library.GetTopWatchedContent(ctx, operations.GetTopWatchedContentQueryParamTypeTwo, plexgo.Int64(1))
res, err := s.Library.GetTopWatchedContent(ctx, operations.GetTopWatchedContentQueryParamTypeShow, plexgo.Int64(1))
if err != nil {
log.Fatal(err)
}
@@ -775,9 +775,9 @@ func main() {
plexgo.WithSecurity("<YOUR_API_KEY_HERE>"),
plexgo.WithClientID("gcgzw5rz2xovp84b4vha3a40"),
plexgo.WithClientName("Plex Web"),
plexgo.WithDeviceName("Linux"),
plexgo.WithClientVersion("4.133.0"),
plexgo.WithXPlexPlatform("Chrome"),
plexgo.WithClientPlatform("Chrome"),
plexgo.WithDeviceName("Linux"),
)
ctx := context.Background()

View File

@@ -34,9 +34,9 @@ func main() {
plexgo.WithSecurity("<YOUR_API_KEY_HERE>"),
plexgo.WithClientID("gcgzw5rz2xovp84b4vha3a40"),
plexgo.WithClientName("Plex Web"),
plexgo.WithDeviceName("Linux"),
plexgo.WithClientVersion("4.133.0"),
plexgo.WithXPlexPlatform("Chrome"),
plexgo.WithClientPlatform("Chrome"),
plexgo.WithDeviceName("Linux"),
)
ctx := context.Background()
@@ -114,9 +114,9 @@ func main() {
plexgo.WithSecurity("<YOUR_API_KEY_HERE>"),
plexgo.WithClientID("gcgzw5rz2xovp84b4vha3a40"),
plexgo.WithClientName("Plex Web"),
plexgo.WithDeviceName("Linux"),
plexgo.WithClientVersion("4.133.0"),
plexgo.WithXPlexPlatform("Chrome"),
plexgo.WithClientPlatform("Chrome"),
plexgo.WithDeviceName("Linux"),
)
ctx := context.Background()
@@ -174,9 +174,9 @@ func main() {
plexgo.WithSecurity("<YOUR_API_KEY_HERE>"),
plexgo.WithClientID("gcgzw5rz2xovp84b4vha3a40"),
plexgo.WithClientName("Plex Web"),
plexgo.WithDeviceName("Linux"),
plexgo.WithClientVersion("4.133.0"),
plexgo.WithXPlexPlatform("Chrome"),
plexgo.WithClientPlatform("Chrome"),
plexgo.WithDeviceName("Linux"),
)
ctx := context.Background()

View File

@@ -34,9 +34,9 @@ func main() {
plexgo.WithSecurity("<YOUR_API_KEY_HERE>"),
plexgo.WithClientID("gcgzw5rz2xovp84b4vha3a40"),
plexgo.WithClientName("Plex Web"),
plexgo.WithDeviceName("Linux"),
plexgo.WithClientVersion("4.133.0"),
plexgo.WithXPlexPlatform("Chrome"),
plexgo.WithClientPlatform("Chrome"),
plexgo.WithDeviceName("Linux"),
)
ctx := context.Background()
@@ -91,9 +91,9 @@ func main() {
plexgo.WithSecurity("<YOUR_API_KEY_HERE>"),
plexgo.WithClientID("gcgzw5rz2xovp84b4vha3a40"),
plexgo.WithClientName("Plex Web"),
plexgo.WithDeviceName("Linux"),
plexgo.WithClientVersion("4.133.0"),
plexgo.WithXPlexPlatform("Chrome"),
plexgo.WithClientPlatform("Chrome"),
plexgo.WithDeviceName("Linux"),
)
ctx := context.Background()
@@ -149,9 +149,9 @@ func main() {
plexgo.WithSecurity("<YOUR_API_KEY_HERE>"),
plexgo.WithClientID("gcgzw5rz2xovp84b4vha3a40"),
plexgo.WithClientName("Plex Web"),
plexgo.WithDeviceName("Linux"),
plexgo.WithClientVersion("4.133.0"),
plexgo.WithXPlexPlatform("Chrome"),
plexgo.WithClientPlatform("Chrome"),
plexgo.WithDeviceName("Linux"),
)
ctx := context.Background()
@@ -209,9 +209,9 @@ func main() {
plexgo.WithSecurity("<YOUR_API_KEY_HERE>"),
plexgo.WithClientID("gcgzw5rz2xovp84b4vha3a40"),
plexgo.WithClientName("Plex Web"),
plexgo.WithDeviceName("Linux"),
plexgo.WithClientVersion("4.133.0"),
plexgo.WithXPlexPlatform("Chrome"),
plexgo.WithClientPlatform("Chrome"),
plexgo.WithDeviceName("Linux"),
)
ctx := context.Background()
@@ -274,9 +274,9 @@ func main() {
plexgo.WithSecurity("<YOUR_API_KEY_HERE>"),
plexgo.WithClientID("gcgzw5rz2xovp84b4vha3a40"),
plexgo.WithClientName("Plex Web"),
plexgo.WithDeviceName("Linux"),
plexgo.WithClientVersion("4.133.0"),
plexgo.WithXPlexPlatform("Chrome"),
plexgo.WithClientPlatform("Chrome"),
plexgo.WithDeviceName("Linux"),
)
ctx := context.Background()

View File

@@ -45,9 +45,9 @@ func main() {
plexgo.WithSecurity("<YOUR_API_KEY_HERE>"),
plexgo.WithClientID("gcgzw5rz2xovp84b4vha3a40"),
plexgo.WithClientName("Plex Web"),
plexgo.WithDeviceName("Linux"),
plexgo.WithClientVersion("4.133.0"),
plexgo.WithXPlexPlatform("Chrome"),
plexgo.WithClientPlatform("Chrome"),
plexgo.WithDeviceName("Linux"),
)
ctx := context.Background()
@@ -107,9 +107,9 @@ func main() {
plexgo.WithSecurity("<YOUR_API_KEY_HERE>"),
plexgo.WithClientID("gcgzw5rz2xovp84b4vha3a40"),
plexgo.WithClientName("Plex Web"),
plexgo.WithDeviceName("Linux"),
plexgo.WithClientVersion("4.133.0"),
plexgo.WithXPlexPlatform("Chrome"),
plexgo.WithClientPlatform("Chrome"),
plexgo.WithDeviceName("Linux"),
)
ctx := context.Background()
@@ -167,9 +167,9 @@ func main() {
plexgo.WithSecurity("<YOUR_API_KEY_HERE>"),
plexgo.WithClientID("gcgzw5rz2xovp84b4vha3a40"),
plexgo.WithClientName("Plex Web"),
plexgo.WithDeviceName("Linux"),
plexgo.WithClientVersion("4.133.0"),
plexgo.WithXPlexPlatform("Chrome"),
plexgo.WithClientPlatform("Chrome"),
plexgo.WithDeviceName("Linux"),
)
ctx := context.Background()
@@ -225,9 +225,9 @@ func main() {
plexgo.WithSecurity("<YOUR_API_KEY_HERE>"),
plexgo.WithClientID("gcgzw5rz2xovp84b4vha3a40"),
plexgo.WithClientName("Plex Web"),
plexgo.WithDeviceName("Linux"),
plexgo.WithClientVersion("4.133.0"),
plexgo.WithXPlexPlatform("Chrome"),
plexgo.WithClientPlatform("Chrome"),
plexgo.WithDeviceName("Linux"),
)
ctx := context.Background()
@@ -283,9 +283,9 @@ func main() {
plexgo.WithSecurity("<YOUR_API_KEY_HERE>"),
plexgo.WithClientID("gcgzw5rz2xovp84b4vha3a40"),
plexgo.WithClientName("Plex Web"),
plexgo.WithDeviceName("Linux"),
plexgo.WithClientVersion("4.133.0"),
plexgo.WithXPlexPlatform("Chrome"),
plexgo.WithClientPlatform("Chrome"),
plexgo.WithDeviceName("Linux"),
)
ctx := context.Background()
@@ -347,13 +347,13 @@ func main() {
plexgo.WithSecurity("<YOUR_API_KEY_HERE>"),
plexgo.WithClientID("gcgzw5rz2xovp84b4vha3a40"),
plexgo.WithClientName("Plex Web"),
plexgo.WithDeviceName("Linux"),
plexgo.WithClientVersion("4.133.0"),
plexgo.WithXPlexPlatform("Chrome"),
plexgo.WithClientPlatform("Chrome"),
plexgo.WithDeviceName("Linux"),
)
ctx := context.Background()
res, err := s.Playlists.GetPlaylistContents(ctx, 5004.46, operations.GetPlaylistContentsQueryParamTypeTwo)
res, err := s.Playlists.GetPlaylistContents(ctx, 5004.46, operations.GetPlaylistContentsQueryParamTypeShow)
if err != nil {
log.Fatal(err)
}
@@ -406,9 +406,9 @@ func main() {
plexgo.WithSecurity("<YOUR_API_KEY_HERE>"),
plexgo.WithClientID("gcgzw5rz2xovp84b4vha3a40"),
plexgo.WithClientName("Plex Web"),
plexgo.WithDeviceName("Linux"),
plexgo.WithClientVersion("4.133.0"),
plexgo.WithXPlexPlatform("Chrome"),
plexgo.WithClientPlatform("Chrome"),
plexgo.WithDeviceName("Linux"),
)
ctx := context.Background()
@@ -465,9 +465,9 @@ func main() {
plexgo.WithSecurity("<YOUR_API_KEY_HERE>"),
plexgo.WithClientID("gcgzw5rz2xovp84b4vha3a40"),
plexgo.WithClientName("Plex Web"),
plexgo.WithDeviceName("Linux"),
plexgo.WithClientVersion("4.133.0"),
plexgo.WithXPlexPlatform("Chrome"),
plexgo.WithClientPlatform("Chrome"),
plexgo.WithDeviceName("Linux"),
)
ctx := context.Background()
@@ -526,13 +526,13 @@ func main() {
plexgo.WithSecurity("<YOUR_API_KEY_HERE>"),
plexgo.WithClientID("gcgzw5rz2xovp84b4vha3a40"),
plexgo.WithClientName("Plex Web"),
plexgo.WithDeviceName("Linux"),
plexgo.WithClientVersion("4.133.0"),
plexgo.WithXPlexPlatform("Chrome"),
plexgo.WithClientPlatform("Chrome"),
plexgo.WithDeviceName("Linux"),
)
ctx := context.Background()
res, err := s.Playlists.UploadPlaylist(ctx, "/home/barkley/playlist.m3u", operations.QueryParamForceZero)
res, err := s.Playlists.UploadPlaylist(ctx, "/home/barkley/playlist.m3u", operations.QueryParamForceZero, 1)
if err != nil {
log.Fatal(err)
}
@@ -549,6 +549,7 @@ func main() {
| `ctx` | [context.Context](https://pkg.go.dev/context#Context) | :heavy_check_mark: | The context to use for the request. | |
| `path` | *string* | :heavy_check_mark: | absolute path to a directory on the server where m3u files are stored, or the absolute path to a playlist file on the server. <br/>If the `path` argument is a directory, that path will be scanned for playlist files to be processed. <br/>Each file in that directory creates a separate playlist, with a name based on the filename of the file that created it. <br/>The GUID of each playlist is based on the filename. <br/>If the `path` argument is a file, that file will be used to create a new playlist, with the name based on the filename of the file that created it. <br/>The GUID of each playlist is based on the filename.<br/> | /home/barkley/playlist.m3u |
| `force` | [operations.QueryParamForce](../../models/operations/queryparamforce.md) | :heavy_check_mark: | Force overwriting of duplicate playlists. <br/>By default, a playlist file uploaded with the same path will overwrite the existing playlist. <br/>The `force` argument is used to disable overwriting. <br/>If the `force` argument is set to 0, a new playlist will be created suffixed with the date and time that the duplicate was uploaded.<br/> | |
| `sectionID` | *int64* | :heavy_check_mark: | Possibly the section ID to upload the playlist to, we are not certain. | 1 |
| `opts` | [][operations.Option](../../models/operations/option.md) | :heavy_minus_sign: | The options for this request. | |
### Response

View File

@@ -36,9 +36,9 @@ func main() {
plexgo.WithSecurity("<YOUR_API_KEY_HERE>"),
plexgo.WithClientID("gcgzw5rz2xovp84b4vha3a40"),
plexgo.WithClientName("Plex Web"),
plexgo.WithDeviceName("Linux"),
plexgo.WithClientVersion("4.133.0"),
plexgo.WithXPlexPlatform("Chrome"),
plexgo.WithClientPlatform("Chrome"),
plexgo.WithDeviceName("Linux"),
)
ctx := context.Background()
@@ -92,9 +92,9 @@ func main() {
plexgo.WithSecurity("<YOUR_API_KEY_HERE>"),
plexgo.WithClientID("gcgzw5rz2xovp84b4vha3a40"),
plexgo.WithClientName("Plex Web"),
plexgo.WithDeviceName("Linux"),
plexgo.WithClientVersion("4.133.0"),
plexgo.WithXPlexPlatform("Chrome"),
plexgo.WithClientPlatform("Chrome"),
plexgo.WithDeviceName("Linux"),
)
ctx := context.Background()
@@ -147,9 +147,9 @@ func main() {
s := plexgo.New(
plexgo.WithClientID("gcgzw5rz2xovp84b4vha3a40"),
plexgo.WithClientName("Plex Web"),
plexgo.WithDeviceName("Linux"),
plexgo.WithClientVersion("4.133.0"),
plexgo.WithXPlexPlatform("Chrome"),
plexgo.WithClientPlatform("Chrome"),
plexgo.WithDeviceName("Linux"),
)
ctx := context.Background()
@@ -203,9 +203,9 @@ func main() {
plexgo.WithSecurity("<YOUR_API_KEY_HERE>"),
plexgo.WithClientID("gcgzw5rz2xovp84b4vha3a40"),
plexgo.WithClientName("Plex Web"),
plexgo.WithDeviceName("Linux"),
plexgo.WithClientVersion("4.133.0"),
plexgo.WithXPlexPlatform("Chrome"),
plexgo.WithClientPlatform("Chrome"),
plexgo.WithDeviceName("Linux"),
)
ctx := context.Background()
@@ -260,13 +260,13 @@ func main() {
plexgo.WithSecurity("<YOUR_API_KEY_HERE>"),
plexgo.WithClientID("gcgzw5rz2xovp84b4vha3a40"),
plexgo.WithClientName("Plex Web"),
plexgo.WithDeviceName("Linux"),
plexgo.WithClientVersion("4.133.0"),
plexgo.WithXPlexPlatform("Chrome"),
plexgo.WithClientPlatform("Chrome"),
plexgo.WithDeviceName("Linux"),
)
ctx := context.Background()
res, err := s.Plex.GetServerResources(ctx, plexgo.String("gcgzw5rz2xovp84b4vha3a40"), operations.IncludeHTTPSOne.ToPointer(), operations.IncludeRelayOne.ToPointer(), operations.IncludeIPv6One.ToPointer())
res, err := s.Plex.GetServerResources(ctx, operations.IncludeHTTPSEnable.ToPointer(), operations.IncludeRelayEnable.ToPointer(), operations.IncludeIPv6Enable.ToPointer())
if err != nil {
log.Fatal(err)
}
@@ -278,14 +278,13 @@ 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. | |
| `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 |
| `opts` | [][operations.Option](../../models/operations/option.md) | :heavy_minus_sign: | The options for this request. | |
| Parameter | Type | Required | Description | Example |
| ------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------ |
| `ctx` | [context.Context](https://pkg.go.dev/context#Context) | :heavy_check_mark: | The context to use for the request. | |
| `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 |
| `opts` | [][operations.Option](../../models/operations/option.md) | :heavy_minus_sign: | The options for this request. | |
### Response
@@ -320,9 +319,9 @@ func main() {
s := plexgo.New(
plexgo.WithClientID("gcgzw5rz2xovp84b4vha3a40"),
plexgo.WithClientName("Plex Web"),
plexgo.WithDeviceName("Linux"),
plexgo.WithClientVersion("4.133.0"),
plexgo.WithXPlexPlatform("Chrome"),
plexgo.WithClientPlatform("Chrome"),
plexgo.WithDeviceName("Linux"),
)
ctx := context.Background()
@@ -375,13 +374,13 @@ func main() {
s := plexgo.New(
plexgo.WithClientID("gcgzw5rz2xovp84b4vha3a40"),
plexgo.WithClientName("Plex Web"),
plexgo.WithDeviceName("Linux"),
plexgo.WithClientVersion("4.133.0"),
plexgo.WithXPlexPlatform("Chrome"),
plexgo.WithClientPlatform("Chrome"),
plexgo.WithDeviceName("Linux"),
)
ctx := context.Background()
res, err := s.Plex.GetTokenByPinID(ctx, 408895, plexgo.String("gcgzw5rz2xovp84b4vha3a40"))
res, err := s.Plex.GetTokenByPinID(ctx, 408895)
if err != nil {
log.Fatal(err)
}
@@ -393,12 +392,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. | |
| `pinID` | *int64* | :heavy_check_mark: | The PinID to retrieve an access token for | |
| `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. | |
| Parameter | Type | Required | Description |
| -------------------------------------------------------- | -------------------------------------------------------- | -------------------------------------------------------- | -------------------------------------------------------- |
| `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 |
| `opts` | [][operations.Option](../../models/operations/option.md) | :heavy_minus_sign: | The options for this request. |
### Response

View File

@@ -44,9 +44,9 @@ func main() {
plexgo.WithSecurity("<YOUR_API_KEY_HERE>"),
plexgo.WithClientID("gcgzw5rz2xovp84b4vha3a40"),
plexgo.WithClientName("Plex Web"),
plexgo.WithDeviceName("Linux"),
plexgo.WithClientVersion("4.133.0"),
plexgo.WithXPlexPlatform("Chrome"),
plexgo.WithClientPlatform("Chrome"),
plexgo.WithDeviceName("Linux"),
)
ctx := context.Background()
@@ -107,9 +107,9 @@ func main() {
plexgo.WithSecurity("<YOUR_API_KEY_HERE>"),
plexgo.WithClientID("gcgzw5rz2xovp84b4vha3a40"),
plexgo.WithClientName("Plex Web"),
plexgo.WithDeviceName("Linux"),
plexgo.WithClientVersion("4.133.0"),
plexgo.WithXPlexPlatform("Chrome"),
plexgo.WithClientPlatform("Chrome"),
plexgo.WithDeviceName("Linux"),
)
ctx := context.Background()
@@ -166,9 +166,9 @@ func main() {
plexgo.WithSecurity("<YOUR_API_KEY_HERE>"),
plexgo.WithClientID("gcgzw5rz2xovp84b4vha3a40"),
plexgo.WithClientName("Plex Web"),
plexgo.WithDeviceName("Linux"),
plexgo.WithClientVersion("4.133.0"),
plexgo.WithXPlexPlatform("Chrome"),
plexgo.WithClientPlatform("Chrome"),
plexgo.WithDeviceName("Linux"),
)
ctx := context.Background()

View File

@@ -38,9 +38,9 @@ func main() {
plexgo.WithSecurity("<YOUR_API_KEY_HERE>"),
plexgo.WithClientID("gcgzw5rz2xovp84b4vha3a40"),
plexgo.WithClientName("Plex Web"),
plexgo.WithDeviceName("Linux"),
plexgo.WithClientVersion("4.133.0"),
plexgo.WithXPlexPlatform("Chrome"),
plexgo.WithClientPlatform("Chrome"),
plexgo.WithDeviceName("Linux"),
)
ctx := context.Background()
@@ -94,9 +94,9 @@ func main() {
plexgo.WithSecurity("<YOUR_API_KEY_HERE>"),
plexgo.WithClientID("gcgzw5rz2xovp84b4vha3a40"),
plexgo.WithClientName("Plex Web"),
plexgo.WithDeviceName("Linux"),
plexgo.WithClientVersion("4.133.0"),
plexgo.WithXPlexPlatform("Chrome"),
plexgo.WithClientPlatform("Chrome"),
plexgo.WithDeviceName("Linux"),
)
ctx := context.Background()
@@ -150,9 +150,9 @@ func main() {
plexgo.WithSecurity("<YOUR_API_KEY_HERE>"),
plexgo.WithClientID("gcgzw5rz2xovp84b4vha3a40"),
plexgo.WithClientName("Plex Web"),
plexgo.WithDeviceName("Linux"),
plexgo.WithClientVersion("4.133.0"),
plexgo.WithXPlexPlatform("Chrome"),
plexgo.WithClientPlatform("Chrome"),
plexgo.WithDeviceName("Linux"),
)
ctx := context.Background()
@@ -206,9 +206,9 @@ func main() {
plexgo.WithSecurity("<YOUR_API_KEY_HERE>"),
plexgo.WithClientID("gcgzw5rz2xovp84b4vha3a40"),
plexgo.WithClientName("Plex Web"),
plexgo.WithDeviceName("Linux"),
plexgo.WithClientVersion("4.133.0"),
plexgo.WithXPlexPlatform("Chrome"),
plexgo.WithClientPlatform("Chrome"),
plexgo.WithDeviceName("Linux"),
)
ctx := context.Background()
@@ -261,9 +261,9 @@ func main() {
s := plexgo.New(
plexgo.WithClientID("gcgzw5rz2xovp84b4vha3a40"),
plexgo.WithClientName("Plex Web"),
plexgo.WithDeviceName("Linux"),
plexgo.WithClientVersion("4.133.0"),
plexgo.WithXPlexPlatform("Chrome"),
plexgo.WithClientPlatform("Chrome"),
plexgo.WithDeviceName("Linux"),
)
ctx := context.Background()
@@ -316,9 +316,9 @@ func main() {
plexgo.WithSecurity("<YOUR_API_KEY_HERE>"),
plexgo.WithClientID("gcgzw5rz2xovp84b4vha3a40"),
plexgo.WithClientName("Plex Web"),
plexgo.WithDeviceName("Linux"),
plexgo.WithClientVersion("4.133.0"),
plexgo.WithXPlexPlatform("Chrome"),
plexgo.WithClientPlatform("Chrome"),
plexgo.WithDeviceName("Linux"),
)
ctx := context.Background()
@@ -374,9 +374,9 @@ func main() {
plexgo.WithSecurity("<YOUR_API_KEY_HERE>"),
plexgo.WithClientID("gcgzw5rz2xovp84b4vha3a40"),
plexgo.WithClientName("Plex Web"),
plexgo.WithDeviceName("Linux"),
plexgo.WithClientVersion("4.133.0"),
plexgo.WithXPlexPlatform("Chrome"),
plexgo.WithClientPlatform("Chrome"),
plexgo.WithDeviceName("Linux"),
)
ctx := context.Background()
@@ -384,7 +384,7 @@ func main() {
Width: 110,
Height: 165,
Opacity: 100,
Blur: 20,
Blur: 0,
MinSize: operations.MinSizeOne,
Upscale: operations.UpscaleOne,
URL: "/library/metadata/49564/thumb/1654258204",
@@ -439,9 +439,9 @@ func main() {
plexgo.WithSecurity("<YOUR_API_KEY_HERE>"),
plexgo.WithClientID("gcgzw5rz2xovp84b4vha3a40"),
plexgo.WithClientName("Plex Web"),
plexgo.WithDeviceName("Linux"),
plexgo.WithClientVersion("4.133.0"),
plexgo.WithXPlexPlatform("Chrome"),
plexgo.WithClientPlatform("Chrome"),
plexgo.WithDeviceName("Linux"),
)
ctx := context.Background()
@@ -496,9 +496,9 @@ func main() {
plexgo.WithSecurity("<YOUR_API_KEY_HERE>"),
plexgo.WithClientID("gcgzw5rz2xovp84b4vha3a40"),
plexgo.WithClientName("Plex Web"),
plexgo.WithDeviceName("Linux"),
plexgo.WithClientVersion("4.133.0"),
plexgo.WithXPlexPlatform("Chrome"),
plexgo.WithClientPlatform("Chrome"),
plexgo.WithDeviceName("Linux"),
)
ctx := context.Background()

View File

@@ -33,9 +33,9 @@ func main() {
plexgo.WithSecurity("<YOUR_API_KEY_HERE>"),
plexgo.WithClientID("gcgzw5rz2xovp84b4vha3a40"),
plexgo.WithClientName("Plex Web"),
plexgo.WithDeviceName("Linux"),
plexgo.WithClientVersion("4.133.0"),
plexgo.WithXPlexPlatform("Chrome"),
plexgo.WithClientPlatform("Chrome"),
plexgo.WithDeviceName("Linux"),
)
ctx := context.Background()
@@ -90,9 +90,9 @@ func main() {
plexgo.WithSecurity("<YOUR_API_KEY_HERE>"),
plexgo.WithClientID("gcgzw5rz2xovp84b4vha3a40"),
plexgo.WithClientName("Plex Web"),
plexgo.WithDeviceName("Linux"),
plexgo.WithClientVersion("4.133.0"),
plexgo.WithXPlexPlatform("Chrome"),
plexgo.WithClientPlatform("Chrome"),
plexgo.WithDeviceName("Linux"),
)
ctx := context.Background()
@@ -150,9 +150,9 @@ func main() {
plexgo.WithSecurity("<YOUR_API_KEY_HERE>"),
plexgo.WithClientID("gcgzw5rz2xovp84b4vha3a40"),
plexgo.WithClientName("Plex Web"),
plexgo.WithDeviceName("Linux"),
plexgo.WithClientVersion("4.133.0"),
plexgo.WithXPlexPlatform("Chrome"),
plexgo.WithClientPlatform("Chrome"),
plexgo.WithDeviceName("Linux"),
)
ctx := context.Background()
@@ -206,9 +206,9 @@ func main() {
plexgo.WithSecurity("<YOUR_API_KEY_HERE>"),
plexgo.WithClientID("gcgzw5rz2xovp84b4vha3a40"),
plexgo.WithClientName("Plex Web"),
plexgo.WithDeviceName("Linux"),
plexgo.WithClientVersion("4.133.0"),
plexgo.WithXPlexPlatform("Chrome"),
plexgo.WithClientPlatform("Chrome"),
plexgo.WithDeviceName("Linux"),
)
ctx := context.Background()

View File

@@ -32,9 +32,9 @@ func main() {
plexgo.WithSecurity("<YOUR_API_KEY_HERE>"),
plexgo.WithClientID("gcgzw5rz2xovp84b4vha3a40"),
plexgo.WithClientName("Plex Web"),
plexgo.WithDeviceName("Linux"),
plexgo.WithClientVersion("4.133.0"),
plexgo.WithXPlexPlatform("Chrome"),
plexgo.WithClientPlatform("Chrome"),
plexgo.WithDeviceName("Linux"),
)
ctx := context.Background()
@@ -89,9 +89,9 @@ func main() {
plexgo.WithSecurity("<YOUR_API_KEY_HERE>"),
plexgo.WithClientID("gcgzw5rz2xovp84b4vha3a40"),
plexgo.WithClientName("Plex Web"),
plexgo.WithDeviceName("Linux"),
plexgo.WithClientVersion("4.133.0"),
plexgo.WithXPlexPlatform("Chrome"),
plexgo.WithClientPlatform("Chrome"),
plexgo.WithDeviceName("Linux"),
)
ctx := context.Background()
@@ -146,9 +146,9 @@ func main() {
plexgo.WithSecurity("<YOUR_API_KEY_HERE>"),
plexgo.WithClientID("gcgzw5rz2xovp84b4vha3a40"),
plexgo.WithClientName("Plex Web"),
plexgo.WithDeviceName("Linux"),
plexgo.WithClientVersion("4.133.0"),
plexgo.WithXPlexPlatform("Chrome"),
plexgo.WithClientPlatform("Chrome"),
plexgo.WithDeviceName("Linux"),
)
ctx := context.Background()

View File

@@ -33,9 +33,9 @@ func main() {
plexgo.WithSecurity("<YOUR_API_KEY_HERE>"),
plexgo.WithClientID("gcgzw5rz2xovp84b4vha3a40"),
plexgo.WithClientName("Plex Web"),
plexgo.WithDeviceName("Linux"),
plexgo.WithClientVersion("4.133.0"),
plexgo.WithXPlexPlatform("Chrome"),
plexgo.WithClientPlatform("Chrome"),
plexgo.WithDeviceName("Linux"),
)
ctx := context.Background()
@@ -90,9 +90,9 @@ func main() {
plexgo.WithSecurity("<YOUR_API_KEY_HERE>"),
plexgo.WithClientID("gcgzw5rz2xovp84b4vha3a40"),
plexgo.WithClientName("Plex Web"),
plexgo.WithDeviceName("Linux"),
plexgo.WithClientVersion("4.133.0"),
plexgo.WithXPlexPlatform("Chrome"),
plexgo.WithClientPlatform("Chrome"),
plexgo.WithDeviceName("Linux"),
)
ctx := context.Background()
@@ -149,9 +149,9 @@ func main() {
plexgo.WithSecurity("<YOUR_API_KEY_HERE>"),
plexgo.WithClientID("gcgzw5rz2xovp84b4vha3a40"),
plexgo.WithClientName("Plex Web"),
plexgo.WithDeviceName("Linux"),
plexgo.WithClientVersion("4.133.0"),
plexgo.WithXPlexPlatform("Chrome"),
plexgo.WithClientPlatform("Chrome"),
plexgo.WithDeviceName("Linux"),
)
ctx := context.Background()

View File

@@ -32,9 +32,9 @@ func main() {
plexgo.WithSecurity("<YOUR_API_KEY_HERE>"),
plexgo.WithClientID("gcgzw5rz2xovp84b4vha3a40"),
plexgo.WithClientName("Plex Web"),
plexgo.WithDeviceName("Linux"),
plexgo.WithClientVersion("4.133.0"),
plexgo.WithXPlexPlatform("Chrome"),
plexgo.WithClientPlatform("Chrome"),
plexgo.WithDeviceName("Linux"),
)
ctx := context.Background()
@@ -101,9 +101,9 @@ func main() {
plexgo.WithSecurity("<YOUR_API_KEY_HERE>"),
plexgo.WithClientID("gcgzw5rz2xovp84b4vha3a40"),
plexgo.WithClientName("Plex Web"),
plexgo.WithDeviceName("Linux"),
plexgo.WithClientVersion("4.133.0"),
plexgo.WithXPlexPlatform("Chrome"),
plexgo.WithClientPlatform("Chrome"),
plexgo.WithDeviceName("Linux"),
)
ctx := context.Background()

View File

@@ -31,9 +31,9 @@ func main() {
plexgo.WithSecurity("<YOUR_API_KEY_HERE>"),
plexgo.WithClientID("gcgzw5rz2xovp84b4vha3a40"),
plexgo.WithClientName("Plex Web"),
plexgo.WithDeviceName("Linux"),
plexgo.WithClientVersion("4.133.0"),
plexgo.WithXPlexPlatform("Chrome"),
plexgo.WithClientPlatform("Chrome"),
plexgo.WithDeviceName("Linux"),
)
ctx := context.Background()

View File

@@ -7,11 +7,11 @@ type Globals struct {
// This is used to track the client application and its usage
// (UUID, serial number, or other number unique per device)
//
ClientID *string `queryParam:"style=form,explode=true,name=X-Plex-Client-Identifier"`
ClientName *string `queryParam:"style=form,explode=true,name=X-Plex-Product"`
DeviceName *string `queryParam:"style=form,explode=true,name=X-Plex-Device"`
ClientVersion *string `queryParam:"style=form,explode=true,name=X-Plex-Version"`
XPlexPlatform *string `queryParam:"style=form,explode=true,name=X-Plex-Platform"`
ClientID *string `queryParam:"style=form,explode=true,name=X-Plex-Client-Identifier"`
ClientName *string `queryParam:"style=form,explode=true,name=X-Plex-Product"`
ClientVersion *string `queryParam:"style=form,explode=true,name=X-Plex-Version"`
ClientPlatform *string `queryParam:"style=form,explode=true,name=X-Plex-Platform"`
DeviceName *string `queryParam:"style=form,explode=true,name=X-Plex-Device"`
}
func (o *Globals) GetClientID() *string {
@@ -28,13 +28,6 @@ func (o *Globals) GetClientName() *string {
return o.ClientName
}
func (o *Globals) GetDeviceName() *string {
if o == nil {
return nil
}
return o.DeviceName
}
func (o *Globals) GetClientVersion() *string {
if o == nil {
return nil
@@ -42,9 +35,16 @@ func (o *Globals) GetClientVersion() *string {
return o.ClientVersion
}
func (o *Globals) GetXPlexPlatform() *string {
func (o *Globals) GetClientPlatform() *string {
if o == nil {
return nil
}
return o.XPlexPlatform
return o.ClientPlatform
}
func (o *Globals) GetDeviceName() *string {
if o == nil {
return nil
}
return o.DeviceName
}

View File

@@ -3,7 +3,7 @@
package components
type Security struct {
AccessToken *string `security:"scheme,type=apiKey,subtype=query,name=X-Plex-Token"`
AccessToken *string `security:"scheme,type=apiKey,subtype=header,name=X-Plex-Token"`
}
func (o *Security) GetAccessToken() *string {

View File

@@ -7,194 +7,194 @@ import (
)
type Location struct {
ID *int `json:"id,omitempty"`
Path *string `json:"path,omitempty"`
ID int `json:"id"`
Path string `json:"path"`
}
func (o *Location) GetID() *int {
func (o *Location) GetID() int {
if o == nil {
return nil
return 0
}
return o.ID
}
func (o *Location) GetPath() *string {
func (o *Location) GetPath() string {
if o == nil {
return nil
return ""
}
return o.Path
}
type GetAllLibrariesDirectory struct {
AllowSync *bool `json:"allowSync,omitempty"`
Art *string `json:"art,omitempty"`
Composite *string `json:"composite,omitempty"`
Filters *bool `json:"filters,omitempty"`
Refreshing *bool `json:"refreshing,omitempty"`
Thumb *string `json:"thumb,omitempty"`
Key *string `json:"key,omitempty"`
Type *string `json:"type,omitempty"`
Title *string `json:"title,omitempty"`
Agent *string `json:"agent,omitempty"`
Scanner *string `json:"scanner,omitempty"`
Language *string `json:"language,omitempty"`
UUID *string `json:"uuid,omitempty"`
// Unix epoch datetime
UpdatedAt *int64 `json:"updatedAt,omitempty"`
// Unix epoch datetime
CreatedAt *int64 `json:"createdAt,omitempty"`
// Unix epoch datetime
ScannedAt *int64 `json:"scannedAt,omitempty"`
Content *bool `json:"content,omitempty"`
Directory *bool `json:"directory,omitempty"`
ContentChangedAt *int `json:"contentChangedAt,omitempty"`
Hidden *int `json:"hidden,omitempty"`
Location []Location `json:"Location,omitempty"`
AllowSync bool `json:"allowSync"`
Art string `json:"art"`
Composite string `json:"composite"`
Filters bool `json:"filters"`
Refreshing bool `json:"refreshing"`
Thumb string `json:"thumb"`
Key string `json:"key"`
Type string `json:"type"`
Title string `json:"title"`
Agent string `json:"agent"`
Scanner string `json:"scanner"`
Language string `json:"language"`
UUID string `json:"uuid"`
// Unix epoch datetime in seconds
UpdatedAt int64 `json:"updatedAt"`
// Unix epoch datetime in seconds
CreatedAt int64 `json:"createdAt"`
// Unix epoch datetime in seconds
ScannedAt int64 `json:"scannedAt"`
Content bool `json:"content"`
Directory bool `json:"directory"`
ContentChangedAt int `json:"contentChangedAt"`
Hidden int `json:"hidden"`
Location []Location `json:"Location"`
}
func (o *GetAllLibrariesDirectory) GetAllowSync() *bool {
func (o *GetAllLibrariesDirectory) GetAllowSync() bool {
if o == nil {
return nil
return false
}
return o.AllowSync
}
func (o *GetAllLibrariesDirectory) GetArt() *string {
func (o *GetAllLibrariesDirectory) GetArt() string {
if o == nil {
return nil
return ""
}
return o.Art
}
func (o *GetAllLibrariesDirectory) GetComposite() *string {
func (o *GetAllLibrariesDirectory) GetComposite() string {
if o == nil {
return nil
return ""
}
return o.Composite
}
func (o *GetAllLibrariesDirectory) GetFilters() *bool {
func (o *GetAllLibrariesDirectory) GetFilters() bool {
if o == nil {
return nil
return false
}
return o.Filters
}
func (o *GetAllLibrariesDirectory) GetRefreshing() *bool {
func (o *GetAllLibrariesDirectory) GetRefreshing() bool {
if o == nil {
return nil
return false
}
return o.Refreshing
}
func (o *GetAllLibrariesDirectory) GetThumb() *string {
func (o *GetAllLibrariesDirectory) GetThumb() string {
if o == nil {
return nil
return ""
}
return o.Thumb
}
func (o *GetAllLibrariesDirectory) GetKey() *string {
func (o *GetAllLibrariesDirectory) GetKey() string {
if o == nil {
return nil
return ""
}
return o.Key
}
func (o *GetAllLibrariesDirectory) GetType() *string {
func (o *GetAllLibrariesDirectory) GetType() string {
if o == nil {
return nil
return ""
}
return o.Type
}
func (o *GetAllLibrariesDirectory) GetTitle() *string {
func (o *GetAllLibrariesDirectory) GetTitle() string {
if o == nil {
return nil
return ""
}
return o.Title
}
func (o *GetAllLibrariesDirectory) GetAgent() *string {
func (o *GetAllLibrariesDirectory) GetAgent() string {
if o == nil {
return nil
return ""
}
return o.Agent
}
func (o *GetAllLibrariesDirectory) GetScanner() *string {
func (o *GetAllLibrariesDirectory) GetScanner() string {
if o == nil {
return nil
return ""
}
return o.Scanner
}
func (o *GetAllLibrariesDirectory) GetLanguage() *string {
func (o *GetAllLibrariesDirectory) GetLanguage() string {
if o == nil {
return nil
return ""
}
return o.Language
}
func (o *GetAllLibrariesDirectory) GetUUID() *string {
func (o *GetAllLibrariesDirectory) GetUUID() string {
if o == nil {
return nil
return ""
}
return o.UUID
}
func (o *GetAllLibrariesDirectory) GetUpdatedAt() *int64 {
func (o *GetAllLibrariesDirectory) GetUpdatedAt() int64 {
if o == nil {
return nil
return 0
}
return o.UpdatedAt
}
func (o *GetAllLibrariesDirectory) GetCreatedAt() *int64 {
func (o *GetAllLibrariesDirectory) GetCreatedAt() int64 {
if o == nil {
return nil
return 0
}
return o.CreatedAt
}
func (o *GetAllLibrariesDirectory) GetScannedAt() *int64 {
func (o *GetAllLibrariesDirectory) GetScannedAt() int64 {
if o == nil {
return nil
return 0
}
return o.ScannedAt
}
func (o *GetAllLibrariesDirectory) GetContent() *bool {
func (o *GetAllLibrariesDirectory) GetContent() bool {
if o == nil {
return nil
return false
}
return o.Content
}
func (o *GetAllLibrariesDirectory) GetDirectory() *bool {
func (o *GetAllLibrariesDirectory) GetDirectory() bool {
if o == nil {
return nil
return false
}
return o.Directory
}
func (o *GetAllLibrariesDirectory) GetContentChangedAt() *int {
func (o *GetAllLibrariesDirectory) GetContentChangedAt() int {
if o == nil {
return nil
return 0
}
return o.ContentChangedAt
}
func (o *GetAllLibrariesDirectory) GetHidden() *int {
func (o *GetAllLibrariesDirectory) GetHidden() int {
if o == nil {
return nil
return 0
}
return o.Hidden
}
func (o *GetAllLibrariesDirectory) GetLocation() []Location {
if o == nil {
return nil
return []Location{}
}
return o.Location
}
@@ -203,7 +203,7 @@ type GetAllLibrariesMediaContainer struct {
Size int `json:"size"`
AllowSync bool `json:"allowSync"`
Title1 string `json:"title1"`
Directory []GetAllLibrariesDirectory `json:"Directory,omitempty"`
Directory []GetAllLibrariesDirectory `json:"Directory"`
}
func (o *GetAllLibrariesMediaContainer) GetSize() int {
@@ -229,19 +229,19 @@ func (o *GetAllLibrariesMediaContainer) GetTitle1() string {
func (o *GetAllLibrariesMediaContainer) GetDirectory() []GetAllLibrariesDirectory {
if o == nil {
return nil
return []GetAllLibrariesDirectory{}
}
return o.Directory
}
// GetAllLibrariesResponseBody - The libraries available on the Server
type GetAllLibrariesResponseBody struct {
MediaContainer *GetAllLibrariesMediaContainer `json:"MediaContainer,omitempty"`
MediaContainer GetAllLibrariesMediaContainer `json:"MediaContainer"`
}
func (o *GetAllLibrariesResponseBody) GetMediaContainer() *GetAllLibrariesMediaContainer {
func (o *GetAllLibrariesResponseBody) GetMediaContainer() GetAllLibrariesMediaContainer {
if o == nil {
return nil
return GetAllLibrariesMediaContainer{}
}
return o.MediaContainer
}

View File

@@ -26,7 +26,7 @@ type GetGeoDataGeoData struct {
// The time zone of the country.
TimeZone string `json:"time_zone"`
// The postal code of the location.
PostalCode int64 `json:"postal_code"`
PostalCode string `json:"postal_code"`
// Indicates if the country has privacy restrictions.
InPrivacyRestrictedCountry *bool `default:"false" json:"in_privacy_restricted_country"`
// Indicates if the region has privacy restrictions.
@@ -90,9 +90,9 @@ func (o *GetGeoDataGeoData) GetTimeZone() string {
return o.TimeZone
}
func (o *GetGeoDataGeoData) GetPostalCode() int64 {
func (o *GetGeoDataGeoData) GetPostalCode() string {
if o == nil {
return 0
return ""
}
return o.PostalCode
}

View File

@@ -90,18 +90,18 @@ func (e *Tag) UnmarshalJSON(data []byte) error {
}
// IncludeGuids - Adds the Guids object to the response
type IncludeGuids int64
type IncludeGuids int
const (
IncludeGuidsZero IncludeGuids = 0
IncludeGuidsOne IncludeGuids = 1
IncludeGuidsDisable IncludeGuids = 0
IncludeGuidsEnable IncludeGuids = 1
)
func (e IncludeGuids) ToPointer() *IncludeGuids {
return &e
}
func (e *IncludeGuids) UnmarshalJSON(data []byte) error {
var v int64
var v int
if err := json.Unmarshal(data, &v); err != nil {
return err
}
@@ -117,18 +117,18 @@ func (e *IncludeGuids) UnmarshalJSON(data []byte) error {
}
// IncludeMeta - Adds the Meta object to the response
type IncludeMeta int64
type IncludeMeta int
const (
IncludeMetaZero IncludeMeta = 0
IncludeMetaOne IncludeMeta = 1
IncludeMetaDisable IncludeMeta = 0
IncludeMetaEnable IncludeMeta = 1
)
func (e IncludeMeta) ToPointer() *IncludeMeta {
return &e
}
func (e *IncludeMeta) UnmarshalJSON(data []byte) error {
var v int64
var v int
if err := json.Unmarshal(data, &v); err != nil {
return err
}
@@ -152,10 +152,10 @@ func (e *IncludeMeta) UnmarshalJSON(data []byte) error {
type Type int64
const (
TypeOne Type = 1
TypeTwo Type = 2
TypeThree Type = 3
TypeFour Type = 4
TypeMovie Type = 1
TypeShow Type = 2
TypeSeason Type = 3
TypeEpisode Type = 4
)
func (e Type) ToPointer() *Type {
@@ -190,10 +190,10 @@ type GetLibraryItemsRequest struct {
Tag Tag `pathParam:"style=simple,explode=false,name=tag"`
// Adds the Guids object to the response
//
IncludeGuids *IncludeGuids `queryParam:"style=form,explode=true,name=includeGuids"`
IncludeGuids *IncludeGuids `default:"0" queryParam:"style=form,explode=true,name=includeGuids"`
// Adds the Meta object to the response
//
IncludeMeta *IncludeMeta `queryParam:"style=form,explode=true,name=includeMeta"`
IncludeMeta *IncludeMeta `default:"0" queryParam:"style=form,explode=true,name=includeMeta"`
// The type of media to retrieve.
// 1 = movie
// 2 = show
@@ -566,64 +566,81 @@ func (o *GetLibraryItemsRole) GetTag() *string {
return o.Tag
}
type MediaGUID struct {
// Can be one of the following formats:
// imdb://tt13015952, tmdb://2434012, tvdb://7945991
//
ID string `json:"id"`
}
func (o *MediaGUID) GetID() string {
if o == nil {
return ""
}
return o.ID
}
type GetLibraryItemsMetadata struct {
RatingKey *string `json:"ratingKey,omitempty"`
Key *string `json:"key,omitempty"`
GUID *string `json:"guid,omitempty"`
Studio *string `json:"studio,omitempty"`
Type *string `json:"type,omitempty"`
Title *string `json:"title,omitempty"`
ContentRating *string `json:"contentRating,omitempty"`
Summary *string `json:"summary,omitempty"`
Rating *float64 `json:"rating,omitempty"`
AudienceRating *float64 `json:"audienceRating,omitempty"`
Year *int `json:"year,omitempty"`
Tagline *string `json:"tagline,omitempty"`
Thumb *string `json:"thumb,omitempty"`
Art *string `json:"art,omitempty"`
Duration *int `json:"duration,omitempty"`
OriginallyAvailableAt *types.Date `json:"originallyAvailableAt,omitempty"`
AddedAt *int `json:"addedAt,omitempty"`
UpdatedAt *int `json:"updatedAt,omitempty"`
AudienceRatingImage *string `json:"audienceRatingImage,omitempty"`
ChapterSource *string `json:"chapterSource,omitempty"`
PrimaryExtraKey *string `json:"primaryExtraKey,omitempty"`
RatingImage *string `json:"ratingImage,omitempty"`
GrandparentRatingKey *string `json:"grandparentRatingKey,omitempty"`
GrandparentGUID *string `json:"grandparentGuid,omitempty"`
GrandparentKey *string `json:"grandparentKey,omitempty"`
GrandparentTitle *string `json:"grandparentTitle,omitempty"`
GrandparentThumb *string `json:"grandparentThumb,omitempty"`
GrandparentArt *string `json:"grandparentArt,omitempty"`
GrandparentTheme *string `json:"grandparentTheme,omitempty"`
Media []GetLibraryItemsMedia `json:"Media,omitempty"`
Genre []GetLibraryItemsGenre `json:"Genre,omitempty"`
Country []GetLibraryItemsCountry `json:"Country,omitempty"`
Director []GetLibraryItemsDirector `json:"Director,omitempty"`
Writer []GetLibraryItemsWriter `json:"Writer,omitempty"`
Role []GetLibraryItemsRole `json:"Role,omitempty"`
TitleSort *string `json:"titleSort,omitempty"`
ViewCount *int `json:"viewCount,omitempty"`
LastViewedAt *int `json:"lastViewedAt,omitempty"`
OriginalTitle *string `json:"originalTitle,omitempty"`
ViewOffset *int `json:"viewOffset,omitempty"`
SkipCount *int `json:"skipCount,omitempty"`
Index *int `json:"index,omitempty"`
Theme *string `json:"theme,omitempty"`
LeafCount *int `json:"leafCount,omitempty"`
ViewedLeafCount *int `json:"viewedLeafCount,omitempty"`
ChildCount *int `json:"childCount,omitempty"`
HasPremiumExtras *string `json:"hasPremiumExtras,omitempty"`
HasPremiumPrimaryExtra *string `json:"hasPremiumPrimaryExtra,omitempty"`
ParentRatingKey *string `json:"parentRatingKey,omitempty"`
ParentGUID *string `json:"parentGuid,omitempty"`
ParentStudio *string `json:"parentStudio,omitempty"`
ParentKey *string `json:"parentKey,omitempty"`
ParentTitle *string `json:"parentTitle,omitempty"`
ParentIndex *int `json:"parentIndex,omitempty"`
ParentYear *int `json:"parentYear,omitempty"`
ParentThumb *string `json:"parentThumb,omitempty"`
ParentTheme *string `json:"parentTheme,omitempty"`
RatingKey string `json:"ratingKey"`
Key string `json:"key"`
GUID string `json:"guid"`
Studio *string `json:"studio,omitempty"`
Type string `json:"type"`
Title string `json:"title"`
ContentRating *string `json:"contentRating,omitempty"`
Summary *string `json:"summary,omitempty"`
Rating *float64 `json:"rating,omitempty"`
AudienceRating *float64 `json:"audienceRating,omitempty"`
Year int `json:"year"`
Tagline *string `json:"tagline,omitempty"`
Thumb *string `json:"thumb,omitempty"`
Art *string `json:"art,omitempty"`
Duration int `json:"duration"`
OriginallyAvailableAt *types.Date `json:"originallyAvailableAt,omitempty"`
AddedAt *int `json:"addedAt,omitempty"`
UpdatedAt *int `json:"updatedAt,omitempty"`
AudienceRatingImage *string `json:"audienceRatingImage,omitempty"`
ChapterSource *string `json:"chapterSource,omitempty"`
PrimaryExtraKey *string `json:"primaryExtraKey,omitempty"`
RatingImage *string `json:"ratingImage,omitempty"`
GrandparentRatingKey *string `json:"grandparentRatingKey,omitempty"`
GrandparentGUID *string `json:"grandparentGuid,omitempty"`
GrandparentKey *string `json:"grandparentKey,omitempty"`
GrandparentTitle *string `json:"grandparentTitle,omitempty"`
GrandparentThumb *string `json:"grandparentThumb,omitempty"`
GrandparentArt *string `json:"grandparentArt,omitempty"`
GrandparentTheme *string `json:"grandparentTheme,omitempty"`
Media []GetLibraryItemsMedia `json:"Media"`
Genre []GetLibraryItemsGenre `json:"Genre,omitempty"`
Country []GetLibraryItemsCountry `json:"Country,omitempty"`
Director []GetLibraryItemsDirector `json:"Director,omitempty"`
Writer []GetLibraryItemsWriter `json:"Writer,omitempty"`
Role []GetLibraryItemsRole `json:"Role,omitempty"`
// The Guid object is only included in the response if the `includeGuids` parameter is set to `1`.
//
MediaGUID []MediaGUID `json:"Guid,omitempty"`
TitleSort *string `json:"titleSort,omitempty"`
ViewCount *int `json:"viewCount,omitempty"`
LastViewedAt *int `json:"lastViewedAt,omitempty"`
OriginalTitle *string `json:"originalTitle,omitempty"`
ViewOffset *int `json:"viewOffset,omitempty"`
SkipCount *int `json:"skipCount,omitempty"`
Index *int `json:"index,omitempty"`
Theme *string `json:"theme,omitempty"`
LeafCount *int `json:"leafCount,omitempty"`
ViewedLeafCount *int `json:"viewedLeafCount,omitempty"`
ChildCount *int `json:"childCount,omitempty"`
HasPremiumExtras *string `json:"hasPremiumExtras,omitempty"`
HasPremiumPrimaryExtra *string `json:"hasPremiumPrimaryExtra,omitempty"`
ParentRatingKey *string `json:"parentRatingKey,omitempty"`
ParentGUID *string `json:"parentGuid,omitempty"`
ParentStudio *string `json:"parentStudio,omitempty"`
ParentKey *string `json:"parentKey,omitempty"`
ParentTitle *string `json:"parentTitle,omitempty"`
ParentIndex *int `json:"parentIndex,omitempty"`
ParentYear *int `json:"parentYear,omitempty"`
ParentThumb *string `json:"parentThumb,omitempty"`
ParentTheme *string `json:"parentTheme,omitempty"`
}
func (g GetLibraryItemsMetadata) MarshalJSON() ([]byte, error) {
@@ -637,23 +654,23 @@ func (g *GetLibraryItemsMetadata) UnmarshalJSON(data []byte) error {
return nil
}
func (o *GetLibraryItemsMetadata) GetRatingKey() *string {
func (o *GetLibraryItemsMetadata) GetRatingKey() string {
if o == nil {
return nil
return ""
}
return o.RatingKey
}
func (o *GetLibraryItemsMetadata) GetKey() *string {
func (o *GetLibraryItemsMetadata) GetKey() string {
if o == nil {
return nil
return ""
}
return o.Key
}
func (o *GetLibraryItemsMetadata) GetGUID() *string {
func (o *GetLibraryItemsMetadata) GetGUID() string {
if o == nil {
return nil
return ""
}
return o.GUID
}
@@ -665,16 +682,16 @@ func (o *GetLibraryItemsMetadata) GetStudio() *string {
return o.Studio
}
func (o *GetLibraryItemsMetadata) GetType() *string {
func (o *GetLibraryItemsMetadata) GetType() string {
if o == nil {
return nil
return ""
}
return o.Type
}
func (o *GetLibraryItemsMetadata) GetTitle() *string {
func (o *GetLibraryItemsMetadata) GetTitle() string {
if o == nil {
return nil
return ""
}
return o.Title
}
@@ -707,9 +724,9 @@ func (o *GetLibraryItemsMetadata) GetAudienceRating() *float64 {
return o.AudienceRating
}
func (o *GetLibraryItemsMetadata) GetYear() *int {
func (o *GetLibraryItemsMetadata) GetYear() int {
if o == nil {
return nil
return 0
}
return o.Year
}
@@ -735,9 +752,9 @@ func (o *GetLibraryItemsMetadata) GetArt() *string {
return o.Art
}
func (o *GetLibraryItemsMetadata) GetDuration() *int {
func (o *GetLibraryItemsMetadata) GetDuration() int {
if o == nil {
return nil
return 0
}
return o.Duration
}
@@ -842,7 +859,7 @@ func (o *GetLibraryItemsMetadata) GetGrandparentTheme() *string {
func (o *GetLibraryItemsMetadata) GetMedia() []GetLibraryItemsMedia {
if o == nil {
return nil
return []GetLibraryItemsMedia{}
}
return o.Media
}
@@ -882,6 +899,13 @@ func (o *GetLibraryItemsMetadata) GetRole() []GetLibraryItemsRole {
return o.Role
}
func (o *GetLibraryItemsMetadata) GetMediaGUID() []MediaGUID {
if o == nil {
return nil
}
return o.MediaGUID
}
func (o *GetLibraryItemsMetadata) GetTitleSort() *string {
if o == nil {
return nil
@@ -1036,112 +1060,361 @@ func (o *GetLibraryItemsMetadata) GetParentTheme() *string {
return o.ParentTheme
}
type GetLibraryItemsFilter struct {
Filter string `json:"filter"`
FilterType string `json:"filterType"`
Key string `json:"key"`
Title string `json:"title"`
Type string `json:"type"`
}
func (o *GetLibraryItemsFilter) GetFilter() string {
if o == nil {
return ""
}
return o.Filter
}
func (o *GetLibraryItemsFilter) GetFilterType() string {
if o == nil {
return ""
}
return o.FilterType
}
func (o *GetLibraryItemsFilter) GetKey() string {
if o == nil {
return ""
}
return o.Key
}
func (o *GetLibraryItemsFilter) GetTitle() string {
if o == nil {
return ""
}
return o.Title
}
func (o *GetLibraryItemsFilter) GetType() string {
if o == nil {
return ""
}
return o.Type
}
type GetLibraryItemsSort struct {
Default *string `json:"default,omitempty"`
DefaultDirection string `json:"defaultDirection"`
DescKey *string `json:"descKey,omitempty"`
FirstCharacterKey *string `json:"firstCharacterKey,omitempty"`
Key string `json:"key"`
Title string `json:"title"`
}
func (o *GetLibraryItemsSort) GetDefault() *string {
if o == nil {
return nil
}
return o.Default
}
func (o *GetLibraryItemsSort) GetDefaultDirection() string {
if o == nil {
return ""
}
return o.DefaultDirection
}
func (o *GetLibraryItemsSort) GetDescKey() *string {
if o == nil {
return nil
}
return o.DescKey
}
func (o *GetLibraryItemsSort) GetFirstCharacterKey() *string {
if o == nil {
return nil
}
return o.FirstCharacterKey
}
func (o *GetLibraryItemsSort) GetKey() string {
if o == nil {
return ""
}
return o.Key
}
func (o *GetLibraryItemsSort) GetTitle() string {
if o == nil {
return ""
}
return o.Title
}
type GetLibraryItemsField struct {
Key string `json:"key"`
Title string `json:"title"`
Type string `json:"type"`
SubType *string `json:"subType,omitempty"`
}
func (o *GetLibraryItemsField) GetKey() string {
if o == nil {
return ""
}
return o.Key
}
func (o *GetLibraryItemsField) GetTitle() string {
if o == nil {
return ""
}
return o.Title
}
func (o *GetLibraryItemsField) GetType() string {
if o == nil {
return ""
}
return o.Type
}
func (o *GetLibraryItemsField) GetSubType() *string {
if o == nil {
return nil
}
return o.SubType
}
type GetLibraryItemsType struct {
Key string `json:"key"`
Type string `json:"type"`
Title string `json:"title"`
Active bool `json:"active"`
Filter []GetLibraryItemsFilter `json:"Filter,omitempty"`
Sort []GetLibraryItemsSort `json:"Sort,omitempty"`
Field []GetLibraryItemsField `json:"Field,omitempty"`
}
func (o *GetLibraryItemsType) GetKey() string {
if o == nil {
return ""
}
return o.Key
}
func (o *GetLibraryItemsType) GetType() string {
if o == nil {
return ""
}
return o.Type
}
func (o *GetLibraryItemsType) GetTitle() string {
if o == nil {
return ""
}
return o.Title
}
func (o *GetLibraryItemsType) GetActive() bool {
if o == nil {
return false
}
return o.Active
}
func (o *GetLibraryItemsType) GetFilter() []GetLibraryItemsFilter {
if o == nil {
return nil
}
return o.Filter
}
func (o *GetLibraryItemsType) GetSort() []GetLibraryItemsSort {
if o == nil {
return nil
}
return o.Sort
}
func (o *GetLibraryItemsType) GetField() []GetLibraryItemsField {
if o == nil {
return nil
}
return o.Field
}
type GetLibraryItemsOperator struct {
Key string `json:"key"`
Title string `json:"title"`
}
func (o *GetLibraryItemsOperator) GetKey() string {
if o == nil {
return ""
}
return o.Key
}
func (o *GetLibraryItemsOperator) GetTitle() string {
if o == nil {
return ""
}
return o.Title
}
type GetLibraryItemsFieldType struct {
Type string `json:"type"`
Operator []GetLibraryItemsOperator `json:"Operator"`
}
func (o *GetLibraryItemsFieldType) GetType() string {
if o == nil {
return ""
}
return o.Type
}
func (o *GetLibraryItemsFieldType) GetOperator() []GetLibraryItemsOperator {
if o == nil {
return []GetLibraryItemsOperator{}
}
return o.Operator
}
// The Meta object is only included in the response if the `includeMeta` parameter is set to `1`.
type Meta struct {
Type []GetLibraryItemsType `json:"Type,omitempty"`
FieldType []GetLibraryItemsFieldType `json:"FieldType,omitempty"`
}
func (o *Meta) GetType() []GetLibraryItemsType {
if o == nil {
return nil
}
return o.Type
}
func (o *Meta) GetFieldType() []GetLibraryItemsFieldType {
if o == nil {
return nil
}
return o.FieldType
}
type GetLibraryItemsMediaContainer struct {
Size *int `json:"size,omitempty"`
AllowSync *bool `json:"allowSync,omitempty"`
Art *string `json:"art,omitempty"`
Identifier *string `json:"identifier,omitempty"`
LibrarySectionID *LibrarySectionID `json:"librarySectionID,omitempty"`
LibrarySectionTitle *string `json:"librarySectionTitle,omitempty"`
LibrarySectionUUID *string `json:"librarySectionUUID,omitempty"`
MediaTagPrefix *string `json:"mediaTagPrefix,omitempty"`
MediaTagVersion *int `json:"mediaTagVersion,omitempty"`
Thumb *string `json:"thumb,omitempty"`
Title1 *string `json:"title1,omitempty"`
Title2 *string `json:"title2,omitempty"`
ViewGroup *string `json:"viewGroup,omitempty"`
Size int `json:"size"`
AllowSync bool `json:"allowSync"`
Art string `json:"art"`
Identifier string `json:"identifier"`
LibrarySectionID LibrarySectionID `json:"librarySectionID"`
LibrarySectionTitle string `json:"librarySectionTitle"`
LibrarySectionUUID string `json:"librarySectionUUID"`
MediaTagPrefix string `json:"mediaTagPrefix"`
MediaTagVersion int `json:"mediaTagVersion"`
Thumb string `json:"thumb"`
Title1 string `json:"title1"`
Title2 string `json:"title2"`
ViewGroup string `json:"viewGroup"`
ViewMode *int `json:"viewMode,omitempty"`
MixedParents *bool `json:"mixedParents,omitempty"`
Metadata []GetLibraryItemsMetadata `json:"Metadata,omitempty"`
// The Meta object is only included in the response if the `includeMeta` parameter is set to `1`.
//
Meta *Meta `json:"Meta,omitempty"`
}
func (o *GetLibraryItemsMediaContainer) GetSize() *int {
func (o *GetLibraryItemsMediaContainer) GetSize() int {
if o == nil {
return nil
return 0
}
return o.Size
}
func (o *GetLibraryItemsMediaContainer) GetAllowSync() *bool {
func (o *GetLibraryItemsMediaContainer) GetAllowSync() bool {
if o == nil {
return nil
return false
}
return o.AllowSync
}
func (o *GetLibraryItemsMediaContainer) GetArt() *string {
func (o *GetLibraryItemsMediaContainer) GetArt() string {
if o == nil {
return nil
return ""
}
return o.Art
}
func (o *GetLibraryItemsMediaContainer) GetIdentifier() *string {
func (o *GetLibraryItemsMediaContainer) GetIdentifier() string {
if o == nil {
return nil
return ""
}
return o.Identifier
}
func (o *GetLibraryItemsMediaContainer) GetLibrarySectionID() *LibrarySectionID {
func (o *GetLibraryItemsMediaContainer) GetLibrarySectionID() LibrarySectionID {
if o == nil {
return nil
return LibrarySectionID{}
}
return o.LibrarySectionID
}
func (o *GetLibraryItemsMediaContainer) GetLibrarySectionTitle() *string {
func (o *GetLibraryItemsMediaContainer) GetLibrarySectionTitle() string {
if o == nil {
return nil
return ""
}
return o.LibrarySectionTitle
}
func (o *GetLibraryItemsMediaContainer) GetLibrarySectionUUID() *string {
func (o *GetLibraryItemsMediaContainer) GetLibrarySectionUUID() string {
if o == nil {
return nil
return ""
}
return o.LibrarySectionUUID
}
func (o *GetLibraryItemsMediaContainer) GetMediaTagPrefix() *string {
func (o *GetLibraryItemsMediaContainer) GetMediaTagPrefix() string {
if o == nil {
return nil
return ""
}
return o.MediaTagPrefix
}
func (o *GetLibraryItemsMediaContainer) GetMediaTagVersion() *int {
func (o *GetLibraryItemsMediaContainer) GetMediaTagVersion() int {
if o == nil {
return nil
return 0
}
return o.MediaTagVersion
}
func (o *GetLibraryItemsMediaContainer) GetThumb() *string {
func (o *GetLibraryItemsMediaContainer) GetThumb() string {
if o == nil {
return nil
return ""
}
return o.Thumb
}
func (o *GetLibraryItemsMediaContainer) GetTitle1() *string {
func (o *GetLibraryItemsMediaContainer) GetTitle1() string {
if o == nil {
return nil
return ""
}
return o.Title1
}
func (o *GetLibraryItemsMediaContainer) GetTitle2() *string {
func (o *GetLibraryItemsMediaContainer) GetTitle2() string {
if o == nil {
return nil
return ""
}
return o.Title2
}
func (o *GetLibraryItemsMediaContainer) GetViewGroup() *string {
func (o *GetLibraryItemsMediaContainer) GetViewGroup() string {
if o == nil {
return nil
return ""
}
return o.ViewGroup
}
@@ -1167,6 +1440,13 @@ func (o *GetLibraryItemsMediaContainer) GetMetadata() []GetLibraryItemsMetadata
return o.Metadata
}
func (o *GetLibraryItemsMediaContainer) GetMeta() *Meta {
if o == nil {
return nil
}
return o.Meta
}
// GetLibraryItemsResponseBody - The contents of the library by section and tag
type GetLibraryItemsResponseBody struct {
MediaContainer *GetLibraryItemsMediaContainer `json:"MediaContainer,omitempty"`

View File

@@ -13,22 +13,10 @@ var GetPinServerList = []string{
}
type GetPinGlobals struct {
// 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)
//
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) GetClientID() *string {
if o == nil {
return nil
}
return o.ClientID
ClientName *string `queryParam:"style=form,explode=true,name=X-Plex-Product"`
DeviceName *string `queryParam:"style=form,explode=true,name=X-Plex-Device"`
ClientVersion *string `queryParam:"style=form,explode=true,name=X-Plex-Version"`
ClientPlatform *string `queryParam:"style=form,explode=true,name=X-Plex-Platform"`
}
func (o *GetPinGlobals) GetClientName() *string {
@@ -52,11 +40,11 @@ func (o *GetPinGlobals) GetClientVersion() *string {
return o.ClientVersion
}
func (o *GetPinGlobals) GetXPlexPlatform() *string {
func (o *GetPinGlobals) GetClientPlatform() *string {
if o == nil {
return nil
}
return o.XPlexPlatform
return o.ClientPlatform
}
type GetPinRequest struct {
@@ -64,16 +52,11 @@ type GetPinRequest struct {
// Strong codes are used for Pin authentication flows
// Non-Strong codes are used for `Plex.tv/link`
//
Strong *bool `default:"false" queryParam:"style=form,explode=true,name=strong"`
// 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)
//
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"`
Strong *bool `default:"false" queryParam:"style=form,explode=true,name=strong"`
ClientName *string `queryParam:"style=form,explode=true,name=X-Plex-Product"`
DeviceName *string `queryParam:"style=form,explode=true,name=X-Plex-Device"`
ClientVersion *string `queryParam:"style=form,explode=true,name=X-Plex-Version"`
ClientPlatform *string `queryParam:"style=form,explode=true,name=X-Plex-Platform"`
}
func (g GetPinRequest) MarshalJSON() ([]byte, error) {
@@ -94,13 +77,6 @@ func (o *GetPinRequest) GetStrong() *bool {
return o.Strong
}
func (o *GetPinRequest) GetClientID() *string {
if o == nil {
return nil
}
return o.ClientID
}
func (o *GetPinRequest) GetClientName() *string {
if o == nil {
return nil
@@ -122,11 +98,11 @@ func (o *GetPinRequest) GetClientVersion() *string {
return o.ClientVersion
}
func (o *GetPinRequest) GetXPlexPlatform() *string {
func (o *GetPinRequest) GetClientPlatform() *string {
if o == nil {
return nil
}
return o.XPlexPlatform
return o.ClientPlatform
}
// GeoData - Geo location data
@@ -144,7 +120,7 @@ type GeoData struct {
// The time zone of the country.
TimeZone string `json:"time_zone"`
// The postal code of the location.
PostalCode int64 `json:"postal_code"`
PostalCode string `json:"postal_code"`
// Indicates if the country has privacy restrictions.
InPrivacyRestrictedCountry *bool `default:"false" json:"in_privacy_restricted_country"`
// Indicates if the region has privacy restrictions.
@@ -208,9 +184,9 @@ func (o *GeoData) GetTimeZone() string {
return o.TimeZone
}
func (o *GeoData) GetPostalCode() int64 {
func (o *GeoData) GetPostalCode() string {
if o == nil {
return 0
return ""
}
return o.PostalCode
}
@@ -258,7 +234,7 @@ type GetPinAuthPinContainer struct {
ExpiresIn *int64 `default:"900" json:"expiresIn"`
CreatedAt time.Time `json:"createdAt"`
ExpiresAt time.Time `json:"expiresAt"`
AuthToken any `json:"authToken,omitempty"`
AuthToken *string `json:"authToken,omitempty"`
NewRegistration any `json:"newRegistration,omitempty"`
}
@@ -343,7 +319,7 @@ func (o *GetPinAuthPinContainer) GetExpiresAt() time.Time {
return o.ExpiresAt
}
func (o *GetPinAuthPinContainer) GetAuthToken() any {
func (o *GetPinAuthPinContainer) GetAuthToken() *string {
if o == nil {
return nil
}

View File

@@ -19,10 +19,10 @@ import (
type GetPlaylistContentsQueryParamType int64
const (
GetPlaylistContentsQueryParamTypeOne GetPlaylistContentsQueryParamType = 1
GetPlaylistContentsQueryParamTypeTwo GetPlaylistContentsQueryParamType = 2
GetPlaylistContentsQueryParamTypeThree GetPlaylistContentsQueryParamType = 3
GetPlaylistContentsQueryParamTypeFour GetPlaylistContentsQueryParamType = 4
GetPlaylistContentsQueryParamTypeMovie GetPlaylistContentsQueryParamType = 1
GetPlaylistContentsQueryParamTypeShow GetPlaylistContentsQueryParamType = 2
GetPlaylistContentsQueryParamTypeSeason GetPlaylistContentsQueryParamType = 3
GetPlaylistContentsQueryParamTypeEpisode GetPlaylistContentsQueryParamType = 4
)
func (e GetPlaylistContentsQueryParamType) ToPointer() *GetPlaylistContentsQueryParamType {

View File

@@ -17,10 +17,10 @@ import (
type QueryParamType int64
const (
QueryParamTypeOne QueryParamType = 1
QueryParamTypeTwo QueryParamType = 2
QueryParamTypeThree QueryParamType = 3
QueryParamTypeFour QueryParamType = 4
QueryParamTypeMovie QueryParamType = 1
QueryParamTypeShow QueryParamType = 2
QueryParamTypeSeason QueryParamType = 3
QueryParamTypeEpisode QueryParamType = 4
)
func (e QueryParamType) ToPointer() *QueryParamType {

View File

@@ -14,27 +14,12 @@ var GetServerResourcesServerList = []string{
"https://plex.tv/api/v2/",
}
type GetServerResourcesGlobals struct {
// 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)
//
ClientID *string `queryParam:"style=form,explode=true,name=X-Plex-Client-Identifier"`
}
func (o *GetServerResourcesGlobals) GetClientID() *string {
if o == nil {
return nil
}
return o.ClientID
}
// IncludeHTTPS - Include Https entries in the results
type IncludeHTTPS int
const (
IncludeHTTPSZero IncludeHTTPS = 0
IncludeHTTPSOne IncludeHTTPS = 1
IncludeHTTPSDisable IncludeHTTPS = 0
IncludeHTTPSEnable IncludeHTTPS = 1
)
func (e IncludeHTTPS) ToPointer() *IncludeHTTPS {
@@ -61,8 +46,8 @@ func (e *IncludeHTTPS) UnmarshalJSON(data []byte) error {
type IncludeRelay int
const (
IncludeRelayZero IncludeRelay = 0
IncludeRelayOne IncludeRelay = 1
IncludeRelayDisable IncludeRelay = 0
IncludeRelayEnable IncludeRelay = 1
)
func (e IncludeRelay) ToPointer() *IncludeRelay {
@@ -88,8 +73,8 @@ func (e *IncludeRelay) UnmarshalJSON(data []byte) error {
type IncludeIPv6 int
const (
IncludeIPv6Zero IncludeIPv6 = 0
IncludeIPv6One IncludeIPv6 = 1
IncludeIPv6Disable IncludeIPv6 = 0
IncludeIPv6Enable IncludeIPv6 = 1
)
func (e IncludeIPv6) ToPointer() *IncludeIPv6 {
@@ -112,11 +97,6 @@ func (e *IncludeIPv6) UnmarshalJSON(data []byte) error {
}
type GetServerResourcesRequest struct {
// 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)
//
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,13 +118,6 @@ func (g *GetServerResourcesRequest) UnmarshalJSON(data []byte) error {
return nil
}
func (o *GetServerResourcesRequest) GetClientID() *string {
if o == nil {
return nil
}
return o.ClientID
}
func (o *GetServerResourcesRequest) GetIncludeHTTPS() *IncludeHTTPS {
if o == nil {
return nil
@@ -166,19 +139,53 @@ func (o *GetServerResourcesRequest) GetIncludeIPv6() *IncludeIPv6 {
return o.IncludeIPv6
}
type Connections struct {
Protocol string `json:"protocol"`
Address string `json:"address"`
Port float64 `json:"port"`
URI string `json:"uri"`
Local bool `json:"local"`
Relay bool `json:"relay"`
IPv6 bool `json:"IPv6"`
// Protocol - The protocol used for the connection (http, https, etc)
type Protocol string
const (
ProtocolHTTP Protocol = "http"
ProtocolHTTPS Protocol = "https"
)
func (e Protocol) ToPointer() *Protocol {
return &e
}
func (e *Protocol) UnmarshalJSON(data []byte) error {
var v string
if err := json.Unmarshal(data, &v); err != nil {
return err
}
switch v {
case "http":
fallthrough
case "https":
*e = Protocol(v)
return nil
default:
return fmt.Errorf("invalid value for Protocol: %v", v)
}
}
func (o *Connections) GetProtocol() string {
type Connections struct {
// The protocol used for the connection (http, https, etc)
Protocol Protocol `json:"protocol"`
// The (ip) address or domain name used for the connection
Address string `json:"address"`
// The port used for the connection
Port int `json:"port"`
// The full URI of the connection
URI string `json:"uri"`
// If the connection is local address
Local bool `json:"local"`
// If the connection is relayed through plex.direct
Relay bool `json:"relay"`
// If the connection is using IPv6
IPv6 bool `json:"IPv6"`
}
func (o *Connections) GetProtocol() Protocol {
if o == nil {
return ""
return Protocol("")
}
return o.Protocol
}
@@ -190,9 +197,9 @@ func (o *Connections) GetAddress() string {
return o.Address
}
func (o *Connections) GetPort() float64 {
func (o *Connections) GetPort() int {
if o == nil {
return 0.0
return 0
}
return o.Port
}

View File

@@ -12,38 +12,11 @@ var GetTokenByPinIDServerList = []string{
"https://plex.tv/api/v2/",
}
type GetTokenByPinIDGlobals struct {
// 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)
//
ClientID *string `queryParam:"style=form,explode=true,name=X-Plex-Client-Identifier"`
}
func (o *GetTokenByPinIDGlobals) GetClientID() *string {
if o == nil {
return nil
}
return o.ClientID
}
type GetTokenByPinIDRequest struct {
// 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)
//
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) GetClientID() *string {
if o == nil {
return nil
}
return o.ClientID
}
func (o *GetTokenByPinIDRequest) GetPinID() int64 {
if o == nil {
return 0
@@ -66,7 +39,7 @@ type GetTokenByPinIDGeoData struct {
// The time zone of the country.
TimeZone string `json:"time_zone"`
// The postal code of the location.
PostalCode int64 `json:"postal_code"`
PostalCode string `json:"postal_code"`
// Indicates if the country has privacy restrictions.
InPrivacyRestrictedCountry *bool `default:"false" json:"in_privacy_restricted_country"`
// Indicates if the region has privacy restrictions.
@@ -130,9 +103,9 @@ func (o *GetTokenByPinIDGeoData) GetTimeZone() string {
return o.TimeZone
}
func (o *GetTokenByPinIDGeoData) GetPostalCode() int64 {
func (o *GetTokenByPinIDGeoData) GetPostalCode() string {
if o == nil {
return 0
return ""
}
return o.PostalCode
}
@@ -180,7 +153,7 @@ type GetTokenByPinIDAuthPinContainer struct {
ExpiresIn *int64 `default:"900" json:"expiresIn"`
CreatedAt time.Time `json:"createdAt"`
ExpiresAt time.Time `json:"expiresAt"`
AuthToken any `json:"authToken,omitempty"`
AuthToken *string `json:"authToken,omitempty"`
NewRegistration any `json:"newRegistration,omitempty"`
}
@@ -265,7 +238,7 @@ func (o *GetTokenByPinIDAuthPinContainer) GetExpiresAt() time.Time {
return o.ExpiresAt
}
func (o *GetTokenByPinIDAuthPinContainer) GetAuthToken() any {
func (o *GetTokenByPinIDAuthPinContainer) GetAuthToken() *string {
if o == nil {
return nil
}

View File

@@ -42,25 +42,25 @@ func (e *MailingListStatus) UnmarshalJSON(data []byte) error {
}
// AutoSelectSubtitle - The auto-select subtitle mode (0 = Manually selected, 1 = Shown with foreign audio, 2 = Always enabled)
type AutoSelectSubtitle string
type AutoSelectSubtitle int
const (
AutoSelectSubtitleZero AutoSelectSubtitle = "0"
AutoSelectSubtitleOne AutoSelectSubtitle = "1"
AutoSelectSubtitleDisable AutoSelectSubtitle = 0
AutoSelectSubtitleEnable AutoSelectSubtitle = 1
)
func (e AutoSelectSubtitle) ToPointer() *AutoSelectSubtitle {
return &e
}
func (e *AutoSelectSubtitle) UnmarshalJSON(data []byte) error {
var v string
var v int
if err := json.Unmarshal(data, &v); err != nil {
return err
}
switch v {
case "0":
case 0:
fallthrough
case "1":
case 1:
*e = AutoSelectSubtitle(v)
return nil
default:
@@ -68,26 +68,26 @@ func (e *AutoSelectSubtitle) UnmarshalJSON(data []byte) error {
}
}
// DefaultSubtitleAccessibility - The subtitles for the deaf or hard-of-hearing (SDH) searches mode (0 = Prefer non-SDH subtitles, 1 = Prefer SDH subtitles, 2 = Only show SDH subtitles, 3 = Only shown non-SDH subtitles)
type DefaultSubtitleAccessibility string
// DefaultSubtitleAccessibility - The subtitles for the deaf or hard-of-hearing (SDH) searches mode (0 = Prefer non-SDH subtitles, 1 = Prefer SDH subtitles, 2 = Only show SDH subtitles, 3 = Only show non-SDH subtitles)
type DefaultSubtitleAccessibility int
const (
DefaultSubtitleAccessibilityZero DefaultSubtitleAccessibility = "0"
DefaultSubtitleAccessibilityOne DefaultSubtitleAccessibility = "1"
DefaultSubtitleAccessibilityDisable DefaultSubtitleAccessibility = 0
DefaultSubtitleAccessibilityEnable DefaultSubtitleAccessibility = 1
)
func (e DefaultSubtitleAccessibility) ToPointer() *DefaultSubtitleAccessibility {
return &e
}
func (e *DefaultSubtitleAccessibility) UnmarshalJSON(data []byte) error {
var v string
var v int
if err := json.Unmarshal(data, &v); err != nil {
return err
}
switch v {
case "0":
case 0:
fallthrough
case "1":
case 1:
*e = DefaultSubtitleAccessibility(v)
return nil
default:
@@ -96,25 +96,25 @@ func (e *DefaultSubtitleAccessibility) UnmarshalJSON(data []byte) error {
}
// DefaultSubtitleForced - The forced subtitles searches mode (0 = Prefer non-forced subtitles, 1 = Prefer forced subtitles, 2 = Only show forced subtitles, 3 = Only show non-forced subtitles)
type DefaultSubtitleForced string
type DefaultSubtitleForced int
const (
DefaultSubtitleForcedZero DefaultSubtitleForced = "0"
DefaultSubtitleForcedOne DefaultSubtitleForced = "1"
DefaultSubtitleForcedDisable DefaultSubtitleForced = 0
DefaultSubtitleForcedEnable DefaultSubtitleForced = 1
)
func (e DefaultSubtitleForced) ToPointer() *DefaultSubtitleForced {
return &e
}
func (e *DefaultSubtitleForced) UnmarshalJSON(data []byte) error {
var v string
var v int
if err := json.Unmarshal(data, &v); err != nil {
return err
}
switch v {
case "0":
case 0:
fallthrough
case "1":
case 1:
*e = DefaultSubtitleForced(v)
return nil
default:
@@ -122,25 +122,26 @@ func (e *DefaultSubtitleForced) UnmarshalJSON(data []byte) error {
}
}
type WatchedIndicator string
// WatchedIndicator - Whether or not media watched indicators are enabled (little orange dot on media)
type WatchedIndicator int
const (
WatchedIndicatorZero WatchedIndicator = "0"
WatchedIndicatorOne WatchedIndicator = "1"
WatchedIndicatorDisable WatchedIndicator = 0
WatchedIndicatorEnable WatchedIndicator = 1
)
func (e WatchedIndicator) ToPointer() *WatchedIndicator {
return &e
}
func (e *WatchedIndicator) UnmarshalJSON(data []byte) error {
var v string
var v int
if err := json.Unmarshal(data, &v); err != nil {
return err
}
switch v {
case "0":
case 0:
fallthrough
case "1":
case 1:
*e = WatchedIndicator(v)
return nil
default:
@@ -148,18 +149,19 @@ func (e *WatchedIndicator) UnmarshalJSON(data []byte) error {
}
}
type MediaReviewsVisibility int64
// MediaReviewsVisibility - Whether or not the account has media reviews visibility enabled
type MediaReviewsVisibility int
const (
MediaReviewsVisibilityZero MediaReviewsVisibility = 0
MediaReviewsVisibilityOne MediaReviewsVisibility = 1
MediaReviewsVisibilityDisable MediaReviewsVisibility = 0
MediaReviewsVisibilityEnable MediaReviewsVisibility = 1
)
func (e MediaReviewsVisibility) ToPointer() *MediaReviewsVisibility {
return &e
}
func (e *MediaReviewsVisibility) UnmarshalJSON(data []byte) error {
var v int64
var v int
if err := json.Unmarshal(data, &v); err != nil {
return err
}
@@ -180,15 +182,12 @@ type UserProfile struct {
// The preferred audio language for the account
DefaultAudioLanguage *string `json:"defaultAudioLanguage"`
// The preferred subtitle language for the account
DefaultSubtitleLanguage *string `json:"defaultSubtitleLanguage"`
// The auto-select subtitle mode (0 = Manually selected, 1 = Shown with foreign audio, 2 = Always enabled)
AutoSelectSubtitle *AutoSelectSubtitle `json:"autoSelectSubtitle,omitempty"`
// The subtitles for the deaf or hard-of-hearing (SDH) searches mode (0 = Prefer non-SDH subtitles, 1 = Prefer SDH subtitles, 2 = Only show SDH subtitles, 3 = Only shown non-SDH subtitles)
DefaultSubtitleAccessibility *DefaultSubtitleAccessibility `json:"defaultSubtitleAccessibility,omitempty"`
// The forced subtitles searches mode (0 = Prefer non-forced subtitles, 1 = Prefer forced subtitles, 2 = Only show forced subtitles, 3 = Only show non-forced subtitles)
DefaultSubtitleForced *DefaultSubtitleForced `json:"defaultSubtitleForced,omitempty"`
WatchedIndicator *WatchedIndicator `json:"watchedIndicator,omitempty"`
MediaReviewsVisibility *MediaReviewsVisibility `json:"mediaReviewsVisibility,omitempty"`
DefaultSubtitleLanguage *string `json:"defaultSubtitleLanguage"`
AutoSelectSubtitle *AutoSelectSubtitle `default:"0" json:"autoSelectSubtitle"`
DefaultSubtitleAccessibility *DefaultSubtitleAccessibility `default:"0" json:"defaultSubtitleAccessibility"`
DefaultSubtitleForced *DefaultSubtitleForced `default:"0" json:"defaultSubtitleForced"`
WatchedIndicator *WatchedIndicator `default:"0" json:"watchedIndicator"`
MediaReviewsVisibility *MediaReviewsVisibility `default:"0" json:"mediaReviewsVisibility"`
}
func (u UserProfile) MarshalJSON() ([]byte, error) {
@@ -930,7 +929,7 @@ type GetTokenDetailsUserPlexAccount struct {
HomeSize int `json:"homeSize"`
// The Plex account ID
ID int `json:"id"`
// Unix epoch datetime
// Unix epoch datetime in seconds
JoinedAt int64 `json:"joinedAt"`
// The account locale
Locale *string `json:"locale"`
@@ -947,7 +946,7 @@ type GetTokenDetailsUserPlexAccount struct {
Profile UserProfile `json:"profile"`
// If the account has a Plex Home PIN enabled
Protected *bool `default:"false" json:"protected"`
// Unix epoch datetime
// Unix epoch datetime in seconds
RememberExpiresAt int64 `json:"rememberExpiresAt"`
// If the account is a Plex Home managed user
Restricted *bool `default:"false" json:"restricted"`

View File

@@ -19,10 +19,10 @@ import (
type GetTopWatchedContentQueryParamType int64
const (
GetTopWatchedContentQueryParamTypeOne GetTopWatchedContentQueryParamType = 1
GetTopWatchedContentQueryParamTypeTwo GetTopWatchedContentQueryParamType = 2
GetTopWatchedContentQueryParamTypeThree GetTopWatchedContentQueryParamType = 3
GetTopWatchedContentQueryParamTypeFour GetTopWatchedContentQueryParamType = 4
GetTopWatchedContentQueryParamTypeMovie GetTopWatchedContentQueryParamType = 1
GetTopWatchedContentQueryParamTypeShow GetTopWatchedContentQueryParamType = 2
GetTopWatchedContentQueryParamTypeSeason GetTopWatchedContentQueryParamType = 3
GetTopWatchedContentQueryParamTypeEpisode GetTopWatchedContentQueryParamType = 4
)
func (e GetTopWatchedContentQueryParamType) ToPointer() *GetTopWatchedContentQueryParamType {

View File

@@ -14,21 +14,6 @@ var PostUsersSignInDataServerList = []string{
"https://plex.tv/api/v2/",
}
type PostUsersSignInDataGlobals struct {
// 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)
//
ClientID *string `queryParam:"style=form,explode=true,name=X-Plex-Client-Identifier"`
}
func (o *PostUsersSignInDataGlobals) GetClientID() *string {
if o == nil {
return nil
}
return o.ClientID
}
// PostUsersSignInDataRequestBody - Login credentials
type PostUsersSignInDataRequestBody struct {
Login string `form:"name=login"`
@@ -76,30 +61,6 @@ func (o *PostUsersSignInDataRequestBody) GetVerificationCode() *string {
return o.VerificationCode
}
type PostUsersSignInDataRequest struct {
// 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)
//
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) GetClientID() *string {
if o == nil {
return nil
}
return o.ClientID
}
func (o *PostUsersSignInDataRequest) GetRequestBody() *PostUsersSignInDataRequestBody {
if o == nil {
return nil
}
return o.RequestBody
}
// PostUsersSignInDataMailingListStatus - Your current mailing list status
type PostUsersSignInDataMailingListStatus string
@@ -128,25 +89,25 @@ func (e *PostUsersSignInDataMailingListStatus) UnmarshalJSON(data []byte) error
}
// PostUsersSignInDataAutoSelectSubtitle - The auto-select subtitle mode (0 = Manually selected, 1 = Shown with foreign audio, 2 = Always enabled)
type PostUsersSignInDataAutoSelectSubtitle string
type PostUsersSignInDataAutoSelectSubtitle int
const (
PostUsersSignInDataAutoSelectSubtitleZero PostUsersSignInDataAutoSelectSubtitle = "0"
PostUsersSignInDataAutoSelectSubtitleOne PostUsersSignInDataAutoSelectSubtitle = "1"
PostUsersSignInDataAutoSelectSubtitleDisable PostUsersSignInDataAutoSelectSubtitle = 0
PostUsersSignInDataAutoSelectSubtitleEnable PostUsersSignInDataAutoSelectSubtitle = 1
)
func (e PostUsersSignInDataAutoSelectSubtitle) ToPointer() *PostUsersSignInDataAutoSelectSubtitle {
return &e
}
func (e *PostUsersSignInDataAutoSelectSubtitle) UnmarshalJSON(data []byte) error {
var v string
var v int
if err := json.Unmarshal(data, &v); err != nil {
return err
}
switch v {
case "0":
case 0:
fallthrough
case "1":
case 1:
*e = PostUsersSignInDataAutoSelectSubtitle(v)
return nil
default:
@@ -154,26 +115,26 @@ func (e *PostUsersSignInDataAutoSelectSubtitle) UnmarshalJSON(data []byte) error
}
}
// PostUsersSignInDataDefaultSubtitleAccessibility - The subtitles for the deaf or hard-of-hearing (SDH) searches mode (0 = Prefer non-SDH subtitles, 1 = Prefer SDH subtitles, 2 = Only show SDH subtitles, 3 = Only shown non-SDH subtitles)
type PostUsersSignInDataDefaultSubtitleAccessibility string
// PostUsersSignInDataDefaultSubtitleAccessibility - The subtitles for the deaf or hard-of-hearing (SDH) searches mode (0 = Prefer non-SDH subtitles, 1 = Prefer SDH subtitles, 2 = Only show SDH subtitles, 3 = Only show non-SDH subtitles)
type PostUsersSignInDataDefaultSubtitleAccessibility int
const (
PostUsersSignInDataDefaultSubtitleAccessibilityZero PostUsersSignInDataDefaultSubtitleAccessibility = "0"
PostUsersSignInDataDefaultSubtitleAccessibilityOne PostUsersSignInDataDefaultSubtitleAccessibility = "1"
PostUsersSignInDataDefaultSubtitleAccessibilityDisable PostUsersSignInDataDefaultSubtitleAccessibility = 0
PostUsersSignInDataDefaultSubtitleAccessibilityEnable PostUsersSignInDataDefaultSubtitleAccessibility = 1
)
func (e PostUsersSignInDataDefaultSubtitleAccessibility) ToPointer() *PostUsersSignInDataDefaultSubtitleAccessibility {
return &e
}
func (e *PostUsersSignInDataDefaultSubtitleAccessibility) UnmarshalJSON(data []byte) error {
var v string
var v int
if err := json.Unmarshal(data, &v); err != nil {
return err
}
switch v {
case "0":
case 0:
fallthrough
case "1":
case 1:
*e = PostUsersSignInDataDefaultSubtitleAccessibility(v)
return nil
default:
@@ -182,25 +143,25 @@ func (e *PostUsersSignInDataDefaultSubtitleAccessibility) UnmarshalJSON(data []b
}
// PostUsersSignInDataDefaultSubtitleForced - The forced subtitles searches mode (0 = Prefer non-forced subtitles, 1 = Prefer forced subtitles, 2 = Only show forced subtitles, 3 = Only show non-forced subtitles)
type PostUsersSignInDataDefaultSubtitleForced string
type PostUsersSignInDataDefaultSubtitleForced int
const (
PostUsersSignInDataDefaultSubtitleForcedZero PostUsersSignInDataDefaultSubtitleForced = "0"
PostUsersSignInDataDefaultSubtitleForcedOne PostUsersSignInDataDefaultSubtitleForced = "1"
PostUsersSignInDataDefaultSubtitleForcedDisable PostUsersSignInDataDefaultSubtitleForced = 0
PostUsersSignInDataDefaultSubtitleForcedEnable PostUsersSignInDataDefaultSubtitleForced = 1
)
func (e PostUsersSignInDataDefaultSubtitleForced) ToPointer() *PostUsersSignInDataDefaultSubtitleForced {
return &e
}
func (e *PostUsersSignInDataDefaultSubtitleForced) UnmarshalJSON(data []byte) error {
var v string
var v int
if err := json.Unmarshal(data, &v); err != nil {
return err
}
switch v {
case "0":
case 0:
fallthrough
case "1":
case 1:
*e = PostUsersSignInDataDefaultSubtitleForced(v)
return nil
default:
@@ -208,25 +169,26 @@ func (e *PostUsersSignInDataDefaultSubtitleForced) UnmarshalJSON(data []byte) er
}
}
type PostUsersSignInDataWatchedIndicator string
// PostUsersSignInDataWatchedIndicator - Whether or not media watched indicators are enabled (little orange dot on media)
type PostUsersSignInDataWatchedIndicator int
const (
PostUsersSignInDataWatchedIndicatorZero PostUsersSignInDataWatchedIndicator = "0"
PostUsersSignInDataWatchedIndicatorOne PostUsersSignInDataWatchedIndicator = "1"
PostUsersSignInDataWatchedIndicatorDisable PostUsersSignInDataWatchedIndicator = 0
PostUsersSignInDataWatchedIndicatorEnable PostUsersSignInDataWatchedIndicator = 1
)
func (e PostUsersSignInDataWatchedIndicator) ToPointer() *PostUsersSignInDataWatchedIndicator {
return &e
}
func (e *PostUsersSignInDataWatchedIndicator) UnmarshalJSON(data []byte) error {
var v string
var v int
if err := json.Unmarshal(data, &v); err != nil {
return err
}
switch v {
case "0":
case 0:
fallthrough
case "1":
case 1:
*e = PostUsersSignInDataWatchedIndicator(v)
return nil
default:
@@ -234,18 +196,19 @@ func (e *PostUsersSignInDataWatchedIndicator) UnmarshalJSON(data []byte) error {
}
}
type PostUsersSignInDataMediaReviewsVisibility int64
// PostUsersSignInDataMediaReviewsVisibility - Whether or not the account has media reviews visibility enabled
type PostUsersSignInDataMediaReviewsVisibility int
const (
PostUsersSignInDataMediaReviewsVisibilityZero PostUsersSignInDataMediaReviewsVisibility = 0
PostUsersSignInDataMediaReviewsVisibilityOne PostUsersSignInDataMediaReviewsVisibility = 1
PostUsersSignInDataMediaReviewsVisibilityDisable PostUsersSignInDataMediaReviewsVisibility = 0
PostUsersSignInDataMediaReviewsVisibilityEnable PostUsersSignInDataMediaReviewsVisibility = 1
)
func (e PostUsersSignInDataMediaReviewsVisibility) ToPointer() *PostUsersSignInDataMediaReviewsVisibility {
return &e
}
func (e *PostUsersSignInDataMediaReviewsVisibility) UnmarshalJSON(data []byte) error {
var v int64
var v int
if err := json.Unmarshal(data, &v); err != nil {
return err
}
@@ -266,15 +229,12 @@ type PostUsersSignInDataUserProfile struct {
// The preferred audio language for the account
DefaultAudioLanguage *string `json:"defaultAudioLanguage"`
// The preferred subtitle language for the account
DefaultSubtitleLanguage *string `json:"defaultSubtitleLanguage"`
// The auto-select subtitle mode (0 = Manually selected, 1 = Shown with foreign audio, 2 = Always enabled)
AutoSelectSubtitle *PostUsersSignInDataAutoSelectSubtitle `json:"autoSelectSubtitle,omitempty"`
// The subtitles for the deaf or hard-of-hearing (SDH) searches mode (0 = Prefer non-SDH subtitles, 1 = Prefer SDH subtitles, 2 = Only show SDH subtitles, 3 = Only shown non-SDH subtitles)
DefaultSubtitleAccessibility *PostUsersSignInDataDefaultSubtitleAccessibility `json:"defaultSubtitleAccessibility,omitempty"`
// The forced subtitles searches mode (0 = Prefer non-forced subtitles, 1 = Prefer forced subtitles, 2 = Only show forced subtitles, 3 = Only show non-forced subtitles)
DefaultSubtitleForced *PostUsersSignInDataDefaultSubtitleForced `json:"defaultSubtitleForced,omitempty"`
WatchedIndicator *PostUsersSignInDataWatchedIndicator `json:"watchedIndicator,omitempty"`
MediaReviewsVisibility *PostUsersSignInDataMediaReviewsVisibility `json:"mediaReviewsVisibility,omitempty"`
DefaultSubtitleLanguage *string `json:"defaultSubtitleLanguage"`
AutoSelectSubtitle *PostUsersSignInDataAutoSelectSubtitle `default:"0" json:"autoSelectSubtitle"`
DefaultSubtitleAccessibility *PostUsersSignInDataDefaultSubtitleAccessibility `default:"0" json:"defaultSubtitleAccessibility"`
DefaultSubtitleForced *PostUsersSignInDataDefaultSubtitleForced `default:"0" json:"defaultSubtitleForced"`
WatchedIndicator *PostUsersSignInDataWatchedIndicator `default:"0" json:"watchedIndicator"`
MediaReviewsVisibility *PostUsersSignInDataMediaReviewsVisibility `default:"0" json:"mediaReviewsVisibility"`
}
func (p PostUsersSignInDataUserProfile) MarshalJSON() ([]byte, error) {
@@ -1198,7 +1158,7 @@ type PostUsersSignInDataUserPlexAccount struct {
HomeSize int `json:"homeSize"`
// The Plex account ID
ID int `json:"id"`
// Unix epoch datetime
// Unix epoch datetime in seconds
JoinedAt int64 `json:"joinedAt"`
// The account locale
Locale *string `json:"locale"`
@@ -1215,7 +1175,7 @@ type PostUsersSignInDataUserPlexAccount struct {
Profile PostUsersSignInDataUserProfile `json:"profile"`
// If the account has a Plex Home PIN enabled
Protected *bool `default:"false" json:"protected"`
// Unix epoch datetime
// Unix epoch datetime in seconds
RememberExpiresAt int64 `json:"rememberExpiresAt"`
// If the account is a Plex Home managed user
Restricted *bool `default:"false" json:"restricted"`

View File

@@ -5,6 +5,7 @@ package operations
import (
"encoding/json"
"fmt"
"github.com/LukeHagar/plexgo/internal/utils"
"net/http"
)
@@ -53,6 +54,19 @@ type UploadPlaylistRequest struct {
// If the `force` argument is set to 0, a new playlist will be created suffixed with the date and time that the duplicate was uploaded.
//
Force QueryParamForce `queryParam:"style=form,explode=true,name=force"`
// Possibly the section ID to upload the playlist to, we are not certain.
SectionID int64 `default:"1" queryParam:"style=form,explode=true,name=sectionID"`
}
func (u UploadPlaylistRequest) MarshalJSON() ([]byte, error) {
return utils.MarshalJSON(u, "", false)
}
func (u *UploadPlaylistRequest) UnmarshalJSON(data []byte) error {
if err := utils.UnmarshalJSON(data, &u, "", false, false); err != nil {
return err
}
return nil
}
func (o *UploadPlaylistRequest) GetPath() string {
@@ -69,6 +83,13 @@ func (o *UploadPlaylistRequest) GetForce() QueryParamForce {
return o.Force
}
func (o *UploadPlaylistRequest) GetSectionID() int64 {
if o == nil {
return 0
}
return o.SectionID
}
type UploadPlaylistResponse struct {
// HTTP response content type for this operation
ContentType string

View File

@@ -1966,7 +1966,7 @@ func (s *Playlists) AddPlaylistContents(ctx context.Context, playlistID float64,
// UploadPlaylist - Upload Playlist
// Imports m3u playlists by passing a path on the server to scan for m3u-formatted playlist files, or a path to a single playlist file.
func (s *Playlists) UploadPlaylist(ctx context.Context, path string, force operations.QueryParamForce, opts ...operations.Option) (*operations.UploadPlaylistResponse, error) {
func (s *Playlists) UploadPlaylist(ctx context.Context, path string, force operations.QueryParamForce, sectionID int64, opts ...operations.Option) (*operations.UploadPlaylistResponse, error) {
hookCtx := hooks.HookContext{
Context: ctx,
OperationID: "uploadPlaylist",
@@ -1975,8 +1975,9 @@ func (s *Playlists) UploadPlaylist(ctx context.Context, path string, force opera
}
request := operations.UploadPlaylistRequest{
Path: path,
Force: force,
Path: path,
Force: force,
SectionID: sectionID,
}
o := operations.Options{}

35
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, clientID *string, includeHTTPS *operations.IncludeHTTPS, includeRelay *operations.IncludeRelay, includeIPv6 *operations.IncludeIPv6, opts ...operations.Option) (*operations.GetServerResourcesResponse, error) {
func (s *Plex) GetServerResources(ctx context.Context, 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,16 +1017,11 @@ func (s *Plex) GetServerResources(ctx context.Context, clientID *string, include
}
request := operations.GetServerResourcesRequest{
ClientID: clientID,
IncludeHTTPS: includeHTTPS,
IncludeRelay: includeRelay,
IncludeIPv6: includeIPv6,
}
globals := operations.GetServerResourcesGlobals{
ClientID: s.sdkConfiguration.Globals.ClientID,
}
o := operations.Options{}
supportedOptions := []string{
operations.SupportedOptionServerURL,
@@ -1068,7 +1063,7 @@ func (s *Plex) GetServerResources(ctx context.Context, clientID *string, include
req.Header.Set("Accept", "application/json")
req.Header.Set("User-Agent", s.sdkConfiguration.UserAgent)
if err := utils.PopulateQueryParams(ctx, req, request, globals); err != nil {
if err := utils.PopulateQueryParams(ctx, req, request, nil); err != nil {
return nil, fmt.Errorf("error populating query params: %w", err)
}
@@ -1279,11 +1274,10 @@ func (s *Plex) GetPin(ctx context.Context, request operations.GetPinRequest, opt
}
globals := operations.GetPinGlobals{
ClientID: s.sdkConfiguration.Globals.ClientID,
ClientName: s.sdkConfiguration.Globals.ClientName,
DeviceName: s.sdkConfiguration.Globals.DeviceName,
ClientVersion: s.sdkConfiguration.Globals.ClientVersion,
XPlexPlatform: s.sdkConfiguration.Globals.XPlexPlatform,
ClientName: s.sdkConfiguration.Globals.ClientName,
DeviceName: s.sdkConfiguration.Globals.DeviceName,
ClientVersion: s.sdkConfiguration.Globals.ClientVersion,
ClientPlatform: s.sdkConfiguration.Globals.ClientPlatform,
}
o := operations.Options{}
@@ -1433,7 +1427,7 @@ func (s *Plex) GetPin(ctx context.Context, request operations.GetPinRequest, opt
}
switch {
case httpRes.StatusCode == 200:
case httpRes.StatusCode == 201:
switch {
case utils.MatchContentType(httpRes.Header.Get("Content-Type"), `application/json`):
rawBody, err := getRawBody()
@@ -1502,7 +1496,7 @@ func (s *Plex) GetPin(ctx context.Context, request operations.GetPinRequest, opt
// 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, clientID *string, opts ...operations.Option) (*operations.GetTokenByPinIDResponse, error) {
func (s *Plex) GetTokenByPinID(ctx context.Context, pinID int64, opts ...operations.Option) (*operations.GetTokenByPinIDResponse, error) {
hookCtx := hooks.HookContext{
Context: ctx,
OperationID: "getTokenByPinId",
@@ -1511,12 +1505,7 @@ func (s *Plex) GetTokenByPinID(ctx context.Context, pinID int64, clientID *strin
}
request := operations.GetTokenByPinIDRequest{
ClientID: clientID,
PinID: pinID,
}
globals := operations.GetTokenByPinIDGlobals{
ClientID: s.sdkConfiguration.Globals.ClientID,
PinID: pinID,
}
o := operations.Options{}
@@ -1537,7 +1526,7 @@ func (s *Plex) GetTokenByPinID(ctx context.Context, pinID int64, clientID *strin
baseURL = *o.ServerURL
}
opURL, err := utils.GenerateURL(ctx, baseURL, "/pins/{pinID}", request, globals)
opURL, err := utils.GenerateURL(ctx, baseURL, "/pins/{pinID}", request, nil)
if err != nil {
return nil, fmt.Errorf("error generating URL: %w", err)
}
@@ -1560,10 +1549,6 @@ func (s *Plex) GetTokenByPinID(ctx context.Context, pinID int64, clientID *strin
req.Header.Set("Accept", "application/json")
req.Header.Set("User-Agent", s.sdkConfiguration.UserAgent)
if err := utils.PopulateQueryParams(ctx, req, request, globals); err != nil {
return nil, fmt.Errorf("error populating query params: %w", err)
}
globalRetryConfig := s.sdkConfiguration.RetryConfig
retryConfig := o.Retries
if retryConfig == nil {

View File

@@ -271,13 +271,6 @@ func WithClientName(clientName string) SDKOption {
}
}
// WithDeviceName allows setting the DeviceName parameter for all supported operations
func WithDeviceName(deviceName string) SDKOption {
return func(sdk *PlexAPI) {
sdk.sdkConfiguration.Globals.DeviceName = &deviceName
}
}
// WithClientVersion allows setting the ClientVersion parameter for all supported operations
func WithClientVersion(clientVersion string) SDKOption {
return func(sdk *PlexAPI) {
@@ -285,10 +278,17 @@ func WithClientVersion(clientVersion string) SDKOption {
}
}
// WithXPlexPlatform allows setting the XPlexPlatform parameter for all supported operations
func WithXPlexPlatform(xPlexPlatform string) SDKOption {
// WithClientPlatform allows setting the ClientPlatform parameter for all supported operations
func WithClientPlatform(clientPlatform string) SDKOption {
return func(sdk *PlexAPI) {
sdk.sdkConfiguration.Globals.XPlexPlatform = &xPlexPlatform
sdk.sdkConfiguration.Globals.ClientPlatform = &clientPlatform
}
}
// WithDeviceName allows setting the DeviceName parameter for all supported operations
func WithDeviceName(deviceName string) SDKOption {
return func(sdk *PlexAPI) {
sdk.sdkConfiguration.Globals.DeviceName = &deviceName
}
}
@@ -311,9 +311,9 @@ func New(opts ...SDKOption) *PlexAPI {
sdkConfiguration: sdkConfiguration{
Language: "go",
OpenAPIDocVersion: "0.0.3",
SDKVersion: "0.11.11",
GenVersion: "2.415.8",
UserAgent: "speakeasy-sdk/go 0.11.11 2.415.8 0.0.3 github.com/LukeHagar/plexgo",
SDKVersion: "0.12.0",
GenVersion: "2.421.3",
UserAgent: "speakeasy-sdk/go 0.12.0 2.421.3 0.0.3 github.com/LukeHagar/plexgo",
Globals: globals.Globals{},
ServerDefaults: []map[string]string{
{