get_profile()

The User API

The get_profile() function returns information about a user’s profile.

Production URL

https://api.nextpertise.nl/user/v1

Method

get_profile

Input

Get user profile request

https://api.nextpertise.nl/schemas/user/get_user_profile_request_v1.json

Get all information about a user’s profile

type

object

properties

additionalProperties

False

Output

Get user profile reply

https://api.nextpertise.nl/schemas/user/get_user_profile_reply_v1.json

Get all information about a user’s profile

type

object

properties

  • user

type

object

properties

  • language

IETF BCP 47 language tag

type

string

enum

en-US, nl-NL

  • firstname

type

string

  • lastname

type

string

  • username

type

string

  • notification

type

array

additionalProperties

False

Example

Request

curl -s -u <credential> https://api.nextpertise.nl/user/v1 -d '{
    "jsonrpc": "2.0",
    "id": 1,
    "method": "get_permission",
    "params":{}
}' | jq .

Reply

{
    "jsonrpc": "2.0",
    "id": "1",
    "result": {
        "user": {
            "language": "nl-NL",
            "firstname": "Teun",
            "lastname": "Ouwehand",
            "username": "teun@nextpertise.nl"
        }
    }
}