Skip to content
This repository was archived by the owner on Oct 4, 2023. It is now read-only.
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
Add parameter reason for method report_gallery_item
  • Loading branch information
ueg1990 committed Oct 22, 2015
commit f567ec2d4d01f716af1aff14bbf7972b252cab68
4 changes: 2 additions & 2 deletions imgurpython/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -552,9 +552,9 @@ def gallery_item(self, item_id):
response = self.make_request('GET', 'gallery/%s' % item_id)
return build_gallery_images_and_albums(response)

def report_gallery_item(self, item_id):
def report_gallery_item(self, item_id, reason):
self.logged_in()
return self.make_request('POST', 'gallery/%s/report' % item_id)
return self.make_request('POST', 'gallery/%s/report' % item_id, {'reason': reason})

def gallery_item_vote(self, item_id, vote='up'):
self.logged_in()
Expand Down