NAME

Imgur::API::Endpoint::Gallery

DESCRIPTION

Access to the imgur Gallery API Endpoint. 

See: https://api.imgur.com/endpoints/gallery

METHODS

get

Returns the images in the gallery. For example the main gallery is https://api.imgur.com/3/gallery/hot/viral/0.json

Parameters

  • window optional

    Change the date range of the request if the section is "top", day | week | month | year | all, defaults to day
  • page optional

    integer - the data paging number
  • section optional

    hot | top | user - defaults to hot
  • showViral optional

    true | false - Show or hide viral images from the 'user' section. Defaults to true
  • sort optional

    viral | top | time | rising (only available with user section) - defaults to viral

memeSubgallery

View images for memes subgallery

Parameters

  • sort optional

    viral | time | top - defaults to viral
  • page optional

    integer - the data paging number
  • window optional

    Change the date range of the request if the sort is "top", day | week | month | year | all, defaults to week

memeSubgalleryImage

View a single image in the memes gallery

Parameters

  • image_id required

    The ID for the image.

subreddit

View gallery images for a subreddit

Parameters

  • page optional

    integer - the data paging number
  • window optional

    Change the date range of the request if the sort is "top", day | week | month | year | all, defaults to week
  • subreddit required

    pics - A valid subreddit name
  • sort optional

    time | top - defaults to time

subredditImage

View a single image in the subreddit

Parameters

  • subreddit required

    pics - A valid subreddit name
  • image_id required

    The ID for the image.

tag

View images for a gallery tag

Parameters

  • window optional

    Change the date range of the request if the sort is "top", day | week | month | year | all, defaults to week
  • page optional

    integer - the data paging number
  • sort optional

    viral | time | top - defaults to viral
  • t_name required

    The name of the tag.

tagImage

View a single image in a gallery tag

Parameters

  • t_name required

    The name of the tag.
  • image_id required

    The ID for the image.

itemTags

View tags for a gallery item

Parameters

  • id required

    ID of the gallery item
  • gallery required

    Gallery

tagVote

Vote for a tag, 'up' or 'down' vote. Send the same value again to undo a vote.

Parameters

  • t_name required

    Name of the tag (implicitly created, if doesn't exist)
  • vote required

    'up' or 'down'
  • gallery required

    Gallery
  • id required

    ID of the gallery item

updateGalleryTags

Update the tags for a post in the gallery

Parameters

  • tags required

    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>
                       
  • gallery required

    Gallery
  • id required

    ID of the gallery item
Search the gallery with a given query string.

Parameters

  • sort optional

    time | viral | top - defaults to time
  • page optional

    integer - the data paging number
  • window optional

    Change the date range of the request if the sort is 'top', day | week | month | year | all, defaults to all.

random

Returns a random set of gallery images.

Parameters

  • page optional

    A page of random gallery images, from 0-50. Pages are regenerated every hour.

toGallery

Share an Album or Image to the Gallery.

Parameters

  • gallery required

    Gallery
  • tags[] optional

    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

    If the post is mature, set this value to 1.
  • title required

    The title of the image. This is required.
  • topic optional

    Topic name
  • terms optional

    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.

fromGallery

Remove an image from the gallery. You must be logged in as the owner of the item to do this action.

Parameters

  • gallery required

    Gallery

album

Get additional information about an album in the gallery.

Parameters

  • gallery required

    Gallery

image

Get additional information about an image in the gallery.

Parameters

  • gallery required

    Gallery

reporting

Report an Image in the gallery

Parameters

  • reason optional

    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

  • 5 required

  • 4 required

  • 3 required

  • 1 required

votes

Get the vote information about an image

Parameters

  • gallery required

    Gallery

voting

Vote for an image, 'up' or 'down' vote. Send 'veto' to undo a vote.

Parameters

  • gallery required

    Gallery
  • vote required

    Vote

comments

Comment on an image in the gallery.

Parameters

  • gallery required

    Gallery
  • sort optional

    best | top | new - defaults to best 

comment

Information about a specific comment. This action also allows any of the additional actions provided in the Comment Endpoint.

Parameters

  • comment required

    Comment
  • gallery required

    Gallery

commentCreation

Create a comment for an image.

Parameters

  • comment required

    The text of the comment.
  • gallery required

    Gallery

commentReply

Reply to a comment that has been created for an image.

Parameters

  • commentReply required

    CommentReply
  • comment required

    The text you want to use as the reply.
  • gallery required

    Gallery

commentIds

List all of the IDs for the comments on an image.

Parameters

  • gallery required

    Gallery

commentCount

The number of comments on an Image.

Parameters

  • gallery required

    Gallery

49 POD Errors

The following errors were encountered while parsing the POD:

Around line 21:

'=item' outside of any '=over'

Around line 48:

You forgot a '=back' before '=head2'

Around line 54:

'=item' outside of any '=over'

Around line 71:

You forgot a '=back' before '=head2'

Around line 77:

'=item' outside of any '=over'

Around line 84:

You forgot a '=back' before '=head2'

Around line 90:

'=item' outside of any '=over'

Around line 112:

You forgot a '=back' before '=head2'

Around line 118:

'=item' outside of any '=over'

Around line 130:

You forgot a '=back' before '=head2'

Around line 136:

'=item' outside of any '=over'

Around line 158:

You forgot a '=back' before '=head2'

Around line 164:

'=item' outside of any '=over'

Around line 176:

You forgot a '=back' before '=head2'

Around line 182:

'=item' outside of any '=over'

Around line 194:

You forgot a '=back' before '=head2'

Around line 200:

'=item' outside of any '=over'

Around line 222:

You forgot a '=back' before '=head2'

Around line 228:

'=item' outside of any '=over'

Around line 246:

You forgot a '=back' before '=head2'

Around line 252:

'=item' outside of any '=over'

Around line 269:

You forgot a '=back' before '=head2'

Around line 275:

'=item' outside of any '=over'

Around line 282:

You forgot a '=back' before '=head2'

Around line 288:

'=item' outside of any '=over'

Around line 320:

You forgot a '=back' before '=head2'

Around line 326:

'=item' outside of any '=over'

Around line 333:

You forgot a '=back' before '=head2'

Around line 339:

'=item' outside of any '=over'

Around line 346:

You forgot a '=back' before '=head2'

Around line 352:

'=item' outside of any '=over'

Around line 359:

You forgot a '=back' before '=head2'

Around line 365:

'=item' outside of any '=over'

Around line 410:

You forgot a '=back' before '=head2'

Around line 416:

'=item' outside of any '=over'

Around line 423:

You forgot a '=back' before '=head2'

Around line 429:

'=item' outside of any '=over'

Around line 441:

You forgot a '=back' before '=head2'

Around line 447:

'=item' outside of any '=over'

Around line 459:

You forgot a '=back' before '=head2'

Around line 465:

'=item' outside of any '=over'

Around line 477:

You forgot a '=back' before '=head2'

Around line 483:

'=item' outside of any '=over'

Around line 495:

You forgot a '=back' before '=head2'

Around line 501:

'=item' outside of any '=over'

Around line 518:

You forgot a '=back' before '=head2'

Around line 524:

'=item' outside of any '=over'

Around line 531:

You forgot a '=back' before '=head2'

Around line 537:

'=item' outside of any '=over'

=over without closing =back