hedwig_trivia v0.1.0 HedwigTrivia.Fetchers.API View Source

A module to provide an interface to call the trivia API.

Link to this section Summary

Functions

Get a random question/answer from the API and return all the data.

Link to this section Functions

Link to this function

fetch_random()

View Source
fetch_random() :: {:ok | :error, map()}

Get a random question/answer from the API and return all the data.