Processing math: 100%
First time here? Check out the FAQ!
1

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

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

To enter a block of code:

  • enter empty line after your previous text
  • paste or type the code
  • select the code and press the button above
Preview: (hide)
eugenenarciso's avatar
43
eugenenarciso
asked 11 years ago

Comments

see more comments

1 Answer

1

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.

To enter a block of code:

  • enter empty line after your previous text
  • paste or type the code
  • select the code and press the button above
Preview: (hide)
Evgeny's avatar
13.2k
Evgeny
answered 11 years ago
link

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/usernamethatreturnsgeneralinformationinsteadof/user_id. The information is useful for us integrating some stats into our other internal systems. Thanks

eugenenarciso's avatar eugenenarciso (11 years ago)
slelievre's avatar slelievre (8 years ago)
see more comments