speedruncomorg / api

REST API Documentation for speedrun.com
350 stars 35 forks source link

_bulk=yes doesn't work on /users #27

Closed mylogon341 closed 9 years ago

mylogon341 commented 9 years ago

When trying to load a list of users I added ?_bulk=yes&max=1000 But it still responds with only 200 users. Is this deliberate?

Lighnat0r commented 9 years ago

I'm pretty sure the documentation only states that bulk mode is available for games and series which is accurate. What is it you need bulk mode on users for exactly?

mylogon341 commented 9 years ago

Ah. I was wondering if I was just missing it or if it'd been missed off. I was hoping to be able to retrieve all users before searching for them as so the list updates as the user types. Not quite sure how to do this without users being cached. Are searches possible with incomplete usernames? Thanks

Lighnat0r commented 9 years ago

The name parameter does a fuzzy search, so yeah, eg: http://www.speedrun.com/api/v1/users?name=lo http://www.speedrun.com/api/v1/users?name=log http://www.speedrun.com/api/v1/users?name=logo http://www.speedrun.com/api/v1/users?name=logon

The other parameters only do exact searches, though.

mylogon341 commented 9 years ago

This is perfect. Thanks a lot. Luke

On 3 Nov 2015, at 13:06, Lighnat0r notifications@github.com wrote:

The name parameter does a fuzzy search, so yeah, eg: http://www.speedrun.com/api/v1/users?name=lo http://www.speedrun.com/api/v1/users?name=lo http://www.speedrun.com/api/v1/users?name=log http://www.speedrun.com/api/v1/users?name=log http://www.speedrun.com/api/v1/users?name=logo http://www.speedrun.com/api/v1/users?name=logo http://www.speedrun.com/api/v1/users?name=logon http://www.speedrun.com/api/v1/users?name=logon The other parameters https://github.com/speedruncom/api/blob/master/version1/users.md#get-users only do exact searches, though.

— Reply to this email directly or view it on GitHub https://github.com/speedruncom/api/issues/27#issuecomment-153346886.