The following methods are available on ApiClient instances to manage images. Unless otherwise specified, all received and returned model classes are within the ...\Models\Images
namespace.
-
getImages(): list<Image>
Load all images within the account. (API docs)
-
getImage(string|Image $image, ?ApiClient::IMAGE_FORMAT_* $format = null, ?ApiClient::IMAGE_SIZE_* $size = null): Image
Load a specific image, optionally with a predefined format and size. See the API docs for details on formats and sizes. (Image API docs; Format API docs:
background
,choice-image
,image
) -
getImageSource(string|Image $image, ?ApiClient::IMAGE_FORMAT_* $format = null, ?ApiClient::IMAGE_SIZE_* $size = null): string
Load the raw source for a specific image, optionally with a predefined format and size. See the API docs for details on formats and sizes. (Image API docs; Format API docs:
background
,choice-image
,image
) -
createImage(string $fileName, string $base64Source, string $url): array
Create a new image. The return format is indeterminate – see the API docs. (API docs)
-
deleteImage(string $fileName, string $base64Source, string $url): array
Delete an existing image. (API docs)