Skip to content
This repository has been archived by the owner on Oct 4, 2023. It is now read-only.

Add method for Album Image #46

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions imgurpython/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -283,6 +283,10 @@ def get_album_images(self, album_id):
images = self.make_request('GET', 'album/%s/images' % album_id)
return [Image(image) for image in images]

def get_album_image(self, album_id, image_id):
image = self.make_request('GET', 'album/%s/image/%s' % (album_id, image_id))
return Image(image)

def create_album(self, fields):
post_data = {field: fields[field] for field in set(self.allowed_album_fields).intersection(fields.keys())}

Expand Down