| GET | /v1/affiliate-tokens |
|---|
// @DataContract
export class AffiliateTokens
{
// @DataMember(Name="guid")
public guid: string;
// @DataMember(Name="programGuid")
public programGuid: string;
// @DataMember(Name="affiliateTokens")
public affiliateTokens: { [index:string]: string; };
public constructor(init?: Partial<AffiliateTokens>) { (Object as any).assign(this, init); }
}
// @DataContract
export class GetAffiliateTokensResponse
{
// @DataMember(Name="affiliatePrograms")
public affiliatePrograms: AffiliateTokens[];
// @DataMember(Name="responseStatus")
public responseStatus: ResponseStatus;
public constructor(init?: Partial<GetAffiliateTokensResponse>) { (Object as any).assign(this, init); }
}
// @DataContract
export class GetAffiliateTokensRequest
{
public constructor(init?: Partial<GetAffiliateTokensRequest>) { (Object as any).assign(this, init); }
}
TypeScript GetAffiliateTokensRequest 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 /v1/affiliate-tokens HTTP/1.1 Host: api.booklinker.com Accept: text/jsv
HTTP/1.1 200 OK
Content-Type: text/jsv
Content-Length: length
{
affiliatePrograms:
[
{
affiliateTokens:
{
String: String
}
}
],
responseStatus:
{
errorCode: String,
message: String,
stackTrace: String,
errors:
[
{
errorCode: String,
fieldName: String,
message: String,
meta:
{
String: String
}
}
],
meta:
{
String: String
}
}
}