mirror of
https://github.com/LukeHagar/plexgo.git
synced 2025-12-06 04:20:46 +00:00
ci: regenerated with OpenAPI Doc 0.0.3, Speakeasy CLI 1.193.4
This commit is contained in:
@@ -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)
|
||||
}
|
||||
@@ -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>"
|
||||
|
||||
Reference in New Issue
Block a user