User Info

The User Info API provides functionality for obtaining Unet user information.


Basic information

Endpoints

RESOURCE_URI — URI is obtained from token exchange point.

Prefix Endpoint Auth Description
RESOURCE_URI user/ OA, Ses Retrieving user details

+Retrieving user details

Endpoint

Scopes

  • user_email
  • user_birthday
  • user_details

Request

Response


Definitions

UserInfoRequest

Name Description

info[]
object

@UserInfoGroups
This parameter is based on the scopes requested during the application authorization.

UserInfoGroups

Name Description

email
string

User's primary email.

birthday
object

User's birthday datails in the @UserBirthdayStructure.

details
object

Different user details in the @UserDetailsStructure.

UserBirthdayStructure

Name Description

age
unsigned integer

The age of the user at the moment.

birthday
object

Year, month and birthday in the @UserBirthdayObject.

UserDetailsStructure

Name Description

uid
unsigned integer

User ID in Unet.

profile_url
string

The user profile address.

nickname
string

User nickname or pseudonym.

gender
string

Possible values:

  • male
  • female

first_name
string

First name.

last_name
string

Last name.

middle_name
string

Middle name.

other_name
string

Other name (e.g. maiden name).

age_range
object

User's age range in the @UserAgeRangeObject

face_photos[]
object

@UserFacePhotosObject

verified
boolean

User has passed the verification procedure.

UserBirthdayObject

  • year — e.g. 1981 (unsigned integer)
  • month — e.g. 12 (unsigned integer)
  • day — e.g. 31 (unsigned integer)

UserFacePhotosObject

  • url — photo URL (string)
  • width — photo width in pixels (unsigned integer)
  • height — photo height in pixels (unsigned integer)

UserAgeRangeObject

  • min — e.g. 18 (unsigned integer)
  • max — e.g. 20 (unsigned integer)