| GET | /v4/short-links |
|---|
import Foundation
import ServiceStack
// @DataContract
public class GetAffiliateTokenSetRequest : Codable
{
// @DataMember(Name="baseCode")
public var baseCode:String
required public init(){}
}
// @DataContract
public class GetAffiliateTokenSetResponse : Codable
{
// @DataMember
public var result:ShortLink
// @DataMember
public var responseStatus:ResponseStatus
required public init(){}
}
public class ShortLink : IShortLink, Codable
{
public var baseCode:String
public var domain:String
public var username:String
public var affiliateTokensSet:String?
public var metadata:RefreshableMetadata
required public init(){}
}
public class RefreshableMetadata : IRefreshableMetadata, Codable
{
public var createdDate:Date
public var updatedDate:Date
required public init(){}
}
Swift GetAffiliateTokenSetRequest DTOs
To override the Content-type in your clients, use the HTTP Accept Header, append the .other suffix or ?format=other
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
GET /v4/short-links HTTP/1.1 Host: shortlinks-api.qa.platform.georiot.com Accept: text/jsonl
HTTP/1.1 200 OK
Content-Type: text/jsonl
Content-Length: length
{"result":{"baseCode":"String","domain":"String","username":"String","affiliateTokensSet":"00000000000000000000000000000000","metadata":{"createdDate":"0001-01-01T00:00:00.0000000","updatedDate":"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"}}}