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

How to get user's current status? #19079

Closed
ilyamordasov opened this issue Jul 1, 2021 · 8 comments
Closed

How to get user's current status? #19079

ilyamordasov opened this issue Jul 1, 2021 · 8 comments

Comments

@ilyamordasov
Copy link

The endpoint presence returns the activity of user. But how can I get user's status like away or active using the API?

@zulipbot
Copy link
Member

zulipbot commented Jul 2, 2021

Hello @zulip/server-api members, this issue was labeled with the "area: documentation (api and integrations)" label, so you may want to check it out!

@timabbott
Copy link
Sponsor Member

@ilyamordasov you can get it from https://zulip.com/api/register-queue with user_status among fetch_event_types.

We could add a GET users/me/status endpoint if we had a clear use case for it; what do you have in mind?

@ilyamordasov
Copy link
Author

@timabbott Thanks for your reply. It needs when we have several moderators of channel and if one of them is away the another one is subscribed automatically. And if the first one is active again we unsubscribe another one

@timabbott
Copy link
Sponsor Member

@MSurfer20 do you want to add this, now that #19403 is merged? It seems like it should be pretty quick given what we already have.

I guess one note is that we probably want to write /users/{user_id}/status as the endpoint; it'd be reasonable to have a /users/me/status alias, but the general endpoint makes more sense, since users have read access to others' statuses.

@MSurfer20
Copy link
Member

@zulipbot claim

@zulipbot
Copy link
Member

zulipbot commented Aug 25, 2021

Hello @MSurfer20, you have been unassigned from this issue because you have not updated this issue or any referenced pull requests for over 14 days.

You can reclaim this issue or claim any other issue by commenting @zulipbot claim on that issue.

Thanks for your contributions, and hope to see you again soon!

@zulipbot
Copy link
Member

zulipbot commented Sep 4, 2021

Hello @MSurfer20, you claimed this issue to work on it, but this issue and any referenced pull requests haven't been updated for 10 days. Are you still working on this issue?

If so, please update this issue by leaving a comment on this issue to let me know that you're still working on it. Otherwise, I'll automatically remove you from this issue in 4 days.

If you've decided to work on something else, simply comment @zulipbot abandon so that someone else can claim it and continue from where you left off.

Thank you for your valuable contributions to Zulip!

@a-ndi
Copy link

a-ndi commented Apr 5, 2022

@timabbott @alya has the api for getUserStatus been created? i am trying to document it, seeing its one of the open documentation issues

timabbott pushed a commit to Vector73/zulip that referenced this issue May 23, 2024
The documentation Creates a shared UserStatus schema that's used for
the return value of this new endpoint and for the existing user_status
objects returned by the register queue endpoint.

Co-authored-by: Suyash Vardhan Mathur <suyash.mathur@research.iiit.ac.in>

Fixes zulip#19079.
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

5 participants