| GET | /v4/affiliate-tokens-sets |
|---|
"use strict";
export class AffiliateProgram {
/** @param {{programGuid?:string,affiliateTokens?:{ [index:string]: string; }}} [init] */
constructor(init) { Object.assign(this, init) }
/** @type {string} */
programGuid;
/** @type {{ [index:string]: string; }} */
affiliateTokens;
}
export class AffiliateTokens {
/** @param {{id?:string,programs?:AffiliateProgram[],createdAtUtc?:string,updatedAtUtc?:string}} [init] */
constructor(init) { Object.assign(this, init) }
/** @type {string} */
id;
/** @type {AffiliateProgram[]} */
programs;
/** @type {string} */
createdAtUtc;
/** @type {string} */
updatedAtUtc;
}
export class AffiliateTokensSet extends AffiliateTokens {
/** @param {{setGuid?:string,username?:string,id?:string,programs?:AffiliateProgram[],createdAtUtc?:string,updatedAtUtc?:string}} [init] */
constructor(init) { super(init); Object.assign(this, init) }
/** @type {string} */
setGuid;
/** @type {string} */
username;
}
export class GetAffiliateTokensSetResponse {
/** @param {{affiliateTokensSet?:AffiliateTokensSet,responseStatus?:ResponseStatus}} [init] */
constructor(init) { Object.assign(this, init) }
/** @type {AffiliateTokensSet} */
affiliateTokensSet;
/** @type {ResponseStatus} */
responseStatus;
}
export class GetAffiliateTokensSetRequest {
/** @param {{setGuid?:string}} [init] */
constructor(init) { Object.assign(this, init) }
/** @type {string} */
setGuid;
}
JavaScript GetAffiliateTokensSetRequest DTOs
To override the Content-type in your clients, use the HTTP Accept Header, append the .other suffix or ?format=other
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
GET /v4/affiliate-tokens-sets HTTP/1.1 Host: affiliation-api-pr-4587.qa.platform.georiot.com Accept: text/jsonl
HTTP/1.1 200 OK
Content-Type: text/jsonl
Content-Length: length
{"affiliateTokensSet":{"setGuid":"String","username":"String","id":"String","programs":[{"programGuid":"String"}],"createdAtUtc":"0001-01-01T00:00:00.0000000","updatedAtUtc":"0001-01-01T00:00:00.0000000"},"responseStatus":{"errorCode":"String","message":"String","stackTrace":"String","errors":[{"errorCode":"String","fieldName":"String","message":"String","meta":{"String":"String"}}],"meta":{"String":"String"}}}