Skip to content

Commit

Permalink
Merge pull request #10 from wandiscomark/master
Browse files Browse the repository at this point in the history
Url encoding on fields list
  • Loading branch information
jlesueur committed Apr 4, 2016
2 parents 1b517d8 + 125a192 commit a45612e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion BambooHR/API/API.php
Original file line number Diff line number Diff line change
Expand Up @@ -337,7 +337,7 @@ function login($applicationKey, $email, $password) {
function getEmployee($employeeId, $fields=array()) {
$request=new BambooHTTPRequest();
$request->method="GET";
$request->url=$this->baseUrl."/v1/employees/".intval($employeeId)."/?fields=".implode(",",$fields);
$request->url=$this->baseUrl."/v1/employees/".intval($employeeId)."/?fields=".urlencode(implode(",",$fields));

return $this->httpHandler->sendRequest( $request );
}
Expand Down

0 comments on commit a45612e

Please sign in to comment.