Fuselage
Powered By GitBook
Get Status
Gets a user's Status if the query string userId or username is provided, otherwise it gets the callee's.
URL
Requires Auth
HTTP Method
/api/v1/users.getStatus
yes
GET

Query Parameters

Argument
Example
Required
Description
userId or username
BsNr28znDkG8aeo7W
Optional
The id or username of the user. If not provided, the auth user is used.

Example Call

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

Example Result

1
{
2
"message": "My status update",
3
"connectionStatus": "online",
4
"status": "away",
5
"success": true
6
}
Copied!

Self Example Call

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

Example Result

1
{
2
"message": "Latest status",
3
"connectionStatus": "online",
4
"status": "online",
5
"success": true
6
}
Copied!

Change Log

Version
Description
1.2.0
Added
Last modified 6mo ago