@@ 338-344 (lines=7) @@ | ||
335 | * @return \BambooHR\API\BambooHTTPResponse |
|
336 | * @link http://www.bamboohr.com/api/documentation/employees.php#getEmployee |
|
337 | */ |
|
338 | function getEmployee($employeeId, $fields=array()) { |
|
339 | $request=new BambooHTTPRequest(); |
|
340 | $request->method="GET"; |
|
341 | $request->url=$this->baseUrl."/v1/employees/".intval($employeeId)."/?fields=".implode(",",$fields); |
|
342 | ||
343 | return $this->httpHandler->sendRequest( $request ); |
|
344 | } |
|
345 | ||
346 | /** |
|
347 | * |
|
@@ 478-483 (lines=6) @@ | ||
475 | * @return \BambooHR\API\BambooHTTPResponse |
|
476 | * @link http://www.bamboohr.com/api/documentation/changes.php#description |
|
477 | */ |
|
478 | function getChangedEmployees($since, $type="all") { |
|
479 | $request=new BambooHTTPRequest(); |
|
480 | $request->method="GET"; |
|
481 | $request->url=$this->baseUrl."/v1/employees/changed/?since=".urlencode($since)."&type=".urlencode($type); |
|
482 | return $this->httpHandler->sendRequest( $request ); |
|
483 | } |
|
484 | ||
485 | /** |
|
486 | * |
|
@@ 933-939 (lines=7) @@ | ||
930 | * @return \BambooHR\API\BambooHTTPResponse |
|
931 | * @link http://www.bamboohr.com/api/documentation/employees.php#downloadEmployeeFile |
|
932 | */ |
|
933 | function downloadEmployeeFile($employeeId, $fileId) { |
|
934 | $request=new BambooHTTPRequest(); |
|
935 | $request->method="GET"; |
|
936 | $request->url=$this->baseUrl."/v1/employees/".intval($employeeId)."/files/".intval($fileId)."/"; |
|
937 | ||
938 | return $this->httpHandler->sendRequest( $request ); |
|
939 | } |
|
940 | ||
941 | /** |
|
942 | * |