| GET | /v4/short-links |
|---|
Imports System
Imports System.IO
Imports System.Collections
Imports System.Collections.Generic
Imports System.Runtime.Serialization
Imports ServiceStack
Imports ServiceStack.DataAnnotations
Imports ShortlinksAPI.ServiceModel.V4.Requests
Imports ShortlinksAPI.ServiceModel.V4.Responses
Imports Geniuslink.Shortlinks
Namespace Global
Namespace Geniuslink.Shortlinks
Public Partial Class RefreshableMetadata
Implements IRefreshableMetadata
Public Overridable Property CreatedDate As Date Implements IRefreshableMetadata.CreatedDate
Public Overridable Property UpdatedDate As Date Implements IRefreshableMetadata.UpdatedDate
End Class
Public Partial Class ShortLink
Implements IShortLink
Public Overridable Property BaseCode As String Implements IShortLink.BaseCode
Public Overridable Property Domain As String Implements IShortLink.Domain
Public Overridable Property Username As String Implements IShortLink.Username
Public Overridable Property AffiliateTokensSet As Guid? Implements IShortLink.AffiliateTokensSet
Public Overridable Property Metadata As RefreshableMetadata
End Class
End Namespace
Namespace ShortlinksAPI.ServiceModel.V4.Requests
<DataContract>
Public Partial Class GetAffiliateTokenSetRequest
<DataMember(Name:="baseCode")>
Public Overridable Property BaseCode As String
End Class
End Namespace
Namespace ShortlinksAPI.ServiceModel.V4.Responses
<DataContract>
Public Partial Class GetAffiliateTokenSetResponse
<DataMember>
Public Overridable Property Result As ShortLink
<DataMember>
Public Overridable Property ResponseStatus As ResponseStatus
End Class
End Namespace
End Namespace
VB.NET 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"}}}