Notification log client

Typescript ❤️

Client APIs for notification-log service

Install
yarn add @atlaskit/notification-log-client
Source
Bundle
Changelog
Latest

6.2.0

Minor Changes


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);

Basic

Initialise client and render a NotificationIndicator badge.
5