Commit from GitHub Actions (Generate Clients & Examples)

This commit is contained in:
domwong
2021-11-04 12:17:43 +00:00
parent d0456884c8
commit f1c9693633
9 changed files with 53 additions and 6 deletions

View File

@@ -23,6 +23,12 @@ func (t *ImageService) Convert(request *ConvertRequest) (*ConvertResponse, error
return rsp, t.client.Call("image", "Convert", request, rsp)
}
// Delete an image previously uploaded.
func (t *ImageService) Delete(request *DeleteRequest) (*DeleteResponse, error) {
rsp := &DeleteResponse{}
return rsp, t.client.Call("image", "Delete", request, rsp)
}
// Resize an image on the fly without storing it (by sending and receiving a base64 encoded image), or resize and upload depending on parameters.
// If one of width or height is 0, the image aspect ratio is preserved.
// Optional cropping.
@@ -66,6 +72,14 @@ type CropOptions struct {
Width int32 `json:"width"`
}
type DeleteRequest struct {
// url of the image to delete e.g. https://cdn.m3ocontent.com/micro/images/micro/41e23b39-48dd-42b6-9738-79a313414bb8/cat.jpeg
Url string `json:"url"`
}
type DeleteResponse struct {
}
type Point struct {
X int32 `json:"x"`
Y int32 `json:"y"`