Since July 6, 2023, Atlassian has no longer been used for Release Notes or knowledge base articles.
* Find Release Notes here (https://support.mycontactcenter.net/app/articles/detail/a_id/23378/) and articles here (https://support.mycontactcenter.net/app/main).
* Authenticated Partners can access content here (https://support.mycontactcenter.net/cc/sso/authenticator/oauth/authorize/imcontrolpanel?redirect=main&source=mycontactcenter)
Retrieving the list of agents
The following steps could be used to retrieve all agents:
- Open an API session
- Send the request
- Inspect the result
- Close the API session
The C# code below represents the above steps:
/// assuming a session is already opened, and the ID of that session is stored in the _sessionId variable
var client = new AgentProfileClient();
var resp = client.GetAgents(_sessionId);
if (resp == null)
{
Console.WriteLine("No response received");
return;
}
if (resp.ErrorCode != 0)
{
Console.WriteLine("Error: {0}", resp.ErrorCode);
return;
}
Console.WriteLine("Total agents: {0}", resp.Agents.Length);
foreach (var a in resp.Agents)
{
Console.WriteLine(Environment.NewLine);
Console.WriteLine("Agent: {0} - {1} ({2} {3}).", a.Id, a.Username, a.FirstName, a.LastName);
}
Since July 6, 2023, Atlassian has no longer been used for Release Notes or knowledge base articles.
* Find Release Notes here (https://support.mycontactcenter.net/app/articles/detail/a_id/23378/) and articles here (https://support.mycontactcenter.net/app/main).
* Authenticated Partners can access content here (https://support.mycontactcenter.net/cc/sso/authenticator/oauth/authorize/imcontrolpanel?redirect=main&source=mycontactcenter)