Description Usage Arguments See Also Examples
API path template
1 | api_template(.data, template, data)
|
.data |
Result of a call to |
template |
Template to contstruct API route |
data |
Data to pass to the template parameter |
Other dsl:
api_body()
,
api_config()
,
api_error_handler()
,
api_path()
,
api_query()
,
api()
,
auth
1 2 3 4 5 6 | ## Not run:
repo_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)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.