Constructor
# new NotificationsService(cookie)
Creates an instance of NotificationsService.
Parameters:
Name | Type | Description |
---|---|---|
cookie |
string
|
The cookie value. |
Methods
# async getNotifications() → {Promise.<Notifications>}
Retrieves the notifications.
If an error occurs during the API request.
Error
A promise that resolves to the notifications object.
Promise.<Notifications>