Imgur::API::Endpoint::Image
Access to the imgur Image API Endpoint.
Get information about an image.
Parameters
image required
image
Image
Upload a new image.
name optional
name
The name of the file, this is automatically detected if uploading a file with a POST and multipart / form-data
type optional
type
The type of the file that's being sent; file, base64 or URL
title optional
title
The title of the image.
A binary file, base64 data, or a URL for an image. (up to 10MB)
description optional
description
The description of the image.
album optional
album
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.
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.
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.
Favorite an image with the given ID. The user is required to be logged in to favorite the image.
https://api.imgur.com/endpoints/image
To install Imgur::API, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Imgur::API
CPAN shell
perl -MCPAN -e shell install Imgur::API
For more information on module installation, please visit the detailed CPAN module installation guide.