View Source ExGram.Adapter behaviour (ex_gram v0.51.0)
Behaviour for HTTP adapters
Summary
Types
@type path() :: String.t()
@type result_request() :: {:ok, map()} | {:error, ExGram.Error.t()}
@type verb() :: :post | :get
Callbacks
@callback request(verb(), path(), body()) :: result_request()