| GET | /v4/user-affiliate-tokens | Retrieve user's connected affiliate programs and tokens | Retrieve user's connected affiliate programs information, which includes affiliate program profiles and tokens information. |
|---|
namespace AffiliationAPI.ServiceModel.V4.Requests
open System
open System.IO
open System.Collections
open System.Collections.Generic
open System.Runtime.Serialization
open ServiceStack
open ServiceStack.DataAnnotations
[<DataContract>]
[<AllowNullLiteral>]
type BaseResponse() =
[<DataMember(Name="responseStatus")>]
member val ResponseStatus:ResponseStatus = null with get,set
[<AllowNullLiteral>]
type IAffiliateProgram =
abstract ProgramGuid:String with get,set
abstract AffiliateTokens:IDictionary<String, String> with get,set
[<DataContract>]
[<AllowNullLiteral>]
type GetUserAffiliateTokensResponse() =
inherit BaseResponse()
[<DataMember(Name="affiliateTokensSet")>]
member val AffiliatePrograms:ResizeArray<IAffiliateProgram> = null with get,set
[<DataContract>]
[<AllowNullLiteral>]
type GetUserAffiliateTokensRequest() =
[<DataMember(Name="username", IsRequired=true)>]
member val Username:String = null with get,set
[<DataMember(Name="includeDisabled")>]
member val IncludeDisabled:Boolean = new Boolean() with get,set
F# GetUserAffiliateTokensRequest 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/user-affiliate-tokens 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":[{}],"responseStatus":{"errorCode":"String","message":"String","stackTrace":"String","errors":[{"errorCode":"String","fieldName":"String","message":"String","meta":{"String":"String"}}],"meta":{"String":"String"}}}