R/update_image.r

Defines functions update_image

Documented in update_image

update_image <- 
function(id, 
         title = NULL,
         description = NULL,
         ...){
    if(inherits(id, 'imgur_image'))
        id <- id$id
    out <- imgurPOST(paste0('image/', id, '/'), 
                     body = list(title = title, 
                                 description = description),
                     ...)
    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.