NAME
Imgur::API::Endpoint::Image
SYNOPSISA
Access to the imgur Image API Endpoint.
See: https://api.imgur.com/endpoints/image
METHODS
get(%params)
Get information about an image.
Parameters =over 4
image REQUIRED Image
upload(%params)
Upload a new image.
Parameters =over 4
album OPTIONAL
The id of the album you want to add the image to. For anonymous albums, {album} should be the deletehash that is returned at creation.
image REQUIRED A binary file, base64 data, or a URL for an image. (up to 10MB)
title OPTIONAL The title of the image.
description OPTIONAL The description of the image.
type OPTIONAL The type of the file that's being sent; file, base64 or URL
name OPTIONAL The name of the file, this is automatically detected if uploading a file with a POST and multipart / form-data
delete(%params)
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 =over 4
image REQUIRED Image
update(%params)
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 =over 4
image REQUIRED Image
title OPTIONAL The title of the image.
description OPTIONAL The description of the image.
favorite(%params)
Favorite an image with the given ID. The user is required to be logged in to favorite the image.
Parameters =over 4
image REQUIRED Image
5 POD Errors
The following errors were encountered while parsing the POD:
- Around line 22:
'=item' outside of any '=over'
- Around line 36:
'=item' outside of any '=over'
- Around line 74:
'=item' outside of any '=over'
- Around line 88:
'=item' outside of any '=over'
- Around line 110:
'=item' outside of any '=over'