Skip to content

Latest commit

 

History

History
55 lines (40 loc) · 1.66 KB

README.md

File metadata and controls

55 lines (40 loc) · 1.66 KB

ArtworkTypes

(ArtworkTypes)

Available Operations

GetAllArtworkTypes

Returns a list of artworkType records

Example Usage

package main

import(
	"github.com/dashotv/tvdb/openapi/models/shared"
	"github.com/dashotv/tvdb/openapi"
	"context"
	"log"
)

func main() {
    s := openapi.New(
        openapi.WithSecurity(shared.Security{
            BearerAuth: "",
        }),
    )

    ctx := context.Background()
    res, err := s.ArtworkTypes.GetAllArtworkTypes(ctx)
    if err != nil {
        log.Fatal(err)
    }

    if res.Object != nil {
        // handle response
    }
}

Parameters

Parameter Type Required Description
ctx context.Context ✔️ The context to use for the request.

Response

*operations.GetAllArtworkTypesResponse, error

Error Object Status Code Content Type
sdkerrors.SDKError 400-600 /