## FUNCTION THAT WILL CHECK ALL CALLS FOR FAILURES AND CONVERT JSON RESPONSES
#####
.getBridgeURL <- function(url, .opts=.getBridgeCache('opts'), httpheader=.getBridgeCache("httpheader"), ...){
h <- basicHeaderGatherer()
tryGetURL <- getURL(url, .opts=.opts,
httpheader=httpheader, headerfunction = h$update, ...)
st <- h$value()["status"]
if(st != "201"){
tryGetURL <- fromJSON(tryGetURL)
}
return(tryGetURL)
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.