| GET | /v4/short-links |
|---|
"use strict";
export class RefreshableMetadata {
/** @param {{createdDate?:string,updatedDate?:string}} [init] */
constructor(init) { Object.assign(this, init) }
/** @type {string} */
createdDate;
/** @type {string} */
updatedDate;
}
export class ShortLink {
/** @param {{baseCode?:string,domain?:string,username?:string,affiliateTokensSet?:string,metadata?:RefreshableMetadata}} [init] */
constructor(init) { Object.assign(this, init) }
/** @type {string} */
baseCode;
/** @type {string} */
domain;
/** @type {string} */
username;
/** @type {?string} */
affiliateTokensSet;
/** @type {RefreshableMetadata} */
metadata;
}
export class GetAffiliateTokenSetResponse {
/** @param {{result?:ShortLink,responseStatus?:ResponseStatus}} [init] */
constructor(init) { Object.assign(this, init) }
/** @type {ShortLink} */
result;
/** @type {ResponseStatus} */
responseStatus;
}
export class GetAffiliateTokenSetRequest {
/** @param {{baseCode?:string}} [init] */
constructor(init) { Object.assign(this, init) }
/** @type {string} */
baseCode;
}
JavaScript GetAffiliateTokenSetRequest DTOs
To override the Content-type in your clients, use the HTTP Accept Header, append the .jsv suffix or ?format=jsv
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
GET /v4/short-links HTTP/1.1 Host: shortlinks-api.qa.platform.georiot.com Accept: text/jsv
HTTP/1.1 200 OK
Content-Type: text/jsv
Content-Length: length
{
result:
{
baseCode: String,
domain: String,
username: String,
affiliateTokensSet: 00000000000000000000000000000000,
metadata:
{
createdDate: 0001-01-01,
updatedDate: 0001-01-01
}
},
responseStatus:
{
errorCode: String,
message: String,
stackTrace: String,
errors:
[
{
errorCode: String,
fieldName: String,
message: String,
meta:
{
String: String
}
}
],
meta:
{
String: String
}
}
}