| GET | /v4/affiliate-tokens-sets |
|---|
// @DataContract
export class AffiliateProgram implements IAffiliateProgram
{
// @DataMember(Name="programGuid")
public programGuid: string;
// @DataMember(Name="affiliateTokens")
public affiliateTokens: { [index:string]: string; };
public constructor(init?: Partial<AffiliateProgram>) { (Object as any).assign(this, init); }
}
export class AffiliateTokens implements IAffiliateTokens
{
public id: string;
public programs: AffiliateProgram[];
public createdAtUtc: string;
public updatedAtUtc: string;
public constructor(init?: Partial<AffiliateTokens>) { (Object as any).assign(this, init); }
}
export class AffiliateTokensSet extends AffiliateTokens implements IAffiliateTokensSet
{
// @DataMember(Name="setGuid")
public setGuid: string;
// @DataMember(Name="username")
public username: string;
public constructor(init?: Partial<AffiliateTokensSet>) { super(init); (Object as any).assign(this, init); }
}
// @DataContract
export class GetAffiliateTokensSetResponse
{
// @DataMember(Name="affiliateTokensSet")
public affiliateTokensSet: AffiliateTokensSet;
// @DataMember(Name="responseStatus")
public responseStatus: ResponseStatus;
public constructor(init?: Partial<GetAffiliateTokensSetResponse>) { (Object as any).assign(this, init); }
}
// @DataContract
export class GetAffiliateTokensSetRequest
{
// @DataMember(Name="setGuid")
public setGuid: string;
public constructor(init?: Partial<GetAffiliateTokensSetRequest>) { (Object as any).assign(this, init); }
}
TypeScript GetAffiliateTokensSetRequest DTOs
To override the Content-type in your clients, use the HTTP Accept Header, append the .json suffix or ?format=json
To embed the response in a jsonp callback, append ?callback=myCallback
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-zane.dev.platform.georiot.com Accept: application/json
HTTP/1.1 200 OK
Content-Type: application/json
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"}}}