(notificationsStats)
- getGraph - Get notification graph statistics
Get notification graph statistics
declare(strict_types=1);
require 'vendor/autoload.php';
use novu;
$sdk = novu\Novu::builder()
->setSecurity(
'<YOUR_API_KEY_HERE>'
)
->build();
$response = $sdk->notificationsStats->getGraph(
days: 517.81,
idempotencyKey: '<value>'
);
if ($response->activityGraphStatesResponses !== null) {
// handle response
}
Parameter | Type | Required | Description |
---|---|---|---|
days |
?float | ➖ | N/A |
idempotencyKey |
?string | ➖ | A header for idempotency purposes |
?Operations\NotificationsControllerGetActivityGraphStatsResponse
Error Type | Status Code | Content Type |
---|---|---|
Errors\ErrorDto | 414 | application/json |
Errors\ErrorDto | 400, 401, 403, 404, 405, 409, 413, 415 | application/json |
Errors\ValidationErrorDto | 422 | application/json |
Errors\ErrorDto | 500 | application/json |
Errors\APIException | 4XX, 5XX | */* |