ci: regenerated with OpenAPI Doc 0.0.3, Speakeasy CLI 1.274.1

This commit is contained in:
speakeasybot
2024-04-25 00:33:14 +00:00
parent 6748e94a9a
commit 707d9e00b8
385 changed files with 4445 additions and 2632 deletions

View File

@@ -22,6 +22,7 @@ func main() {
s := plexgo.New(
plexgo.WithServerIndex(0),
plexgo.WithSecurity("<YOUR_API_KEY_HERE>"),
plexgo.WithXPlexClientIdentifier("Postman"),
)
ctx := context.Background()
@@ -29,7 +30,6 @@ func main() {
if err != nil {
log.Fatal(err)
}
if res.Object != nil {
// handle response
}
@@ -61,6 +61,7 @@ func main() {
s := plexgo.New(
plexgo.WithServerURL("{protocol}://{ip}:{port}"),
plexgo.WithSecurity("<YOUR_API_KEY_HERE>"),
plexgo.WithXPlexClientIdentifier("Postman"),
)
ctx := context.Background()
@@ -68,7 +69,6 @@ func main() {
if err != nil {
log.Fatal(err)
}
if res.Object != nil {
// handle response
}
@@ -85,25 +85,23 @@ package main
import (
"context"
"github.com/LukeHagar/plexgo"
"github.com/LukeHagar/plexgo/models/components"
"log"
)
func main() {
s := plexgo.New(
plexgo.WithSecurity("<YOUR_API_KEY_HERE>"),
plexgo.WithXPlexClientIdentifier("Postman"),
)
var xPlexClientIdentifier string = "<value>"
var strong *bool = plexgo.Bool(false)
var xPlexClientIdentifier *string = plexgo.String("Postman")
ctx := context.Background()
res, err := s.Plex.GetPin(ctx, operations.WithServerURL("https://plex.tv/api/v2"), xPlexClientIdentifier, strong)
res, err := s.Plex.GetPin(ctx, operations.WithServerURL("https://plex.tv/api/v2"), strong, xPlexClientIdentifier)
if err != nil {
log.Fatal(err)
}
if res.Object != nil {
// handle response
}