Imgur Documentation

The client must be authorized to retrieve the custom gallery a user.

get

Params:

  • options?
    • page?: number
    • sort?: 'viral' or 'top' or 'time'
    • window?: 'day' or 'week' or 'month' or 'year' or 'all'
client.CustomGallery.get({ page: 2, sort: 'top', window: 'week' })

image

Params:

imageId: string

client.CustomGallery.image('imageId')

addTags

Params:

  • tags string[]
client.CustomGallery.addTags(['tag1', 'tag2', 'tag3'])

removeTags

Params:

  • tags string[]
client.CustomGallery.removeTags(['tag1', 'tag2', 'tag3'])