ShortlinksAPI

<back to all web services

GetUserLinkRequest

Requires Authentication
The following routes are available for this service:
GET/v4/links
GET/v4/links/{Id}
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 ShortlinksAPI.Contracts.V4.DTOs
Imports Geniuslink.Shortlinks.Constants
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 VersionedRefreshableMetadata
            Inherits RefreshableMetadata
            Public Overridable Property VersionCreatedDate As Date
        End Class
    End Namespace

    Namespace Geniuslink.Shortlinks.Constants

        Public Enum LinkType
            None
            Simple
            Split
            Interstitial
            Advanced
            Collection
        End Enum
    End Namespace

    Namespace ShortlinksAPI.Contracts.V4.DTOs

        Public Interface IUserLink
            Property Url As String
            Property BaseCode As String
            Property LinkType As LinkType
            Property TypeDefinitionPublicId As String
            Property Metadata As VersionedRefreshableMetadata
        End Interface
    End Namespace

    Namespace ShortlinksAPI.ServiceModel.V4.Requests

        <DataContract>
        Public Partial Class GetUserLinkRequest
            Inherits V4BaseRequest
            <DataMember(Name:="id")>
            Public Overridable Property Id As String

            <DataMember(Name:="username")>
            Public Overridable Property Username As String

            <DataMember(Name:="groupId")>
            Public Overridable Property GroupId As UInt32
        End Class

        <DataContract>
        Public Partial Class V4BaseRequest
        End Class
    End Namespace

    Namespace ShortlinksAPI.ServiceModel.V4.Responses

        <DataContract>
        Public Partial Class GetUserLinkResponse
            Inherits V4BaseResponse
            Implements IGetUserLinkResponse
            <DataMember(Name:="data")>
            Public Overridable Property Data As IUserLink Implements IGetUserLinkResponse.Data
        End Class

        <DataContract>
        Public Partial Class V4BaseResponse
            <DataMember(Name:="status")>
            Public Overridable Property ResponseStatus As ResponseStatus
        End Class
    End Namespace
End Namespace

VB.NET GetUserLinkRequest 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/links HTTP/1.1 
Host: shortlinks-api.qa.platform.georiot.com 
Accept: text/csv
HTTP/1.1 200 OK
Content-Type: text/csv
Content-Length: length

{"status":{"errorCode":"String","message":"String","stackTrace":"String","errors":[{"errorCode":"String","fieldName":"String","message":"String","meta":{"String":"String"}}],"meta":{"String":"String"}}}