| GET | /v4/affiliate-tokens-sets |
|---|
namespace AffiliationAPI.ServiceModel.DomainModel
open System
open System.IO
open System.Collections
open System.Collections.Generic
open System.Runtime.Serialization
open ServiceStack
open ServiceStack.DataAnnotations
[<DataContract>]
[<AllowNullLiteral>]
type AffiliateProgram() =
[<DataMember(Name="programGuid")>]
member val ProgramGuid:String = null with get,set
[<DataMember(Name="affiliateTokens")>]
member val AffiliateTokens:IDictionary<String, String> = null with get,set
[<AllowNullLiteral>]
type AffiliateTokens() =
member val Id:String = null with get,set
member val Programs:ResizeArray<AffiliateProgram> = null with get,set
member val CreatedAtUtc:DateTime = new DateTime() with get,set
member val UpdatedAtUtc:DateTime = new DateTime() with get,set
[<AllowNullLiteral>]
type AffiliateTokensSet() =
inherit AffiliateTokens()
[<DataMember(Name="setGuid")>]
member val SetGuid:String = null with get,set
[<DataMember(Name="username")>]
member val Username:String = null with get,set
[<DataContract>]
[<AllowNullLiteral>]
type GetAffiliateTokensSetResponse() =
[<DataMember(Name="affiliateTokensSet")>]
member val AffiliateTokensSet:AffiliateTokensSet = null with get,set
[<DataMember(Name="responseStatus")>]
member val ResponseStatus:ResponseStatus = null with get,set
[<DataContract>]
[<AllowNullLiteral>]
type GetAffiliateTokensSetRequest() =
[<DataMember(Name="setGuid")>]
member val SetGuid:Guid = new Guid() with get,set
F# 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-pr-4587.qa.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"}}}