|
@@ 492-497 (lines=6) @@
|
| 489 |
|
* @return \BambooHR\API\BambooHTTPResponse |
| 490 |
|
* @link http://www.bamboohr.com/api/documentation/metadata.php |
| 491 |
|
*/ |
| 492 |
|
function getMetaData($type, $params=array()) { |
| 493 |
|
$request=new BambooHTTPRequest(); |
| 494 |
|
$request->method="GET"; |
| 495 |
|
$request->url=$this->baseUrl."/v1/meta/$type/"; |
| 496 |
|
return $this->httpHandler->sendRequest( $request ); |
| 497 |
|
} |
| 498 |
|
|
| 499 |
|
/** |
| 500 |
|
* |
|
@@ 824-829 (lines=6) @@
|
| 821 |
|
* @return \BambooHR\API\BambooHTTPResponse |
| 822 |
|
* @link http://www.bamboohr.com/api/documentation/employees.php#listEmployeeFiles |
| 823 |
|
*/ |
| 824 |
|
function listEmployeeFiles($employeeId){ |
| 825 |
|
$request=new BambooHTTPRequest(); |
| 826 |
|
$request->method="GET"; |
| 827 |
|
$request->url=$this->baseUrl."/v1/employees/".intval($employeeId)."/files/view/"; |
| 828 |
|
return $this->httpHandler->sendRequest( $request ); |
| 829 |
|
} |
| 830 |
|
|
| 831 |
|
/** |
| 832 |
|
* |
|
@@ 836-841 (lines=6) @@
|
| 833 |
|
* @return \BambooHR\API\BambooHTTPResponse |
| 834 |
|
* @link http://www.bamboohr.com/api/documentation/employees.php#listCompanyFiles |
| 835 |
|
*/ |
| 836 |
|
function listCompanyFiles(){ |
| 837 |
|
$request=new BambooHTTPRequest(); |
| 838 |
|
$request->method="GET"; |
| 839 |
|
$request->url=$this->baseUrl."/v1/files/view/"; |
| 840 |
|
return $this->httpHandler->sendRequest( $request ); |
| 841 |
|
} |
| 842 |
|
|
| 843 |
|
/** |
| 844 |
|
* |
|
@@ 947-952 (lines=6) @@
|
| 944 |
|
* @return \BambooHR\API\BambooHTTPResponse |
| 945 |
|
* @link http://www.bamboohr.com/api/documentation/employees.php#downloadCompanyFile |
| 946 |
|
*/ |
| 947 |
|
function downloadCompanyFile($fileId){ |
| 948 |
|
$request=new BambooHTTPRequest(); |
| 949 |
|
$request->method="GET"; |
| 950 |
|
$request->url=$this->baseUrl."/v1/files/".intval($fileId)."/"; |
| 951 |
|
return $this->httpHandler->sendRequest( $request ); |
| 952 |
|
} |
| 953 |
|
|
| 954 |
|
/** |
| 955 |
|
* This api is undocumented. It is only useful for importing large numbers of |
|
@@ 961-968 (lines=8) @@
|
| 958 |
|
* @param string $xml |
| 959 |
|
* @return \BambooHR\API\BambooHTTPResponse |
| 960 |
|
*/ |
| 961 |
|
function importEmployees($xml){ |
| 962 |
|
$request=new BambooHTTPRequest(); |
| 963 |
|
$request->method="POST"; |
| 964 |
|
$request->url=$this->baseUrl."/v1/employees/import"; |
| 965 |
|
$request->content=$xml; |
| 966 |
|
|
| 967 |
|
return $this->httpHandler->sendRequest($request); |
| 968 |
|
} |
| 969 |
|
|
| 970 |
|
/** |
| 971 |
|
* |
|
@@ 975-980 (lines=6) @@
|
| 972 |
|
* @return \BambooHR\API\BambooHTTPResponse |
| 973 |
|
* @link http://www.dev5.bamboohr.com/api/documentation/employees.php#getEmployeeDirectory |
| 974 |
|
*/ |
| 975 |
|
function getDirectory() { |
| 976 |
|
$request=new BambooHTTPRequest(); |
| 977 |
|
$request->method="GET"; |
| 978 |
|
$request->url=$this->baseUrl."/v1/employees/directory"; |
| 979 |
|
return $this->httpHandler->sendRequest( $request ); |
| 980 |
|
} |
| 981 |
|
|
| 982 |
|
/** |
| 983 |
|
* |