View Source Api2pdf.Client (Api2pdf v0.1.1)

The default HTTP client that is based on Tesla.

Link to this section Summary

Link to this section Functions

Link to this function

get_request(endpoint, options \\ [])

View Source
@spec get_request(
) :: {:error, any()} | map()

Callback implementation for Api2pdf.ClientBehaviour.get_request/2.

Link to this function

make_client(options \\ [])

View Source
@spec make_client(keyword()) :: Tesla.Client.t()
Link to this function

post_request(endpoint, payload, options \\ [])

View Source
@spec post_request(String.t(), struct(), keyword()) :: {:error, any()} | map()

Callback implementation for Api2pdf.ClientBehaviour.post_request/3.