get_pto | R Documentation |
Submits a get request to retrieve the all employees time off by date
get_pto(user = NULL, password = NULL, startDate = NULL,
endDate = NULL, verbose = FALSE)
user |
Bamboo api user id, register in Bamboo "API Keys" |
password |
Bamboo login password |
startDate |
date; start date of the range for which PTO records are desired; *required*; defaults to NULL |
endDate |
date; end date of the range for which PTO records are desired; *required*; defaults to NULL |
verbose |
logical; indicates if detailed output from httr calls should be provided; default FALSE |
year |
int; year for which PTO records are desired; defaults to current year |
tbl_df
Mark Druffel, mdruffel@propellerpdx.com
https://www.bamboohr.com/api/documentation/, https://github.com/r-lib/httr
## Not run:
user <- 'your_api_user'
password <- 'your_password'
startDate = lubridate::ymd("20190101")
endDate = lubridate::ymd("20191231")
employees <- get_pto(user = user, password = password, startDate = startDate, endDate = endDate)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.