update_image function

Update image

Update image

Update image metadata

update_image(id, title = NULL, description = NULL, ...)

Arguments

  • id: An image ID or object of class imgur_image . If no token is supplied, id must be a deletehash from the original upload_image response.
  • title: Optionally, an image title.
  • description: Optionally, an image description.
  • ...: Other arguments passed to HTTP request functions, for example: token (an OAuth2.0 token) or key (an API key, used by default).

Details

Update the title or description of an already-uploaded image.

Returns

An object of class imgur_basic .

Author(s)

Thomas J. Leeper

See Also

upload_image

delete_image

Examples

## Not run: # using a deletehash, anonymously u <- upload_image('file.png') update_image(u$deletehash, title = 'New Title') # using an OAuth token tkn <- imgur_login() u <- upload_image('file.png', token = tkn) update_image(u, title = 'New Title', token = tkn) ## End(Not run)
  • Maintainer: Thomas J. Leeper
  • License: GPL-3
  • Last published: 2016-03-29