- Print
- DarkLight
- PDF
Agent.GetCombinedCollections
Article summary
Did you find this summary helpful?
Thank you for your feedback
Description
Returns a list of agents and the combined collections they source.
URL parameters
Name | Required | Type | Description |
---|---|---|---|
AgentID | True | numeric | Unique identifier of the agent. A comma-separated list. |
Responses
Name | Type | Description |
---|---|---|
Result | string | Success if the operation was successful. |
Agent | Agent | Agent information. |
Sample request
curl -X GET "https://api.mozenda.com/rest?WebServiceKey=XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX&Service=Mozenda10&Operation=Agent.GetCombinedCollections&AgentID=1036,1037,1038"
Sample responses
XML
<?xml version="1.0" encoding="utf-8" ?>
<AgentGetCombinedCollectionsResponse
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<Result>Success</Result>
<AgentList>
<Agent>
<AgentID>1001</AgentID>
<SourcesCollections>1145</SourcesCollections>
</Agent>
<Agent>
<AgentID>1002</AgentID>
<SourcesCollections>1145,1146</SourcesCollections>
</Agent>
</AgentList>
</AgentGetCombinedCollectionsResponse>
JSON (add &ResponseFormat=JSON
)
{
"Agent": [
{
"AgentID": 1036,
"SourcesCollections": ""
},
{
"AgentID": 1037,
"SourcesCollections": ""
},
{
"AgentID": 1038,
"SourcesCollections": ""
}
],
"JsonResult": {
"Command": "Agent.GetCombinedCollections",
"AutoLoggedIn": false,
"WebConsoleKey": "",
"Result": "Success",
"ErrorCode": "",
"ErrorDescription": "",
"ErrorList": [],
"ExecutionTime": {
"Ticks": 0,
"Days": 0,
"Hours": 0,
"Milliseconds": 0,
"Minutes": 0,
"Seconds": 0,
"TotalDays": 0,
"TotalHours": 0,
"TotalMilliseconds": 0,
"TotalMinutes": 0,
"TotalSeconds": 0
}
}
}
Was this article helpful?