AffiliationAPI

<back to all web services

GetAffiliateTokensSetRequest

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

namespace AffiliationAPI.ServiceModel.DomainModel
{
    [DataContract]
    public partial class AffiliateProgram
        : IAffiliateProgram
    {
        [DataMember(Name="programGuid")]
        public virtual string ProgramGuid { get; set; }

        [DataMember(Name="affiliateTokens")]
        public virtual IDictionary<string, string> AffiliateTokens { get; set; }
    }

    public partial class AffiliateTokens
        : IAffiliateTokens
    {
        public virtual string Id { get; set; }
        public virtual List<AffiliateProgram> Programs { get; set; }
        public virtual DateTime CreatedAtUtc { get; set; }
        public virtual DateTime UpdatedAtUtc { get; set; }
    }

    public partial class AffiliateTokensSet
        : AffiliateTokens, IAffiliateTokensSet
    {
        [DataMember(Name="setGuid")]
        public virtual string SetGuid { get; set; }

        [DataMember(Name="username")]
        public virtual string Username { get; set; }
    }

}

namespace AffiliationAPI.ServiceModel.V4.Requests
{
    [DataContract]
    public partial class GetAffiliateTokensSetRequest
    {
        [DataMember(Name="setGuid")]
        public virtual Guid SetGuid { get; set; }
    }

}

namespace AffiliationAPI.ServiceModel.V4.Responses
{
    [DataContract]
    public partial class GetAffiliateTokensSetResponse
    {
        [DataMember(Name="affiliateTokensSet")]
        public virtual AffiliateTokensSet AffiliateTokensSet { get; set; }

        [DataMember(Name="responseStatus")]
        public virtual ResponseStatus ResponseStatus { get; set; }
    }

}

C# 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

HTTP + JSON

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"}}}