URLs are retrieved asynchronously using curl.
Arguments
- urls
One or more URLs as a character vector.
- ...
Additional URLs to add to
urls
withc()
.- timeout
Max time in seconds to wait for results.
Examples
library(webqueue)
fetch('http://numbersapi.com/random')
#> [1] "76 is the atomic number of osmium."
x <- fetch(c(
uuid = 'https://www.uuidtools.com/api/generate/v1',
zip = 'https://ziptasticapi.com/77025' ))
noquote(x)
#> uuid
#> ["dd33f4d4-3832-11f0-ae1a-325096b39f47"]
#> zip
#> {"country":"US","state":"TX","city":"HOUSTON"}