...: Comma separated list of unquoted variable names
.dots: Used to work around non-standard evaluation
template: Template to contstruct API route
data: Data to pass to the template parameter
Examples
## Not run:# Set base url## works with full or partial URLsapi('https://api.github.com/')api('http://api.gbif.org/v1')api('api.gbif.org/v1')## works with ports, full or partialapi('http://localhost:9200')api('localhost:9200')api(':9200')api('9200')api('9200/stuff')# set paths## NSEapi('https://api.github.com/')%>% api_path(repos, ropensci, rgbif, issues)## SEapi('https://api.github.com/')%>% api_path_('repos','ropensci','rgbif','issues')# templaterepo_info <- list(username ='craigcitro', repo ='r-travis')api('https://api.github.com/')%>% api_template(template ='repos/{{username}}/{{repo}}/issues', data = repo_info)## End(Not run)
See Also
Other dsl: api_body, api_config, api_error_handler, api_query, auth