<back to all web services

GetABTestVariations

The following routes are available for this service:
GET/RestApi/ab-testing/{id}/variations
"use strict";
export class GetABTestVariations {
    /** @param {{Id?:string}} [init] */
    constructor(init) { Object.assign(this, init) }
    /** @type {string} */
    Id;
}
export class ABTestVariationViewModel {
    /** @param {{VariatonId?:string,VariationName?:string,VariationLink?:string,IsWinner?:boolean,Ordinal?:number}} [init] */
    constructor(init) { Object.assign(this, init) }
    /** @type {string} */
    VariatonId;
    /** @type {string} */
    VariationName;
    /** @type {string} */
    VariationLink;
    /** @type {boolean} */
    IsWinner;
    /** @type {number} */
    Ordinal;
}
export class ABTestVariationsViewModel {
    /** @param {{Id?:string,PreviewLink?:string,IsPageSynced?:boolean,Variations?:ABTestVariationViewModel[]}} [init] */
    constructor(init) { Object.assign(this, init) }
    /** @type {string} */
    Id;
    /** @type {string} */
    PreviewLink;
    /** @type {boolean} */
    IsPageSynced;
    /** @type {ABTestVariationViewModel[]} */
    Variations;
}

JavaScript GetABTestVariations DTOs

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

HTTP + CSV

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

GET /RestApi/ab-testing/{id}/variations HTTP/1.1 
Host: www.asg.com.au 
Accept: text/csv
HTTP/1.1 200 OK
Content-Type: text/csv
Content-Length: length

{"PreviewLink":"String","IsPageSynced":false}