S
S
SerGio13132016-11-19 19:29:37
Java
SerGio1313, 2016-11-19 19:29:37

How to get two random (real-life) Github user logins?

Good afternoon!
I'm making an app to compare two random Github users based on their account data. I use Retrofit and github API.
Tell me how to get two random existing logins?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
DevMan, 2016-11-19
@SerGio1313

https://developer.github.com/v3/users/#get-all-users
pull a random page (30 users are displayed by default) and randomly select two users from it.
or pull 2 ​​random pages and take a user from each.
or, for example:
https://api.github.com/users?since=234566&per_page=1
https://api.github.com/users?since=987654&per_page=1
to determine the upper bound since experimentally

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question