osu-api icon indicating copy to clipboard operation
osu-api copied to clipboard

Knowing when a user connected for the last time is too hard

Open delthas opened this issue 10 years ago • 2 comments

I'm trying to use the API so as to be able to know when a user played osu for the last time... I've been using 'get_user_recent' and fetching the date of the last play, which is kinda accurate, but it looks like the server always yields an empty array if the user hasn't played for 24 hours. This isn't very reliable, as most people don't play that often. I was surprised there was no 'last_connect_time' or smth field in 'get_user'. You know, the date we can see on the left pane of the profile page... This way I could first try and fetch the 'get_user_recent' last play date and use this 'last_connect_time' as a fallback if the user hasn't played during the last 24 hours. Is there any way you could add this field or let us check last plays even though they're not that recent? Thanks \m/

delthas avatar Nov 02 '14 18:11 delthas

Bump @peppy

delthas avatar Jan 02 '15 10:01 delthas

Ahem, I'd like this feature too! That is, I'd like get_user to return a last_online field which tells when a user logged in last time (or was online last time, whichever it is). I can get the information from the website quite easily but it'd be better if I could get it straight from the API instead.

I thought about doing a simple desktop application to check when a specific user comes online and notify them about it. Additionally, it'd be nice to add a spectate link to the notification (which the API seems to have functionality for already). Currently the only ways seems to be to load the website (which is obviously not a good solution) or asking BanchoBot on IRC (which isn't too great either).

Xiyng avatar Nov 27 '15 21:11 Xiyng