ExIsbndb.Client (ExIsbndb v1.0.1)

The ExIsbndb.Client module is in charge of creating and sending requests to the ISBNdb API.

Link to this section Summary

Functions

Builds and sends a request to the ISBNdb API.

Link to this section Functions

Link to this function

request(method, path, params \\ %{})

@spec request(:get | :post, binary(), map()) ::
  {:ok, Finch.Response.t()} | {:error, any()}

Builds and sends a request to the ISBNdb API.

Accepts :get and :post methods.

examples

Examples

iex> ExIsbndb.Client.request(:get, "author/{author_name}")
{:ok, %Finch.Reponse{body: "json_string", headers: [...], status: 200}}