mk6i / retro-aim-server

Revive classic AOL Instant Messenger (and ICQ) clients from the 2000s! https://discord.gg/2Xy4nF3Uh9
MIT License
127 stars 13 forks source link

Add API endpoint to get online/offline/away/idle status, plus away message if possible #42

Closed CoherentLogic closed 1 week ago

CoherentLogic commented 2 months ago

Description of the feature

Management API endpoint that can, for a given screen name, retrieve:

Use case

This would be useful in the ChivaNet environment for further integration with the ChivaNet website, RAS directory, and presence API. I assume it could be used similarly by other operators.

jgknight commented 1 month ago

Would it be acceptable to add these to the /sessions endpoint? I have a change in-progress that adds the following fields to the /sessions endpoint

Then to address the states,

I think it'd also be cool to update the /users endpoint so you could get /user/XXX and see their profile and buddy icon. This would also be a good spot to (in the future) return their privacy settings so you could control whether their presense etc should show up on the chivanet directory page.

CoherentLogic commented 1 month ago

That works for me!