news_api v0.2.0 NewsApi.Base View Source

Provides general request making and handling functionality (for internal use).

Link to this section Summary

Functions

General HTTP GET request function. Takes a url part and optionally a api_key and list of params.

Link to this section Functions

Link to this function

attempt_again?(attempt, reason)

View Source
Link to this function

get(url_part, api_key, params \\ [])

View Source

General HTTP GET request function. Takes a url part and optionally a api_key and list of params.

Link to this function

request_and_retry(url_part, api_key, params, arg)

View Source