Retrieve image
One image: where it came from, whether it is ready and where it is served.
opensend.images.get(id)opensend images getInput
id goes first, on its own, and the rest in one object. One object that holds id works too.
idstringRequiredThe id of the item. Up to 64 characters.
Returns
The call resolves to the answer, already parsed. A call the API refuses throws OpenSendError with the code and the message of the answer. SDK lists the errors of the client itself.
object"image"Always
image.idstringThe id of the image.
urlstring | nullThe address the image is served at. Emails link it in place of
sourcewhen the image was copied, and it is the address to write in an email when the image was uploaded.nulluntil the image isready.sourcestringWhere the image came from: the address it was copied from, as it is written in your emails, or the name of the file that was uploaded.
originstringHow the image got here:
addresswhen it was copied from an address,uploadwhen it was sent as a file.One of
addressuploadstatusstringpendingwhile it waits to be copied,readyonce it is served,failedwhen it could not be copied. An uploaded image isreadyat once.One of
pendingreadyfailedtypestring | nullThe media type of the image:
image/png,image/jpeg,image/giforimage/webp.nulluntil it isready.One of
image/pngimage/jpegimage/gifimage/webpsizeinteger | nullThe size of the image in bytes, or
nulluntil it isready.reasonstring | nullWhy the last try to copy it did not work, in words, or
null.createdAtstringWhen the image was first seen.
updatedAtstringWhen it was last copied or tried.