Skip to content
This repository has been archived by the owner on Jun 27, 2024. It is now read-only.

Latest commit

 

History

History
42 lines (30 loc) · 1.38 KB

File metadata and controls

42 lines (30 loc) · 1.38 KB

Get User Status

HTTP MethodURLRequires Auth
GET/api/v1/users.getStatusyes

Query Parameters

KeyExample ValueDescription
userId or usernameBsNr28znDkG8aeo7W or bobsmithThe ID or username of the user. If not provided, the status of the user who is sending the request is returned.

Example Call

With the userId query parameter:

curl -H "X-Auth-Token: 9HqLlyZOugoStsXCUfD_0YdwnNnunAJF8V47U3QHXSq" \
     -H "X-User-Id: aobEdbYhXfu5hkeqG" \
     http://localhost:3000/api/v1/users.getStatus?userId=BsNr28znDkG8aeo7W

With no query parameter:

curl -H "X-Auth-Token: 9HqLlyZOugoStsXCUfD_0YdwnNnunAJF8V47U3QHXSq" \
     -H "X-User-Id: aobEdbYhXfu5hkeqG" \
     http://localhost:3000/api/v1/users.getStatus

Example Response

{
    "message": "Latest status",
    "connectionStatus": "online",
    "status": "online",
    "success": true
}

Change Log

Version Description
1.2.0 Added