Skip to content

Commit 681cf10

Browse files
committed
comment post,tag post,report need as_query=True parameter
1 parent 45b91b3 commit 681cf10

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

fivehundredpx/client.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,15 +24,15 @@ def __init__(self,auth_handler=None,host=None,secure=True,version=None,retry_cou
2424
photos_update = bind_api(path='/photos/{id}', method='PUT', require_auth=True, as_query=False)
2525
photos_delete = bind_api(path='/photos/{id}', method='DELETE', allowed_params=['id'],require_auth=True)
2626
photos_comments = bind_api(path='/photos/{id}/comments', allowed_params=['id'])
27-
photos_comments_post = bind_api(path='/photos/{id}/comments', method='POST', allowed_params=['id'], require_auth=True)
27+
photos_comments_post = bind_api(path='/photos/{id}/comments', method='POST', allowed_params=['id'], require_auth=True, as_query=True)
2828
photos_favorites = bind_api(path='/photos/{id}/favorites', allowed_params=['id'], require_auth=True)
2929
photos_favorite_post = bind_api(path='/photos/{id}/favorite', method='POST', allowed_params=['id'], require_auth=True)
3030
photos_favorite_delete = bind_api(path='/photos/{id}/favorite', method='DELETE', allowed_params=['id'], require_auth=True)
31-
photos_tags_post = bind_api(path='/photos/{id}/tags', method='POST', allowed_params=['id'], require_auth=True)
31+
photos_tags_post = bind_api(path='/photos/{id}/tags', method='POST', allowed_params=['id'], require_auth=True, as_query=True)
3232
photos_tags_delete = bind_api(path='/photos/{id}/tags', method='DELETE', allowed_params=['id'], require_auth=True, as_query=True)
3333
photos_votes = bind_api(path='/photos/{id}/votes', allowed_params=['id'], require_auth=True)
3434
photos_vote_post = bind_api(path='/photos/{id}/vote', method='POST', allowed_params=['id'], require_auth=True, as_query=True)
35-
photos_report = bind_api(path='/photos/{id}/report', method='POST', allowed_params=['id'], require_auth=True)
35+
photos_report = bind_api(path='/photos/{id}/report', method='POST', allowed_params=['id'], require_auth=True, as_query=True)
3636

3737
def upload_photo(self, filename=None,fp=None,file_type=None, **kwargs):
3838
headers,body = FileUtil.create_body_by_filepath(filename,'file',kwargs) if fp==None else FileUtil.create_body_by_fp(fp, 'file', file_type, kwargs)

0 commit comments

Comments
 (0)