Introducing Notifications
Currently we make use of the Notification and Activity objects to pull the relevant information. In the future only Notification will be needed.
This commit is contained in:
@@ -7,6 +7,7 @@ from .tokens import Token
|
||||
from .groups import Group
|
||||
from .organizations import Organization
|
||||
from .projects import Project
|
||||
from .activities import Activity, Notification
|
||||
from .binary_files import binaryFile
|
||||
from .exceptions import ResourceNotFound, UnauthorizedAccess, MissingConfig
|
||||
from .config import __version__, __pypi_packagename__
|
||||
|
||||
16
pillarsdk/activities.py
Normal file
16
pillarsdk/activities.py
Normal file
@@ -0,0 +1,16 @@
|
||||
from .resource import List
|
||||
from .resource import Find
|
||||
from .resource import Update
|
||||
from .resource import Create
|
||||
|
||||
|
||||
class Activity(List, Find):
|
||||
"""Activities class wrapping the REST activities endpoint
|
||||
"""
|
||||
path = "activities"
|
||||
|
||||
|
||||
class Notification(List, Find, Update):
|
||||
"""Notifications class wrapping the REST notifications endpoint
|
||||
"""
|
||||
path = "notifications"
|
||||
Reference in New Issue
Block a user