(ContentRatings)
- GetAllContentRatings - returns list content rating records
returns list content rating records
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.ContentRatings.GetAllContentRatings(ctx)
if err != nil {
log.Fatal(err)
}
if res.Object != nil {
// handle response
}
}
Parameter | Type | Required | Description |
---|---|---|---|
ctx |
context.Context | ✔️ | The context to use for the request. |
*operations.GetAllContentRatingsResponse, error
Error Object | Status Code | Content Type |
---|---|---|
sdkerrors.SDKError | 400-600 | / |