Skip to content

Commit

Permalink
minor changes
Browse files Browse the repository at this point in the history
  • Loading branch information
Ashutosh619-sudo committed Dec 20, 2023
1 parent 1ddde23 commit e792302
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion bamboosdk/api/employee.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,11 @@
class Employee(ApiBase):

GET_EMPLOYEE_REPORT = '/v1/reports/custom?format=JSON&onlyCurrent=false'
payload = { "fields": ["displayName", "firstName", "lastName", "department", "workEmail", "supervisorEmail", "status"] }

def get_all(self):
"""Get the list of employees from bambooHr
Returns:
List with dicts in Employee schema.
"""
return self._post_request(self.GET_EMPLOYEE_REPORT)
return self._post_request(self.GET_EMPLOYEE_REPORT, payload=self.payload)

0 comments on commit e792302

Please sign in to comment.