R/info.blog.R

Defines functions info.blog

Documented in info.blog

info.blog <-
function(base_hostname=NA,api_key=NA){
  
  if(!is.character(base_hostname))
    stop("base_hostname must be a string")
    
  if(!is.character(api_key))
    stop("api_key must be a string")
 
  url<-paste("https://api.tumblr.com/v2/blog/",base_hostname,"/info?api_key=",api_key,sep="")
  
  return(fromJSON(getURL(url)))
  
}

Try the tumblR package in your browser

Any scripts or data that you put into this service are public.

tumblR documentation built on March 18, 2020, 5:09 p.m.