我正在开发 BambooHR 与应用程序的集成。我需要来自 API 的员工详细信息。我在 https://documentation.bamboohr.com/reference#get-employees-directory-1 找到了用于此的 BambooHR API
端点:https://api.bamboohr.com/api/gateway.php/gauravtest2/v1/employees/directory .此 API 为我提供诸如名字、姓氏、职位、手机、工作电子邮件等信息。但我还需要员工层次结构(经理和直接下属)、状态、雇用日期等。提前致谢
最佳答案
BambooHr 仅提供一些有关使用员工目录 API 获取员工详细信息的基本信息,您可以使用获取员工 API。终点看起来像:https://api.bamboohr.com/api/gateway.php//v1/employees//?fields=employeeNumber,jobTitle,status,employmentHistoryStatus,address1,address2,birthday,bestEmail,workEmail,workPhone,city,country,department,ethnicity,firstName,lastName,gender,middleName,mobilePhone,zipcode,hireDate,supervisor,payRate,bonusAmount,commissionAmount,payFrequency
您必须从 API 添加您期望的详细信息作为查询参数。
关于api - BambooHR API 未提供完整的员工详细信息,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/63113759/