<back to all web services
AddStatistic
Add a statistic entity.
The following routes are available for this service:| POST | /api/statistics | | |
|---|
AddStatistic Parameters:| Name | Parameter | Data Type | Required | Description |
|---|
| Computer | body | string | Yes | Computername |
| ProgramName | body | ProgramName | Yes | Program for the statistic entryAllowable Values- DO4Outlook
- DO4Word
- DO4Excel
- DO4PowerPoint
- ITS
- Other
- DigiOfficeMobile
|
| ProgramVersion | body | string | No | Version of the program |
| Action | body | Action | Yes | Action of statisticAllowable Values- Start
- Command
- NewDoc
- ChangeDoc
- NewVersion
- Send
- Other
|
| Param1 | body | string | Yes | First parameter |
| Param2 | body | string | No | Second parameter |
| Duration | body | long? | No | Duration of action |
ProgramName Enum:| DO4Outlook | |
| DO4Word | |
| DO4Excel | |
| DO4PowerPoint | |
| ITS | |
| Other | |
| DigiOfficeMobile | |
Action Enum:| Start | |
| Command | |
| NewDoc | |
| ChangeDoc | |
| NewVersion | |
| Send | |
| Other | |
To override the Content-type in your clients, use the HTTP Accept Header, append the .xml suffix or ?format=xml
HTTP + XML
The following are sample HTTP requests and responses.
The placeholders shown need to be replaced with actual values.
POST /api/statistics HTTP/1.1
Host: test-do-services.klokgroep.nl
Accept: application/xml
Content-Type: application/xml
Content-Length: length
<AddStatistic xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/IDB.API.DTO.Statistics.Operations">
<Action>Start</Action>
<Computer>String</Computer>
<Duration>0</Duration>
<Param1>String</Param1>
<Param2>String</Param2>
<ProgramName>DO4Outlook</ProgramName>
<ProgramVersion>String</ProgramVersion>
</AddStatistic>