View Source ExGram.Adapter behaviour (ex_gram v0.51.0)

Behaviour for HTTP adapters

Summary

Types

@type body() :: map() | list()
@type path() :: String.t()
@type result_request() :: {:ok, map()} | {:error, ExGram.Error.t()}
@type verb() :: :post | :get

Callbacks

Link to this callback

request(verb, path, body)

View Source
@callback request(verb(), path(), body()) :: result_request()