Blazor Diffusion

<back to all web services

GetAnalyticsInfo

"use strict";
export class AnalyticsLogInfo {
    /** @param {{id?:number,dateTime?:string,browser?:string,device?:string,bot?:string,op?:string,userId?:string,userName?:string,apiKey?:string,ip?:string}} [init] */
    constructor(init) { Object.assign(this, init) }
    /** @type {number} */
    id;
    /** @type {string} */
    dateTime;
    /** @type {string} */
    browser;
    /** @type {string} */
    device;
    /** @type {string} */
    bot;
    /** @type {string} */
    op;
    /** @type {string} */
    userId;
    /** @type {string} */
    userName;
    /** @type {string} */
    apiKey;
    /** @type {string} */
    ip;
}
export class GetAnalyticsInfoResponse {
    /** @param {{months?:string[],result?:AnalyticsLogInfo,responseStatus?:ResponseStatus}} [init] */
    constructor(init) { Object.assign(this, init) }
    /** @type {string[]} */
    months;
    /** @type {AnalyticsLogInfo} */
    result;
    /** @type {ResponseStatus} */
    responseStatus;
}
export class GetAnalyticsInfo {
    /** @param {{month?:string,type?:string,op?:string,apiKey?:string,userId?:string,ip?:string}} [init] */
    constructor(init) { Object.assign(this, init) }
    /** @type {?string} */
    month;
    /** @type {string} */
    type;
    /** @type {string} */
    op;
    /** @type {string} */
    apiKey;
    /** @type {string} */
    userId;
    /** @type {string} */
    ip;
}

JavaScript GetAnalyticsInfo DTOs

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

To embed the response in a jsonp callback, append ?callback=myCallback

HTTP + JSON

The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.

POST /json/reply/GetAnalyticsInfo HTTP/1.1 
Host: blazordiffusion.com 
Accept: application/json
Content-Type: application/json
Content-Length: length

{"month":"0001-01-01T00:00:00","type":"String","op":"String","apiKey":"String","userId":"String","ip":"String"}
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: length

{"months":["String"],"result":{"id":0,"dateTime":"0001-01-01T00:00:00","browser":"String","device":"String","bot":"String","op":"String","userId":"String","userName":"String","apiKey":"String","ip":"String"},"responseStatus":{"errorCode":"String","message":"String","stackTrace":"String","errors":[{"errorCode":"String","fieldName":"String","message":"String","meta":{"String":"String"}}],"meta":{"String":"String"}}}