Skip to content

Commit

Permalink
add loyalty notifications API docs
Browse files Browse the repository at this point in the history
  • Loading branch information
otothea committed Jul 22, 2022
1 parent a0a1e1a commit 90f50bf
Show file tree
Hide file tree
Showing 6 changed files with 55 additions and 1 deletion.
2 changes: 1 addition & 1 deletion docs/loyalty/documentation/creators.rst
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ Response
Field Type Description
================================================ ======== =======================================
creators object[]
creators.id string The ID of the creator
creators.id number The ID of the creator
creators.hasTwitch boolean
creators.twitchConnections object[]
creators.twitchConnections.twitchId string
Expand Down
2 changes: 2 additions & 0 deletions docs/loyalty/documentation/events.rst
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ Response
Field Type Description
=================== ======== =======================================
events object[]
events.id number The ID of the event
events.name string The name of the event
events.description string The event description
events.url string The event URL
Expand Down Expand Up @@ -76,6 +77,7 @@ Response
Field Type Description
================== ======== ==================================================
event object
event.id number The ID of the event
event.name string The name of the event
event.description string The event description
event.url string The event URL
Expand Down
2 changes: 2 additions & 0 deletions docs/loyalty/documentation/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ API Documentation
- :doc:`Missions API <missions>`
- :doc:`Shop Items API <shopItems>`
- :doc:`Events API <events>`
- :doc:`Notifications API <notifications>`

.. toctree::
:maxdepth: 1
Expand All @@ -29,6 +30,7 @@ API Documentation
missions
shopItems
events
notifications

API Endpoint
------------
Expand Down
3 changes: 3 additions & 0 deletions docs/loyalty/documentation/missions.rst
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ Response
Field Type Description
==================== ======== =======================================
missions object[]
missions.id number The ID of the mission
missions.name string The name of the mission
missions.description string The mission description
missions.type string The mission type
Expand Down Expand Up @@ -75,6 +76,7 @@ Response
Field Type Description
=================== ======== =======================================
mission object
mission.id number The ID of the mission
mission.name string The name of the mission
mission.description string The mission description
mission.type string The mission type
Expand Down Expand Up @@ -114,6 +116,7 @@ Response
Field Type Description
=================== ======== =======================================
mission object
mission.id number The ID of the mission
mission.name string The name of the mission
mission.description string The mission description
mission.type string The mission type
Expand Down
44 changes: 44 additions & 0 deletions docs/loyalty/documentation/notifications.rst
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
========================== ======== =======================================
3 changes: 3 additions & 0 deletions docs/loyalty/documentation/shopItems.rst
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ Response
Field Type Description
======================= ======== =======================================
shopItems object[]
shopItems.id number The ID of the shop item
shopItems.name string The name of the shop item
shopItems.description string The shop item description
shopItems.type string The shop item type
Expand Down Expand Up @@ -75,6 +76,7 @@ Response
Field Type Description
====================== ======== =======================================
shopItem object
shopItem.id number The ID of the shop item
shopItem.name string The name of the shop item
shopItem.description string The shop item description
shopItem.type string The shop item type
Expand Down Expand Up @@ -116,6 +118,7 @@ Response
Field Type Description
====================== ======== =======================================
shopItem object
shopItem.id number The ID of the shop item
shopItem.name string The name of the shop item
shopItem.description string The shop item description
shopItem.type string The shop item type
Expand Down

0 comments on commit 90f50bf

Please sign in to comment.