Skip to content

Instantly share code, notes, and snippets.

@alexnodejs
Created April 9, 2013 16:58
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 alexnodejs/5347406 to your computer and use it in GitHub Desktop.
Save alexnodejs/5347406 to your computer and use it in GitHub Desktop.
// request
// curl -X POST http://localhost:8888/v0/login -d username=ggrey -d 'password=strange!'
{
"tokens": {
"token": "a0bf29a83bd9c29855c896fda060dec0",
"resource": "Token"
},
"settings": {
"defaults": {
"limit": 20
}
},
"companies": [
{
"id": "middle",
"name": "West Tower",
"role": "client",
"resource": "Company"
},
{
"id": "TeamID_0",
"name": "Absolute",
"role": "client",
"resource": "Company"
},
{
"id": "reynholmindustri",
"name": "Reynholm Industries Cny",
"role": "client",
"resource": "Company"
},
{
"id": "tower",
"name": "White Tower",
"role": "client",
"resource": "Company"
},
{
"id": "ggrey",
"name": "Gandalf Grey",
"role": "contractor",
"resource": "Company"
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment