I’m working on an app that uses the OGS API to pull games for a given player. I’d like to have the app ask for a username from which to pull games, but I’m not aware of how to get a user ID from a username via the API. Is this possible? If so, how?
Another option would be to get the games using the username. Is this possible? I’m trying to avoid having users have to enter their password or their player ID for simplicity. Does anyone know if there’s a way to do this? Thank you!
Hey, shouldn’t be a problem if I limit the number of games (which I plan to). I’m curious if there’s is a parameter I can pass to limit the number of results? Seems the API documentation is still not up-to-date
That second one results in a “Not Found” page if I just plug it into a browser; I guess that kind of api call doesn’t return a json like the other one does? That first one is super helpful tho thank <3
Would you happen to have any idea whether it’s especially load-heavy to just stop at using api/v1/players/{id}/games to get a complete list of games rather than to pull the full game data for each one?
It still ends up being a fair number of calls, since it’s just 10 games per page, by default. I assume it won’t allow me to load, say, 1000 games on each page. (edit: though of course I haven’t actually tried )
Also this omnisearch thing is suuuuuper nifty! Thanks
Any idea how to limit results? For example if I only wanted to pull 5 games from a given user? I was thinking maybe there was a variable I could pass to the API endpoint that does this. Do you know of one? Thanks again for the help