Used to generate the base API request URL. URLs will start with "https://api.bamboohr.com/api/gateway.php/company_domain" which forms the base URL where a query string can then be appended to make the full request URL.
Usage
build_url(
company_domain = .get_company_name(),
api_version = "v1",
base_url = "https://api.bamboohr.com/api/gateway.php"
)
Arguments
- company_domain
The subdomain used to access BambooHR. If you access BambooHR at https://mycompany.bamboohr.com, then the company_domain is "mycompany". Default value is obtained from
options("bambooHR.company_name")
. This can also be set in the config file usingconfig_setup("api key", "company_domain")
.- api_version
Version of API to use to make request. Default is "v1".
- base_url
URL to BambooHR API. Default is "https://api.bamboohr.com/api/gateway.php".