NAME
Imgur::API::Endpoint::Image
DESCRIPTION
Access to the imgur Image API Endpoint.
METHODS
get
Get information about an image.
Parameters
image
requiredImage
upload
Upload a new image.
Parameters
name
optionalThe name of the file, this is automatically detected if uploading a file with a POST and multipart / form-data
type
optionalThe type of the file that's being sent; file, base64 or URL
title
optionalThe title of the image.
image
requiredA binary file, base64 data, or a URL for an image. (up to 10MB)
description
optionalThe description of the image.
album
optionalThe id of the album you want to add the image to. For anonymous albums, {album} should be the deletehash that is returned at creation.
delete
Deletes an image. For an anonymous image, {id} must be the image's deletehash. If the image belongs to your account then passing the ID of the image is sufficient.
Parameters
image
requiredImage
update
Updates the title or description of an image. You can only update an image you own and is associated with your account. For an anonymous image, {id} must be the image's deletehash.
Parameters
title
optionalThe title of the image.
description
optionalThe description of the image.
image
requiredImage
favorite
Favorite an image with the given ID. The user is required to be logged in to favorite the image.
Parameters
image
requiredImage
SEE ALSO
https://api.imgur.com/endpoints/image