| GET | /v4/short-links |
|---|
import java.math.*
import java.util.*
import java.io.InputStream
import net.servicestack.client.*
import com.google.gson.annotations.*
import com.google.gson.reflect.*
@DataContract
open class GetAffiliateTokenSetRequest
{
@DataMember(Name="baseCode")
@SerializedName("baseCode")
open var baseCode:String? = null
}
@DataContract
open class GetAffiliateTokenSetResponse
{
@DataMember
open var result:ShortLink? = null
@DataMember
open var responseStatus:ResponseStatus? = null
}
open class ShortLink : IShortLink
{
override var baseCode:String? = null
override var domain:String? = null
override var username:String? = null
override var affiliateTokensSet:UUID? = null
open var metadata:RefreshableMetadata? = null
}
open class RefreshableMetadata : IRefreshableMetadata
{
override var createdDate:Date? = null
override var updatedDate:Date? = null
}
Kotlin GetAffiliateTokenSetRequest 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/short-links HTTP/1.1 Host: shortlinks-api.qa.platform.georiot.com Accept: application/json
HTTP/1.1 200 OK
Content-Type: application/json
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"}}}