Hi.
Installed Wazo yesterday and am delighted and overwhelmed about this product and it’s possibilities.
Alas, i am struggling with some basic api calls.
I used the ui to create users and queues. Also created an Agent but the ui doesn’t let me connect it to the user. I am currently building an Agent’s Toolbar where i want the Agents to login, be presented with their queues, and give them buttons to select which queues to login to ( also break etc… )
- associating user with agent: read here in the forum i need to call whats explained here: https://api.wazo.io/documentation/api/configuration.html#tag/agents/operation/associate_user_agent but i don’t see a request sample, tried something like :
curl -k -X PUT -H “X-Auth-Token: 312ea714-ab2d-4390-80a7-1910b01d9bfa” https://192.168.10.20/api/confd/1.1/users/312ea714-ab2d-4390-80a7-1910b01d9bfa/agents/312ea714-ab2d-4390-80a7-1910b01d9bfa ( this is the user uuid and the agent uuid ) but it gives error URL not found , how can i call it correctly?
- How can i list a list of queues where this agent or user is member?
- Is it possible to have the agent login/logout just from one specific queue?
Thank you in advance! Vous pouvez repondre en francais aussi 
Jaime
Hi,
here some details:
you need the id of the user and agent, not the uuid
should looks more like
https://192.168.10.20/api/confd/1.1/users/2/agents/1
You can retreive this information in the queue details, looks like:
members {
agents: [],
users: []
}
not rigth now, but it is planning with no more information than this:
You can try my app:
i want to make it open-source if i got some financial help. i’ll do a crownfounding soon.
wazo-ui is a minimal web application for test and discover, but i don’t recommend it for production.
for example, if your user is a agent, and you delete this user, the agent will stay associated with an unexisting user, so you will not be able to delete or modify this agent.
cheers
Merci Julien!
- so i should list all queues, then check one by one members? what functions do i have to call
- that’s from yesterday? lol!
Many thanks for your help!
Jaime
sorry, i missunderstood.
https://api.wazo.io/documentation/api/configuration.html#tag/users/operation/get_user
or
https://api.wazo.io/documentation/api/configuration.html#tag/users/operation/list_user
here you can have the detail of an user, and informations about his groups, switchboards, queues.
if you have user.queues.[
{something},
{else}
]
that means he is member of this queue,
if you want to know about agent, you must request
https://api.wazo.io/documentation/api/configuration.html#tag/agents/operation/get_agent
or
https://api.wazo.io/documentation/api/configuration.html#tag/agents/operation/list_agents
with both api calls, you can then have all users and agents
you can so make this table easily:
As you see, i list queues where my user is agent.
cheers