ci: regenerated with OpenAPI Doc 0.0.3, Speakeasy CLI 1.193.4

This commit is contained in:
speakeasybot
2024-02-24 00:42:08 +00:00
parent f812f82747
commit 0118475c63
61 changed files with 1254 additions and 1001 deletions

View File

@@ -1,9 +1,9 @@
# Security
(*Security*)
# Authentication
(*Authentication*)
## Overview
API Calls against Security for Plex Media Server
API Calls regarding authentication for Plex Media Server
### Available Operations
@@ -41,7 +41,7 @@ func main() {
var scope operations.Scope = operations.ScopeAll
ctx := context.Background()
res, err := s.Security.GetTransientToken(ctx, type_, scope)
res, err := s.Authentication.GetTransientToken(ctx, type_, scope)
if err != nil {
log.Fatal(err)
}
@@ -97,7 +97,7 @@ func main() {
var source string = "server://client-identifier"
ctx := context.Background()
res, err := s.Security.GetSourceConnectionInformation(ctx, source)
res, err := s.Authentication.GetSourceConnectionInformation(ctx, source)
if err != nil {
log.Fatal(err)
}

View File

@@ -21,16 +21,13 @@ Retrieve a Pin from Plex.tv for authentication flows
package main
import(
"github.com/LukeHagar/plexgo/models/components"
"github.com/LukeHagar/plexgo"
"context"
"log"
)
func main() {
s := plexgo.New(
plexgo.WithSecurity("<YOUR_API_KEY_HERE>"),
)
s := plexgo.New()
var xPlexClientIdentifier string = "<value>"
@@ -77,7 +74,6 @@ Retrieve an Access Token from Plex.tv after the Pin has already been authenticat
package main
import(
"github.com/LukeHagar/plexgo/models/components"
"github.com/LukeHagar/plexgo"
"context"
"log"
@@ -85,9 +81,7 @@ import(
)
func main() {
s := plexgo.New(
plexgo.WithSecurity("<YOUR_API_KEY_HERE>"),
)
s := plexgo.New()
var pinID string = "<value>"