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

Add parameter reason for method report_gallery_item #49

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: 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