mirror of
https://github.com/kevin-DL/m3o-go.git
synced 2026-01-11 18:44:26 +00:00
18 lines
366 B
Go
Executable File
18 lines
366 B
Go
Executable File
package main
|
|
|
|
import (
|
|
"fmt"
|
|
"os"
|
|
|
|
"go.m3o.com/image"
|
|
)
|
|
|
|
// Delete an image previously uploaded.
|
|
func main() {
|
|
imageService := image.NewImageService(os.Getenv("M3O_API_TOKEN"))
|
|
rsp, err := imageService.Delete(&image.DeleteRequest{
|
|
Url: "https://cdn.m3ocontent.com/micro/images/micro/41e23b39-48dd-42b6-9738-79a313414bb8/cat.png",
|
|
})
|
|
fmt.Println(rsp, err)
|
|
}
|