R/remove_album_images.r

Defines functions remove_album_images

Documented in remove_album_images

remove_album_images <- 
function(album, 
         id,
         ...){
    if(!"token" %in% names(list(...)))
        stop("This operation can only be performed using an OAuth token.")
    if(inherits(album, 'imgur_album'))
        album <- album$id
    if(is.list(id))
        id <- sapply(id, `$`, 'id')
    b <- list(ids = paste(id, collapse = ','))
    out <- imgurDELETE(paste0('album/', album, '/remove_images'), body = b, ...)
    structure(out, class = 'imgur_basic')
}

Try the imguR package in your browser

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

imguR documentation built on May 2, 2019, 4:02 p.m.