Notification log client
Client APIs for notification-log service
yarn add @atlaskit/notification-log-client
Note: This component is designed for internal Atlassian development.
External contributors will be able to use this component but will not be able to submit issues.
notification-log-client
is a fetch client implementation for making API calls to notification-log service.
This is intended to be used as a provider into other components, such as NotificationIndicator.
Usage
import { NotificationLogClient } from '@atlaskit/notification-log-client';
const notificationLogClient = new NotificationLogClient(
'http://base-url-to-notification-log-service',
'cloudid-abcd-1234-5678',
);
const result = await notificationLogClient.countUnseenNotifications();
console.log(result.count);