Ask Your Question
1

api/v1/users only showing the 1st 10 not all

asked 2014-03-24 17:29:44 -0600

eugenenarciso gravatar image

the api/v1/users is only showing the 1st 10 users and their general information. The documentation has optional parameters however I'm can't seem to bring it up properly.

I'd be interested to extract username and karma points off the api. Hopefully someone has done this.

Thank you

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
1

answered 2014-03-24 19:25:31 -0600

Evgeny gravatar image

The users listing is paginated and the necessary page is retrieved by the "page" parameter.

Currently batches of 10 are hardcoded, but this can be changed to more, please make a pull request with the patch if you would like to implement this.

edit flag offensive delete link more

Comments

Hey Evgeny, Thanks for the pointer, just to confirm, it's basically /api/v1/users/?page=x? That seems to work, it's just the trailing / after the users is throwing me off I was just expecting users?page=x (i could be wrong here). Either way, This may or may not work for our implementation we'll see. The other api I might work on is 'api/v1/users/$username' that returns general information instead of /$user_id. The information is useful for us integrating some stats into our other internal systems. Thanks

eugenenarciso gravatar imageeugenenarciso ( 2014-03-25 13:17:49 -0600 )edit
slelievre gravatar imageslelievre ( 2016-08-16 11:25:20 -0600 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower

Stats

Asked: 2014-03-24 17:29:44 -0600

Seen: 69 times

Last updated: Mar 24 '14