Test

<back to all web services

GetUserDetails

Requires Authentication
The following routes are available for this service:
All Verbs/account
Imports System
Imports System.Collections
Imports System.Collections.Generic
Imports System.Runtime.Serialization
Imports ServiceStack
Imports ServiceStack.DataAnnotations
Imports Test.ServiceInterface

Namespace Global

    Namespace Test.ServiceInterface

        Public Partial Class GetUserDetails
        End Class

        Public Partial Class GetUserDetailsResponse
            Public Overridable Property Provider As String
            Public Overridable Property UserId As String
            Public Overridable Property UserName As String
            Public Overridable Property FullName As String
            Public Overridable Property DisplayName As String
            Public Overridable Property FirstName As String
            Public Overridable Property LastName As String
            Public Overridable Property Company As String
            Public Overridable Property Email As String
            Public Overridable Property PhoneNumber As String
            Public Overridable Property BirthDate As Nullable(Of Date)
            Public Overridable Property BirthDateRaw As String
            Public Overridable Property Address As String
            Public Overridable Property Address2 As String
            Public Overridable Property City As String
            Public Overridable Property State As String
            Public Overridable Property Country As String
            Public Overridable Property Culture As String
            Public Overridable Property Gender As String
            Public Overridable Property Language As String
            Public Overridable Property MailAddress As String
            Public Overridable Property Nickname As String
            Public Overridable Property PostalCode As String
            Public Overridable Property TimeZone As String
        End Class
    End Namespace
End Namespace

VB.NET GetUserDetails 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.

POST /account HTTP/1.1 
Host: test.servicestack.net 
Accept: application/json
Content-Type: application/json
Content-Length: length

{}
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: length

{"provider":"String","userId":"String","userName":"String","fullName":"String","displayName":"String","firstName":"String","lastName":"String","company":"String","email":"String","phoneNumber":"String","birthDate":"\/Date(-62135596800000-0000)\/","birthDateRaw":"String","address":"String","address2":"String","city":"String","state":"String","country":"String","culture":"String","gender":"String","language":"String","mailAddress":"String","nickname":"String","postalCode":"String","timeZone":"String"}