PHP
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 }
Get information about the authenticated user.
You can generate an Organization Access Token from your organization's settings.
Successful Response
The response is of type object.
object
Was this page helpful?