| GET | /vipps/login/callback |
|---|
using System;
using System.IO;
using System.Collections;
using System.Collections.Generic;
using System.Runtime.Serialization;
using ServiceStack;
using ServiceStack.DataAnnotations;
using ConsumerApi;
namespace ConsumerApi
{
public partial class VippsAddress
{
public VippsAddressType AddressType { get; set; }
public string Country { get; set; }
public string Formatted { get; set; }
public string PostalCode { get; set; }
public string Region { get; set; }
public string StreetAddress { get; set; }
}
public enum VippsAddressType
{
Home,
Work,
Other,
}
public partial class VippsUserInfo
{
public VippsAddress Address { get; set; }
public DateTimeOffset Birthdate { get; set; }
public string? Email { get; set; }
public bool? EmailVerified { get; set; }
public string FamilyName { get; set; }
public string GivenName { get; set; }
public string Name { get; set; }
public string PhoneNumber { get; set; }
public string SessionIdentifier { get; set; }
public string SubjectIdentifier { get; set; }
}
}
C# VippsLoginCallbackRequest DTOs
To override the Content-type in your clients, use the HTTP Accept Header, append the .jsv suffix or ?format=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
}