Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

class to sync employees from bamboo hr #98

Merged
merged 11 commits into from
Dec 20, 2023
13 changes: 13 additions & 0 deletions bamboosdk/api/employee.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
from .api_base import ApiBase


class Employee(ApiBase):

GET_EMPLOYEE_REPORT = '/v1/reports/custom?format=JSON&onlyCurrent=false'

def sync_employees(self):
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

is this API paginated? added 1 more question to slack, will approve after discussion

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

call it get_all()

"""Get the list of employees from bambooHr
Returns:
List with dicts in Employee schema.
"""
return self._post_request(self.GET_EMPLOYEE_REPORT)
Loading