Skip to content

Latest commit

 

History

History
62 lines (43 loc) · 3.57 KB

File metadata and controls

62 lines (43 loc) · 3.57 KB

NovuSubscribersNotifications

(subscribers->notifications)

Overview

Available Operations

  • getFeed - Get in-app notification feed for a particular subscriber

getFeed

Get in-app notification feed for a particular subscriber

Example Usage

declare(strict_types=1);

require 'vendor/autoload.php';

use novu;
use novu\Models\Operations;

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

$request = new Operations\SubscribersV1ControllerGetNotificationsFeedRequest(
    subscriberId: '<id>',
    payload: 'btoa(JSON.stringify({ foo: 123 })) results in base64 encoded string like eyJmb28iOjEyM30=',
);

$response = $sdk->subscribers->notifications->getFeed(
    request: $request
);

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

Parameters

Parameter Type Required Description
$request Operations\SubscribersV1ControllerGetNotificationsFeedRequest ✔️ The request object to use for the request.

Response

?Operations\SubscribersV1ControllerGetNotificationsFeedResponse

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