ConsumerApi

<back to all web services

VippsLoginCallbackRequest

Consumer
The following routes are available for this service:
GET/vipps/login/callback
Imports System
Imports System.IO
Imports System.Collections
Imports System.Collections.Generic
Imports System.Runtime.Serialization
Imports ServiceStack
Imports ServiceStack.DataAnnotations
Imports ConsumerApi

Namespace Global

    Namespace ConsumerApi

        Public Partial Class VippsAddress
            Public Property AddressType As VippsAddressType
            Public Property Country As String
            Public Property Formatted As String
            Public Property PostalCode As String
            Public Property Region As String
            Public Property StreetAddress As String
        End Class

        Public Enum VippsAddressType
            Home
            Work
            Other
        End Enum

        Public Partial Class VippsUserInfo
            Public Property Address As VippsAddress
            Public Property Birthdate As DateTimeOffset
            Public Property Email As String
            Public Property EmailVerified As Boolean?
            Public Property FamilyName As String
            Public Property GivenName As String
            Public Property Name As String
            Public Property PhoneNumber As String
            Public Property SessionIdentifier As String
            Public Property SubjectIdentifier As String
        End Class
    End Namespace
End Namespace

VB.NET VippsLoginCallbackRequest DTOs

To override the Content-type in your clients, use the HTTP Accept Header, append the .jsv suffix or ?format=jsv

HTTP + JSV

The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.

GET /vipps/login/callback HTTP/1.1 
Host: unstable-consumer-api.brovs.com 
Accept: text/jsv
HTTP/1.1 200 OK
Content-Type: text/jsv
Content-Length: length

{
	vippsUserInfo: 
	{
		address: 
		{
			addressType: Home,
			country: String,
			formatted: String,
			postalCode: String,
			region: String,
			streetAddress: String
		},
		birthdate: 0001-01-01T00:00:00.0000000+00:00,
		email: String,
		emailVerified: False,
		familyName: String,
		givenName: String,
		name: String,
		phoneNumber: String,
		sessionIdentifier: String,
		subjectIdentifier: String
	},
	nextRelativeUrl: String
}