ConsumerApi

<back to all web services

VippsLoginCallbackRequest

Consumer
The following routes are available for this service:
GET/vipps/login/callback
import datetime
import decimal
from marshmallow.fields import *
from servicestack import *
from typing import *
from dataclasses import dataclass, field
from dataclasses_json import dataclass_json, LetterCase, Undefined, config
from enum import Enum, IntEnum

# module ConsumerApi


class VippsAddressType(str, Enum):
    HOME = 'Home'
    WORK = 'Work'
    OTHER = 'Other'


@dataclass_json(letter_case=LetterCase.CAMEL, undefined=Undefined.EXCLUDE)
@dataclass
class VippsAddress:
    address_type: Optional[VippsAddressType] = None
    country: Optional[str] = None
    formatted: Optional[str] = None
    postal_code: Optional[str] = None
    region: Optional[str] = None
    street_address: Optional[str] = None


@dataclass_json(letter_case=LetterCase.CAMEL, undefined=Undefined.EXCLUDE)
@dataclass
class VippsUserInfo:
    address: Optional[VippsAddress] = None
    birthdate: datetime.datetime = datetime.datetime(1, 1, 1)
    email: Optional[str] = None
    email_verified: Optional[bool] = None
    family_name: Optional[str] = None
    given_name: Optional[str] = None
    name: Optional[str] = None
    phone_number: Optional[str] = None
    session_identifier: Optional[str] = None
    subject_identifier: Optional[str] = None


Python VippsLoginCallbackRequest DTOs

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

HTTP + OTHER

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/jsonl
HTTP/1.1 200 OK
Content-Type: text/jsonl
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"}