PHP
declare(strict_types=1); require 'vendor/autoload.php'; use Polar; $sdk = Polar\Polar::builder() ->setSecurity( '<YOUR_BEARER_TOKEN_HERE>' ) ->build(); $response = $sdk->metrics->limits( ); if ($response->metricsLimits !== null) { // handle response }
{ "min_date": "2023-12-25", "intervals": { "hour": { "max_days": 123 }, "day": { "max_days": 123 }, "week": { "max_days": 123 }, "month": { "max_days": 123 }, "year": { "max_days": 123 } } }
Get the interval limits for the metrics endpoint.
Scopes: metrics:read
metrics:read
You can generate an Organization Access Token from your organization's settings.
Successful Response
Date limits to get metrics.
Was this page helpful?