<gh_stars>0
#!/usr/bin/env python3
# -*- coding: utf8 -*-
from .BaseEndpoint import BaseEndpoint


class Tasks(BaseEndpoint):

    def list(self):
        """
        Read all open tasks

        References:
            https://apidocs.hibob.com/reference#get_tasks
        """
        return self.client.get('tasks')

    def my_tasks(self):
        """
        Read tasks of the logged-in user

        References:
            https://apidocs.hibob.com/reference#get_my-tasks
        """
        return self.client.get('my/tasks')

#!/usr/bin/env python3
# -*- coding: utf8 -*-
from .BaseEndpoint import BaseEndpoint


class Tasks(BaseEndpoint):

    def list(self):
        """
        Read all open tasks

        References:
            https://apidocs.hibob.com/reference#get_tasks
        """
        return self.client.get('tasks')

    def my_tasks(self):
        """
        Read tasks of the logged-in user

        References:
            https://apidocs.hibob.com/reference#get_my-tasks
        """
        return self.client.get('my/tasks')
#!/usr/bin/env python3 # -*- coding: utf8 -*- Read all open tasks          References:             https://apidocs.hibob.com/reference#get_tasks Read tasks of the logged-in user          References:             https://apidocs.hibob.com/reference#get_my-tasks