ppy / osu-api

Public API for accessing osu! related data.
319 stars 16 forks source link

Retrieving online users #158

Open ekgame opened 7 years ago

ekgame commented 7 years ago

This is an API endpoint proposal for retrieving online users.


Online users

URL

/api/get_online_users

Description

Retrieve the user IDs of online players.

Potentional use cases

Parameters

Response

[3, 12345, 45679, 456874, 987789, ...]
thehowl commented 7 years ago

As #20 suggests, a workaround for this would be that to use IRC, specifically using the NAMES command, and while it's true this doesn't return the ID of the users but the usernames, it's still a ready-to-go implementation that doesn't have to wait another year and a half to get implemented in the API (which isn't probably gonna be implemented because the new API is on its way which if anything it requires the new website to be pushed live so yeah, Soon™ and Definitely This Year™).

ekgame commented 7 years ago

There is an implemented functionality for user IDs too, but it was deemed to be "bancho hackery" and I was disallowed to use it.