Skip to content

Instantly share code, notes, and snippets.

@db0company
Created November 18, 2012 03:03
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save db0company/4103194 to your computer and use it in GitHub Desktop.
Save db0company/4103194 to your computer and use it in GitHub Desktop.
API responses
http://life.paysdu42.fr:2000/auth/login?login=toto&password=ok
{
"rspcode": 0,
"rspmsg": "SUCCESS",
"content": {
"token": "eLTmXM2sXBKgyOihQTEfXS3rVWQIFGReFZi7Ebev",
"logged": true,
"expire": "2012-11-18 05:41:13"
}
}
http://life.paysdu42.fr:2000/auth/login?login=toto&password=ko
{ "rspcode": 6, "rspmsg": "AUTH_FAIL_PASSWORD", "content": null }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment