Mini App

User Info

Get logged userinfo with Oauth authentication

$client = new http\Client;
$request = new http\Client\Request;


$body = new http\Message\Body;
  'Content-Type' => 'application/json',
  'Accept' => 'application/json',
  'Authorization' => 'Bearer auth {Must be user token}'


$response = $client->getResponse();
echo $response->getBody();
OkHttpClient client = new OkHttpClient().newBuilder().build();

Request request = new Request.Builder()
  .method("GET", null)
  .addHeader("Content-Type", "application/json")
  .addHeader("Accept", "application/json")
  .addHeader("Authorization", "Bearer auth {Must be user token}")

Response response = client.newCall(request).execute();
Method GET
Content-Type application/json
Authorization Bearer auth {Must be user token}
Request parameters No parameter required
Parameters Type Description
code string Status description code
intCode integer Status code
info string Status info
result object Result object contains embedded parameter(s)
Result object parameters
Parameters Type Description
userId integer Logged user unique ID
userPhone integer Logged user phone (requires phone scope)
userEmail string Logged user email (requires email scope)
userFirstname string Logged user name (requires name scope)
userLastname string Logged user surname (requires name scope)