Go-to-Light Service 4.0.0.2397 - 121 - API License to Cloud Demo

<back to all web services

RegisterCallback

Requires Authentication
The following routes are available for this service:
All Verbs/RegisterCallback
"use strict";
export class RegisterCallback {
    /** @param {{Name?:string,CallbackURL?:string,CallbackUsername?:string,CallbackPassword?:string,CallbackAuthorization?:string,DetailLevel?:number}} [init] */
    constructor(init) { Object.assign(this, init) }
    /**
     * @type {string}
     * @description Callback on which to get registered (e.g. SetPosition) */
    Name;
    /**
     * @type {string}
     * @description Callback URL */
    CallbackURL;
    /**
     * @type {string}
     * @description Optional: Callback username */
    CallbackUsername;
    /**
     * @type {string}
     * @description Optional: Callback password */
    CallbackPassword;
    /**
     * @type {string}
     * @description Optional: Callback authorization */
    CallbackAuthorization;
    /**
     * @type {number}
     * @description Optional: niveau de détail souhaité pour les événements touch (rétro-compatibilité), interprété comme un masque de bits (Gestures=1, Detailed=2). 0 = Legacy (défaut, payload historique string position) ; 1 = Gestures (JSON: Click/DoubleClick/LongPress + durationMs) ; 2 = Detailed (JSON: position, edge Down/Up, timestampUtc, seq) ; 3 = Both (Gestures + Detailed). Absent ou 0 => comportement inchangé pour les clients existants. */
    DetailLevel;
}

JavaScript RegisterCallback 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 /RegisterCallback HTTP/1.1 
Host: clouddemo.pickeos.com 
Accept: text/jsv
Content-Type: text/jsv
Content-Length: length

{
	Name: String,
	CallbackURL: String,
	CallbackUsername: String,
	CallbackPassword: String,
	CallbackAuthorization: String,
	DetailLevel: 0
}