http function

Workhorse HTTP functions

Workhorse HTTP functions

Basic workhorse HTTP method functions for executing Imgur.com API calls

imgurGET(endpoint, base_url = "https://api.imgur.com/3/", key = "1babd0decbb90f2", token = NULL, ...)

Arguments

  • endpoint: A named API endpoint.
  • base_url: The base URL for the API (by default the v3 API URL).
  • key: An API key (by default, the imguR package API key). The API key for version of imguR < 1.0.0 was 4feb29d00face5bc1b9dae536e15c373 . Either key or token must be specified.
  • token: Optionally, an OAuth2.0 token (returned by imgur_login. Either key or token must be specified.
  • ...: Other arguments passed to analogous HTTP method functions from httr.

Details

These are the basic workhorse functions for the package, which users should not need to access directly (except perhaps for debugging).

Returns

Generally, a list. For imgurDELETE, an empty character string.

Author(s)

Thomas J. Leeper

See Also

Authentication

  • Maintainer: Thomas J. Leeper
  • License: GPL-3
  • Last published: 2016-03-29