Imgur::API::Endpoint::Gallery
Access to the imgur Gallery API Endpoint.
Returns the images in the gallery. For example the main gallery is https://api.imgur.com/3/gallery/hot/viral/0.json
Parameters
sort optional
sort
viral | top | time | rising (only available with user section) - defaults to viral
window optional
window
Change the date range of the request if the section is "top", day | week | month | year | all, defaults to day
section optional
section
hot | top | user - defaults to hot
showViral optional
showViral
true | false - Show or hide viral images from the 'user' section. Defaults to true
page optional
page
integer - the data paging number
View images for memes subgallery
viral | time | top - defaults to viral
Change the date range of the request if the sort is "top", day | week | month | year | all, defaults to week
View a single image in the memes gallery
image_id required
image_id
The ID for the image.
View gallery images for a subreddit
time | top - defaults to time
subreddit required
subreddit
pics - A valid subreddit name
View a single image in the subreddit
View images for a gallery tag
t_name required
t_name
The name of the tag.
View a single image in a gallery tag
View tags for a gallery item
gallery required
gallery
Gallery
id required
id
ID of the gallery item
Vote for a tag, 'up' or 'down' vote. Send the same value again to undo a vote.
Name of the tag (implicitly created, if doesn't exist)
vote required
vote
'up' or 'down'
Update the tags for a post in the gallery
tags required
tags
The name of the tags you wish to associate with a post. Can be passed as tags[]=funny&tags[]=cat or tags=funny,cat/td>
Search the gallery with a given query string.
Change the date range of the request if the sort is 'top', day | week | month | year | all, defaults to all.
time | viral | top - defaults to time
Returns a random set of gallery images.
A page of random gallery images, from 0-50. Pages are regenerated every hour.
Share an Album or Image to the Gallery.
title required
title
The title of the image. This is required.
topic optional
topic
Topic name
tags[] optional
tags[]
The name of the tags you wish to associate with a post. Can be passed as tags[]=funny&tags[]=cat or tags=funny,cat
mature optional
mature
If the post is mature, set this value to 1.
terms optional
terms
If the user has not accepted our terms yet, this endpoint will return an error. To by-pass the terms in general simply set this value to 1.
Remove an image from the gallery. You must be logged in as the owner of the item to do this action.
Get additional information about an album in the gallery.
Get additional information about an image in the gallery.
Report an Image in the gallery
3 required
3
4 required
4
5 required
5
1 required
1
reason optional
reason
An integer representing the reason for the report Value Description 1 Doesn't belong on Imgur 2 Spam 3 Abusive 4 Mature content not marked as mature 5 Pornography
2 required
2
Get the vote information about an image
Vote for an image, 'up' or 'down' vote. Send 'veto' to undo a vote.
Vote
Comment on an image in the gallery.
best | top | new - defaults to best
Information about a specific comment. This action also allows any of the additional actions provided in the Comment Endpoint.
comment required
comment
Comment
Create a comment for an image.
The text of the comment.
Reply to a comment that has been created for an image.
The text you want to use as the reply.
commentReply required
commentReply
CommentReply
List all of the IDs for the comments on an image.
The number of comments on an Image.
https://api.imgur.com/endpoints/gallery
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.