Create API base class

This commit is contained in:
sneakypete81 2013-09-02 22:00:15 +01:00
parent 6293a81d39
commit 0f6cbd58e0
5 changed files with 19 additions and 28 deletions

View file

@ -3,12 +3,10 @@ api_action.py : Trovebox Action API Classes
"""
from trovebox.objects.action import Action
from trovebox.objects.photo import Photo
from .api_base import ApiBase
class ApiAction(object):
class ApiAction(ApiBase):
""" Definitions of /action/ API endpoints """
def __init__(self, client):
self._client = client
def create(self, target, target_type=None, **kwds):
"""
Create a new action and return it.