Skip to content

Commit ea2fbcf

Browse files
committed
Define method for Gallery Topic Items
1 parent bfec458 commit ea2fbcf

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
@@ -685,3 +685,7 @@ def default_memes(self):
685685
def default_topics(self):
686686
topics = self.make_request('GET', 'topics/defaults')
687687
return [Topic(topic) for topic in topics]
688+
689+
def gallery_topic_item(self, topic_id, item_id):
690+
response = self.make_request('GET', 'topics/%s/%s' % (topic_id, item_id))
691+
return build_gallery_images_and_albums(response)

0 commit comments

Comments
 (0)