Skip to content

Instantly share code, notes, and snippets.

@molinto
Created April 17, 2018 13:37
Show Gist options
  • Save molinto/b5846e992f81b8171c87b40ad521268a to your computer and use it in GitHub Desktop.
Save molinto/b5846e992f81b8171c87b40ad521268a to your computer and use it in GitHub Desktop.
app.get('/user/status/:id', User.status);
userStatus - determines the status of the user:
blocked,
over quota,
logged on,
logged off
unknown
{
"success": true,
"errors": [],
"warnings": [],
"data": "unknown"
}
eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJmaXJzdF9uYW1lIjoiUm9iZXJ0IiwiaWQiOiJjMTRmNDRlMC1lN2ZmLTQ3NTYtOTkwNC03NDE3MWMxOTU0MzYiLCJsYXN0X25hbWUiOiJXaWxlcyIsInJvbGUiOiJ1c2VyIiwidXNlcm5hbWUiOiJyd2lsZXMiLCJpYXQiOjE1MjM5NzIwMzMsImlzcyI6Imh0dHA6Ly9sb2NhbGhvc3Q6ODAwMCJ9.llJsrjlwr7FPMg5hmRZlBRH4MadYdLshr7s_IClh71o
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment