Skip to content

Commit f567ec2

Browse files
committed
Add parameter reason for method report_gallery_item
1 parent 534c2c8 commit f567ec2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

imgurpython/client.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -552,9 +552,9 @@ def gallery_item(self, item_id):
552552
response = self.make_request('GET', 'gallery/%s' % item_id)
553553
return build_gallery_images_and_albums(response)
554554

555-
def report_gallery_item(self, item_id):
555+
def report_gallery_item(self, item_id, reason):
556556
self.logged_in()
557-
return self.make_request('POST', 'gallery/%s/report' % item_id)
557+
return self.make_request('POST', 'gallery/%s/report' % item_id, {'reason': reason})
558558

559559
def gallery_item_vote(self, item_id, vote='up'):
560560
self.logged_in()

0 commit comments

Comments
 (0)