DigiOffice API Services Services

<back to all web services

AddStatistic

Add a statistic entity.

Requires Authentication
The following routes are available for this service:
POST/api/statistics
"use strict";
/** @typedef {'DO4Outlook'|'DO4Word'|'DO4Excel'|'DO4PowerPoint'|'ITS'|'Other'|'DigiOfficeMobile'} */
export var ProgramName;
(function (ProgramName) {
    ProgramName["DO4Outlook"] = "DO4Outlook"
    ProgramName["DO4Word"] = "DO4Word"
    ProgramName["DO4Excel"] = "DO4Excel"
    ProgramName["DO4PowerPoint"] = "DO4PowerPoint"
    ProgramName["ITS"] = "ITS"
    ProgramName["Other"] = "Other"
    ProgramName["DigiOfficeMobile"] = "DigiOfficeMobile"
})(ProgramName || (ProgramName = {}));
/** @typedef {'Start'|'Command'|'NewDoc'|'ChangeDoc'|'NewVersion'|'Send'|'Other'} */
export var Action;
(function (Action) {
    Action["Start"] = "Start"
    Action["Command"] = "Command"
    Action["NewDoc"] = "NewDoc"
    Action["ChangeDoc"] = "ChangeDoc"
    Action["NewVersion"] = "NewVersion"
    Action["Send"] = "Send"
    Action["Other"] = "Other"
})(Action || (Action = {}));
export class AddStatistic {
    /** @param {{Computer?:string,ProgramName?:ProgramName,ProgramVersion?:string,Action?:Action,Param1?:string,Param2?:string,Duration?:number}} [init] */
    constructor(init) { Object.assign(this, init) }
    /**
     * @type {string}
     * @description Computername */
    Computer;
    /**
     * @type {ProgramName}
     * @description Program for the statistic entry */
    ProgramName;
    /**
     * @type {string}
     * @description Version of the program */
    ProgramVersion;
    /**
     * @type {Action}
     * @description Action of statistic */
    Action;
    /**
     * @type {string}
     * @description First parameter */
    Param1;
    /**
     * @type {string}
     * @description Second parameter */
    Param2;
    /**
     * @type {?number}
     * @description Duration of action */
    Duration;
}

JavaScript AddStatistic DTOs

To override the Content-type in your clients, use the HTTP Accept Header, append the .jsv suffix or ?format=jsv

HTTP + JSV

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: text/jsv
Content-Type: text/jsv
Content-Length: length

{
	Computer: String,
	ProgramName: DO4Outlook,
	ProgramVersion: String,
	Action: Start,
	Param1: String,
	Param2: String,
	Duration: 0
}