Skip to content

Commit

Permalink
Merge pull request #329 from algolia/fix/list_user_ids
Browse files Browse the repository at this point in the history
fix(list_user_ids): actually forward page and hitsPerPage
  • Loading branch information
LeoErcolanelli authored Dec 18, 2017
2 parents d9d64eb + 5e35071 commit e8f00a6
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion algoliasearch/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -596,7 +596,13 @@ def list_user_ids(self, page = 0, hits_per_page = 20, request_options=None):
"hitsPerPage": 20
}
"""
return self._req(True, '/1/clusters/mapping/', 'GET', request_options)
body={}
if page is not None:
body["page"] = page
if hits_per_page is not None:
body["hitsPerPage"] = hits_per_page

return self._req(True, '/1/clusters/mapping/', 'GET', request_options, data=body)

def get_top_user_id(self, request_options=None):
"""
Expand Down

0 comments on commit e8f00a6

Please sign in to comment.