| HTTP Method | URL | Requires Auth |
|---|---|---|
GET | /api/v1/users.getPresence | yes |
| Key | Example Value | Description |
|---|---|---|
userId* or username* | BsNr28znDkG8aeo7W or test | The ID or username of the user. If not provided, the user who sending the request is retrieved. |
With userId:
curl -H "X-Auth-Token: 9HqLlyZOugoStsXCUfD_0YdwnNnunAJF8V47U3QHXSq" \
-H "X-User-Id: aobEdbYhXfu5hkeqG" \
http://localhost:3000/api/v1/users.getPresence?userId=BsNr28znDkG8aeo7WWith username:
curl -H "X-Auth-Token: 9HqLlyZOugoStsXCUfD_0YdwnNnunAJF8V47U3QHXSq" \
-H "X-User-Id: aobEdbYhXfu5hkeqG" \
http://localhost:3000/api/v1/users.getPresence?username=testWith no query parameter:
curl -H "X-Auth-Token: 9HqLlyZOugoStsXCUfD_0YdwnNnunAJF8V47U3QHXSq" \
-H "X-User-Id: aobEdbYhXfu5hkeqG" \
http://localhost:3000/api/v1/users.getPresence{
"presence": "offline",
"success": true
}| Version | Description |
|---|---|
| 0.49.0 | Updated to support userId or username |
| 0.48.0 | Renamed to users.getPresence |
| 0.35.0 | Added as user.getPresence |