GET
/
v1
/
oauth2
/
userinfo
PHP (SDK)
declare(strict_types=1);

require 'vendor/autoload.php';

use Polar;

$sdk = Polar\Polar::builder()
    ->setSecurity(
        '<YOUR_BEARER_TOKEN_HERE>'
    )
    ->build();



$response = $sdk->oauth2->userinfo(

);

if ($response->responseOauth2Userinfo !== null) {
    // handle response
}
{
  "sub": "<string>",
  "name": "<string>",
  "email": "<string>",
  "email_verified": true
}

Authorizations

Authorization
string
header
required

You can generate an Organization Access Token from your organization's settings.

Response

200 - application/json

Successful Response

The response is of type object.