NAME

Imgur::API::Endpoint::Image

DESCRIPTION

Access to the imgur Image API Endpoint. 

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

METHODS

get

Get information about an image.

Parameters

  • image required

    Image

upload

Upload a new image.

Parameters

  • title optional

    The title of the image.
  • 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.
  • description optional

    The description of the image.
  • image required

    A binary file, base64 data, or a URL for an image. (up to 10MB)
  • name optional

    The name of the file, this is automatically detected if uploading a file with a POST and multipart / form-data
  • type optional

    The type of the file that's being sent; file, base64 or URL

delete

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

  • image required

    Image

update

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

  • description optional

    The description of the image.
  • title optional

    The title of the image.
  • image required

    Image

favorite

Favorite an image with the given ID. The user is required to be logged in to favorite the image.

Parameters

  • image required

    Image

9 POD Errors

The following errors were encountered while parsing the POD:

Around line 21:

'=item' outside of any '=over'

Around line 28:

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

Around line 34:

'=item' outside of any '=over'

Around line 70:

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

Around line 76:

'=item' outside of any '=over'

Around line 83:

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

Around line 89:

'=item' outside of any '=over'

Around line 106:

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

Around line 112:

'=item' outside of any '=over'

=over without closing =back