AffiliationAPI

<back to all web services

GetAffiliateTokensSetRequest

Requires Authentication
The following routes are available for this service:
GET/v4/affiliate-tokens-sets
Imports System
Imports System.IO
Imports System.Collections
Imports System.Collections.Generic
Imports System.Runtime.Serialization
Imports ServiceStack
Imports ServiceStack.DataAnnotations
Imports AffiliationAPI.ServiceModel.V4.Requests
Imports AffiliationAPI.ServiceModel.V4.Responses
Imports AffiliationAPI.ServiceModel.DomainModel

Namespace Global

    Namespace AffiliationAPI.ServiceModel.DomainModel

        <DataContract>
        Public Partial Class AffiliateProgram
            Implements IAffiliateProgram
            <DataMember(Name:="programGuid")>
            Public Overridable Property ProgramGuid As String Implements IAffiliateProgram.ProgramGuid

            <DataMember(Name:="affiliateTokens")>
            Public Overridable Property AffiliateTokens As IDictionary(Of String, String) Implements IAffiliateProgram.AffiliateTokens
        End Class

        Public Partial Class AffiliateTokens
            Implements IAffiliateTokens
            Public Overridable Property Id As String Implements IAffiliateTokens.Id
            Public Overridable Property Programs As List(Of AffiliateProgram)
            Public Overridable Property CreatedAtUtc As Date Implements IAffiliateTokens.CreatedAtUtc
            Public Overridable Property UpdatedAtUtc As Date Implements IAffiliateTokens.UpdatedAtUtc
        End Class

        Public Partial Class AffiliateTokensSet
            Inherits AffiliateTokens
            Implements IAffiliateTokensSet
            <DataMember(Name:="setGuid")>
            Public Overridable Property SetGuid As String

            <DataMember(Name:="username")>
            Public Overridable Property Username As String Implements IAffiliateTokensSet.Username
        End Class
    End Namespace

    Namespace AffiliationAPI.ServiceModel.V4.Requests

        <DataContract>
        Public Partial Class GetAffiliateTokensSetRequest
            <DataMember(Name:="setGuid")>
            Public Overridable Property SetGuid As Guid
        End Class
    End Namespace

    Namespace AffiliationAPI.ServiceModel.V4.Responses

        <DataContract>
        Public Partial Class GetAffiliateTokensSetResponse
            <DataMember(Name:="affiliateTokensSet")>
            Public Overridable Property AffiliateTokensSet As AffiliateTokensSet

            <DataMember(Name:="responseStatus")>
            Public Overridable Property ResponseStatus As ResponseStatus
        End Class
    End Namespace
End Namespace

VB.NET GetAffiliateTokensSetRequest DTOs

To override the Content-type in your clients, use the HTTP Accept Header, append the .csv suffix or ?format=csv

HTTP + CSV

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: text/csv
HTTP/1.1 200 OK
Content-Type: text/csv
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"}}}