Documentation IndexFetch the complete documentation index at: /docs/llms.txtUse this file to discover all available pages before exploring further.
Fetch the complete documentation index at: /docs/llms.txt
Use this file to discover all available pages before exploring further.
Get information about the authenticated user.
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 }
You can generate an Organization Access Token from your organization's settings.
Successful Response
Was this page helpful?