Skip to content

Commit 976f2a9

Browse files
authored
Merge pull request #1 from ueg1990/get_album_image
Add method for Album Image
2 parents 48abc45 + 4df64b9 commit 976f2a9

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

imgurpython/client.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -283,6 +283,10 @@ def get_album_images(self, album_id):
283283
images = self.make_request('GET', 'album/%s/images' % album_id)
284284
return [Image(image) for image in images]
285285

286+
def get_album_image(self, album_id, image_id):
287+
image = self.make_request('GET', 'album/%s/image/%s' % (album_id, image_id))
288+
return Image(image)
289+
286290
def create_album(self, fields):
287291
post_data = {field: fields[field] for field in set(self.allowed_album_fields).intersection(fields.keys())}
288292

0 commit comments

Comments
 (0)