R/person_tagged_images.R

Defines functions person_tagged_images

Documented in person_tagged_images

person_tagged_images <-
function(api_key, id, page=1, language=NA){
    
    l <- list(language=language, page=page)
    l <- l[!is.na(l)]
    
    if(length(l)>0){
        params <- paste("&", names(l), "=", stri_join_list(l, sep = ","), sep = "", collapse = "")
        url <- fromJSON(GET(url=paste("http://api.themoviedb.org/3/person/", id, "/tagged_images?api_key=", 
                                      api_key, params, sep=""))$url)
    } else{
        url <- fromJSON(GET(url=paste("http://api.themoviedb.org/3/person/", id, "/tagged_images?api_key=", 
                                      api_key, sep=""))$url)
    }
    
    return(url)
    
}

Try the TMDb package in your browser

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

TMDb documentation built on March 17, 2020, 1:06 a.m.