flickrex v0.5.0 Flickrex View Source

Performs Flickr API requests.

Examples

operation = Flickrex.Flickr.Photos.get_recent(per_page: 5)
config = [url: "https://flickr-proxy.example.com"]

{:ok, resp} = Flickrex.request(operation, config)

Link to this section Summary

Functions

Performs a Flickr API request

Performs a Flickr API request. Raises on failure

Link to this section Functions

Link to this function request(operation, opts \\ []) View Source
request(Flickrex.Operation.t, Keyword.t) ::
  {:ok, term} |
  {:error, term}

Performs a Flickr API request.

Options

  • consumer_key - Flickr API consumer key.
  • consumer_secret - Flickr API consumer secret.
  • oauth_token - Flicker user access token.
  • oauth_token_secret - Flicker user access token secret.
  • url - API Endpoint URL.
  • http_client - HTTP client function. See Flickrex.Request.HttpClient.
  • http_opts - HTTP client options.
Link to this function request!(operation, opts \\ []) View Source
request!(Flickrex.Operation.t, Keyword.t) :: term | no_return

Performs a Flickr API request. Raises on failure.

See request/2.