View Source ExPersona.Client (ex_persona v1.0.1)
Make requests to the API.
The requests are made using ExPersona.Client.Operation
s.
Link to this section Summary
Functions
Make a GET request to the API at the given URL.
Call the API with the given ExPersona.Client.Operation
.
Call the API with the given ExPersona.Client.Operation
.
Link to this section Functions
@spec get(String.t(), [{atom(), String.t()}], list()) :: {:ok, binary(), list()} | {:error, String.t()}
Make a GET request to the API at the given URL.
@spec request!(ExPersona.Client.Operation.t()) :: struct()
Call the API with the given ExPersona.Client.Operation
.
This function throws an error if there was any issue calling the API.
@spec request(ExPersona.Client.Operation.t()) :: ExPersona.Client.Parser.parsed_result()
Call the API with the given ExPersona.Client.Operation
.