View source: R/api_utilities.R
get_api_graph | R Documentation |
A wrapper to the get_api_graph
method defined in the
Credentials
class.
get_api_graph(url, file_ext = ".png", profile = myProfile)
url |
a character of API URL. |
file_ext |
a non-empty character vector giving the file extension.
Default is |
profile |
an object of class |
An object of class response
.
Credentials
## Not run:
myProfile <- create_profile("", "")
url <- "http://httpbin.org/image/png"
api_data_graph <- get_api_graph(url)
names(api_data_graph)
img <- png::readPNG(api_data_graph$graph)
grid::grid.raster(img)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.