Imgur::API::Endpoint::Account
Access to the imgur Account API Endpoint.
Request standard user information. If you need the username for the account that is logged in, it is returned in the request for an access token. Note: This endpoint also supports the ability to lookup account base info by account ID. To do so, pass the query parameter account_id.
Parameters
username required
username
Username
Return the images the user has favorited in the gallery.
page optional
page
integer - allows you to set the page number so you don't have to retrieve all the data at once.
sort optional
sort
'oldest', or 'newest'. Defaults to 'newest'.
Returns the users favorited images, only accessible if you're logged in as the user.
Return the images a user has submitted to the gallery
page required
Page
Returns the account settings, only accessible if you're logged in as the user.
Updates the account settings for a given user, the user must be logged in.
messaging_enabled optional
messaging_enabled
true | false - Allows the user to enable / disable private messages
username optional
A valid Imgur username (between 4 and 63 alphanumeric characters)
show_mature optional
show_mature
true | false - Toggle display of mature images in gallery list endpoints.
album_privacy optional
album_privacy
public | hidden | secret - Sets the default privacy level of albums the users creates
accepted_gallery_terms optional
accepted_gallery_terms
true | false - The user agreement to the Imgur Gallery terms.
public_images optional
public_images
Set the users images to private or public by default
newsletter_subscribed optional
newsletter_subscribed
true | false - Toggle subscription to email newsletter.
bio optional
bio
The biography of the user, is displayed in the gallery profile page.
Returns the totals for the gallery profile.
Checks to see if user has verified their email address
Sends an email to the user to verify that their email is valid to upload to gallery. Must be logged in as the user to send.
Get all the albums associated with the account. Must be logged in as the user to see secret and hidden albums.
Get additional information about an album, this endpoint works the same as the Album Endpoint. You can also use any of the additional routes that are used on an album in the album endpoint.
account required
account
Account
Return an array of all of the album IDs.
Return the total number of albums associated with the account.
Delete an Album with a given id.
Return the comments the user has created.
'best', 'worst', 'oldest', or 'newest'. Defaults to 'newest'.
Page number (50 items per page). Defaults to 0.
Return information about a specific comment. This endpoint works the same as the Comment Endpoint. You can use any of the additional actions that the comment endpoint allows on this end point.
Return an array of all of the comment IDs.
Return a count of all of the comments associated with the account.
Delete a comment. You are required to be logged in as the user whom created the comment.
Return all of the images associated with the account. You can page through the images by setting the page, this defaults to 0.
Return information about a specific image. This endpoint works the same as the Image Endpoint. You can use any of the additional actions that the image endpoint with this endpoint.
Returns an array of Image IDs that are associated with the account.
Returns the total number of images associated with the account.
Deletes an Image. This requires a delete hash rather than an ID.
deletehash required
deletehash
Deletehash
Returns all of the reply notifications for the user. Required to be logged in as that user
new optional
new
boolean - false for all notifications, true for only non-viewed notification. Default is true.
https://api.imgur.com/endpoints/account
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.