Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature Request: public api call to retrieve list of users in an active race with a given user #5

Open
Hyphen-ated opened this issue Apr 4, 2017 · 0 comments

Comments

@Hyphen-ated
Copy link

Hyphen-ated commented Apr 4, 2017

I want to port https://github.com/Hyphen-ated/srlRaceWatcher to racing+. To do this, I need a way to get a list of all the players who are in a race with me (and their twitch usernames). On SRL, this involved pasting the race ID every time, but racing+ doesn't really have an accessible race ID, so providing a username seems best. (that's more convenient anyway)

Here's a rough idea for what the interface for this api call would look like:
GET users/Hyphen-ated/currentOpponents/
->

{
   "currentOpponents": [
      {"name": "Zamiel", "twitch_id": "Zamiell"} 
   ]
}

stretch goal: order the players by their leaderboard ranking or something, so if the list is too long and I cut it off, I'm still showing the people who are more likely to be important to watch

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants