imgur icon indicating copy to clipboard operation
imgur copied to clipboard

Getting an album by album ID

Open Misofist opened this issue 8 years ago • 2 comments

Hi,

I'm trying to use this library to get a list of images from an album ID.

From the docs I can see Gallery.album() which appears to use GET https://api.imgur.com/3/gallery/album/{{galleryHash}} and I can see Account.album() which appears to use GET https://api.imgur.com/3/account/{{username}}/album/{{albumHash}}.

But I can't find any way to get an album that's not in the Gallery by its ID. The Imgur API has a method for this, GET https://api.imgur.com/3/album/{{albumHash}}. Am I missing something, or is this feature absent?

Thanks!

Misofist avatar Sep 06 '18 11:09 Misofist

You should be able to use Account.album. The Imgur documentation states that it functions the same way as the Album endpoint.

I have noticed the imgur api documentation has been updated since I made this, I'll go back over and fill in any gaps.

rmp135 avatar Sep 06 '18 17:09 rmp135

May have taken over a year but I finally got around to it. All album endpoints are available in version 0.5.0.

rmp135 avatar Nov 02 '19 17:11 rmp135