Optionaloptions: GetNotificationsOptionsPagination options (page, limit)
Paginated notifications with unread count
import { getNotifications } from "@cpod/sdk";
const response = await getNotifications({ page: 1, limit: 20 });
console.log(`You have ${response.unread_count} unread notifications`);
response.notifications.forEach(notification => {
console.log(`${notification.title}: ${notification.message}`);
});
Get inbox notifications for the current user