View Source LibWechat.Client behaviour (lib_wechat v0.1.0)

微信请求request behavior

Link to this section Summary

Link to this section Types

@type api() :: bitstring()
@type body() :: %{required(String.t()) => any()}
@type method() :: Finch.Request.method()
@type opts() :: keyword()
@type params() :: %{required(String.t()) => any()}
@type t() :: struct()

Link to this section Callbacks

Link to this callback

do_request(t, method, api, body, params, opts)

View Source
@callback do_request(t(), method(), api(), body(), params(), opts()) ::
  {:ok, iodata()} | {:error, any()}
@callback new(opts()) :: t()
@callback start_link([{:client, t()}]) :: GenServer.on_start()

Link to this section Functions

Link to this function

do_request(client, method, api, body, params, opts \\ [])

View Source