-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
6 changed files
with
55 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
Events API | ||
========== | ||
|
||
- `List Notifications`_ | ||
- `Read Event`_ | ||
|
||
List Notifications | ||
----------------- | ||
|
||
List notifications | ||
|
||
- **GET** /notification/list | ||
|
||
Request | ||
|
||
=========== ======== ========================================== | ||
Field Type Description | ||
=========== ======== ========================================== | ||
\- \- \- | ||
=========== ======== ========================================== | ||
|
||
.. code-block:: js | ||
const response = await axios.get('https://botisimo.com/api/v1/loyalty/:team/notification/list', { | ||
headers: { | ||
'x-user-auth-token': 'xxxxxxx', | ||
}, | ||
}); | ||
Response | ||
|
||
========================== ======== ======================================= | ||
Field Type Description | ||
========================== ======== ======================================= | ||
notifications object[] | ||
notifications.id number The ID of the notification | ||
notifications.timestamp string The ISO date of when the notification was created | ||
notifications.body string The notification display text | ||
notifications.event [object] The event connected to the notification, if one exists | ||
notifications.mission [object] The mission connected to the notification, if one exists | ||
notifications.rpgShopItem [object] The shop item connected to the notification, if one exists | ||
notifications.resourceId [number] The resource ID of the notification image. You should use the resource ID from the ``event``, ``mission``, or ``rpgShopItem`` if they exist | ||
notifications.link [string] The URL link related to the notification, if one exists | ||
========================== ======== ======================================= |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters