Skip to content

Latest commit

 

History

History
58 lines (38 loc) · 1.96 KB

README.md

File metadata and controls

58 lines (38 loc) · 1.96 KB

Stats

(notifications->stats)

Overview

Available Operations

  • get - Get notification statistics

get

Get notification statistics

Example Usage

declare(strict_types=1);

require 'vendor/autoload.php';

use novu;

$sdk = novu\Novu::builder()
    ->setSecurity(
        '<YOUR_API_KEY_HERE>'
    )
    ->build();



$response = $sdk->notifications->stats->get(
    idempotencyKey: '<value>'
);

if ($response->activityStatsResponseDto !== null) {
    // handle response
}

Parameters

Parameter Type Required Description
idempotencyKey ?string A header for idempotency purposes

Response

?Operations\NotificationsControllerGetActivityStatsResponse

Errors

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 */*