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:
2016-03-05 23:18:04 +01:00
parent f034c9b2d2
commit ae59249196
2 changed files with 17 additions and 0 deletions

View File

@@ -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
View 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"