inst/api-get-endpoints.R

library(rvest)

html <- read_html("https://clockify.me/developers-api")

operations <- html %>%
  html_elements(".swagger-operation-path")

for (operation in operations) {
  method <- operation %>%
    html_element(".operation-method") %>%
    html_text()
  path <- operation %>%
    html_element(".operation-path") %>%
    html_text()
  cat(paste("- [ ]", method, path), "\n", sep = "")
}

Try the clockify package in your browser

Any scripts or data that you put into this service are public.

clockify documentation built on Sept. 2, 2023, 9:08 a.m.