(Updates)
- Updates - Returns updated entities. methodInt indicates a created record (1), an updated record (2), or a deleted record (3). If a record is deleted because it was a duplicate of another record, the target record's information is provided in mergeToType and mergeToId.
Returns updated entities. methodInt indicates a created record (1), an updated record (2), or a deleted record (3). If a record is deleted because it was a duplicate of another record, the target record's information is provided in mergeToType and mergeToId.
package main
import(
"github.com/dashotv/tvdb/openapi/models/shared"
"github.com/dashotv/tvdb/openapi"
"github.com/dashotv/tvdb/openapi/models/operations"
"context"
"log"
)
func main() {
s := openapi.New(
openapi.WithSecurity(shared.Security{
BearerAuth: "",
}),
)
var since int64 = 75660
var action *operations.Action = operations.ActionDelete
var page *int64 = 745624
var type_ *operations.Type = operations.TypeMovies
ctx := context.Background()
res, err := s.Updates.Updates(ctx, since, action, page, type_)
if err != nil {
log.Fatal(err)
}
if res.Object != nil {
// handle response
}
}
Parameter | Type | Required | Description | Example |
---|---|---|---|---|
ctx |
context.Context | ✔️ | The context to use for the request. | |
since |
int64 | ✔️ | N/A | |
action |
*operations.Action | ➖ | N/A | movies |
page |
*int64 | ➖ | name | |
type_ |
*operations.Type | ➖ | N/A | movies |
*operations.UpdatesResponse, error
Error Object | Status Code | Content Type |
---|---|---|
sdkerrors.SDKError | 400-600 | / |