yeriomin / token-dispenser

Stores email-password pairs, gives out Google Play Store tokens
GNU General Public License v2.0
62 stars 36 forks source link

Get random credentials in a single request #10

Closed matlink closed 7 years ago

matlink commented 7 years ago

Would it be possible to add a way, like /email, to get a token from a random configured account? For example, if I have configured

gplaycliacc@gmail.com password
gplaycliacce@gmail.com password

in my passwords.txt, the path /email/random would use one of the two. This thing is already possible, by calling /email and using it, however it requires 2 requests. I could write a PR if you need so.

yeriomin commented 7 years ago

I tried it and it does not really speed things up, since the requests to Google are still made the same way.

Also it would make it imposible to return tokens plainly. Some response wrapper/format would need to be added (like JSON) which would make the responses a lot less intuitive than now.