Skip to content

Commit 0be69ff

Browse files
committed
photos post/update need as_query=True parameter
1 parent 08926ce commit 0be69ff

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

fivehundredpx/client.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,8 @@ def __init__(self,auth_handler=None,host=None,secure=True,version=None,retry_cou
2020
photos = bind_api(path='/photos')
2121
photos_search = bind_api(path='/photos/search')
2222
photos_id = bind_api(path='/photos/{id}', allowed_params=['id'])
23-
photos_post = bind_api(path='/photos', method='POST', require_auth=True)
24-
photos_update = bind_api(path='/photos/{id}', method='PUT', require_auth=True, as_query=False)
23+
photos_post = bind_api(path='/photos', method='POST', require_auth=True, as_query=True)
24+
photos_update = bind_api(path='/photos/{id}', method='PUT', require_auth=True, as_query=True)
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'])
2727
photos_comments_post = bind_api(path='/photos/{id}/comments', method='POST', allowed_params=['id'], require_auth=True, as_query=True)

0 commit comments

Comments
 (0)