ShortlinksAPI

<back to all web services

GetAffiliateTokenSetRequest

Requires Authentication
The following routes are available for this service:
GET/v4/short-links

export class RefreshableMetadata implements IRefreshableMetadata
{
    public createdDate: string;
    public updatedDate: string;

    public constructor(init?: Partial<RefreshableMetadata>) { (Object as any).assign(this, init); }
}

export class ShortLink implements IShortLink
{
    public baseCode: string;
    public domain: string;
    public username: string;
    public affiliateTokensSet?: string;
    public metadata: RefreshableMetadata;

    public constructor(init?: Partial<ShortLink>) { (Object as any).assign(this, init); }
}

// @DataContract
export class GetAffiliateTokenSetResponse
{
    // @DataMember
    public result: ShortLink;

    // @DataMember
    public responseStatus: ResponseStatus;

    public constructor(init?: Partial<GetAffiliateTokenSetResponse>) { (Object as any).assign(this, init); }
}

// @DataContract
export class GetAffiliateTokenSetRequest
{
    // @DataMember(Name="baseCode")
    public baseCode: string;

    public constructor(init?: Partial<GetAffiliateTokenSetRequest>) { (Object as any).assign(this, init); }
}

TypeScript GetAffiliateTokenSetRequest 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.

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
		}
	}
}