Skip to content

Instantly share code, notes, and snippets.

@bago2k4
Last active August 29, 2015 14:04
Show Gist options
  • Save bago2k4/f2a8975f21d2de03fd06 to your computer and use it in GitHub Desktop.
Save bago2k4/f2a8975f21d2de03fd06 to your computer and use it in GitHub Desktop.
jids.json
{
"api_key": "1cb2f6ddee83ca88f1ce1ea39c3ea9413cefb369",
"email": "agent.iacopo1@talkto.com",
"first_name": "",
"is_staff": false,
"is_superuser": false,
"jids": [
{
"address": null,
"city": null,
"contact_email": null,
"contact_name": null,
"contact_phone": null,
"entity_type": "workflow",
"is_ambassador": false,
"is_anonymous": false,
"is_claimed": false,
"is_talkto": false,
"jid": "2eae7aeb",
"latitude": null,
"longitude": null,
"name": "agent.iacopo1attalkto.com",
"placepage_url": null,
"profile_image_url": null,
"resource_uri": "/xapi/v1/entity/2eae7aeb/",
"state_or_province": null,
"ttags": [],
"zip": null
},
{
"address": null,
"city": null,
"contact_email": null,
"contact_name": null,
"contact_phone": null,
"entity_type": "person",
"is_ambassador": false,
"is_anonymous": false,
"is_claimed": false,
"is_talkto": false,
"jid": "2eae7aebperson",
"latitude": null,
"longitude": null,
"name": "agent.iacopo1attalkto.com",
"placepage_url": null,
"profile_image_url": null,
"resource_uri": "/xapi/v1/entity/2eae7aebperson/",
"state_or_province": null,
"ttags": [],
"zip": null
}
],
"last_name": ""
}
@thepug
Copy link

thepug commented Jul 23, 2014

You are right, we don't need those two entities. Just a "User" for the agent. The login API should return is_superuser and is_staff.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment