Returns the object of the current user. Editing your account
int
user, administrator/user identifier
date
to, end date
OK
Returns a JSON object of the user
null
Unauthorized
The authorization token is not provided or is invalid. Obtaining a token
curl -k --request POST \ --url 'https://your-domain/api/admin/v1/users/self' \ --header 'Content-Type: application/json' \ --header 'Accept: application/json' \ --data '{ "user": 0, "to": "date" }'
$data = array ( 'user' => 0, 'to' => 'date', ); $context = stream_context_create([ 'ssl'=>['verify_peer' => false], 'http' => [ 'method' => 'GET', 'header' => "Content-Type: application/json\r Accept: application/json", 'content'=>json_encode($data) ] ]); $result = file_get_contents('https://your-domain/api/admin/v1/users/self', false, $context);
Please note, these errors can depend on your browser setup.
If this problem persists, please contact our support.