View Source WeChat.Setup (wechat v0.16.0)

Setup WeChat clients

Summary

Types

@type options() :: %{
  optional(:hub_springboard_url) => WeChat.HubClient.hub_springboard_url(),
  optional(:oauth2_callbacks) => WeChat.HubServer.oauth2_callbacks()
}
@type work_options() ::
  %{all: options()} | [{:all, options()}] | [{WeChat.Work.agent(), options()}]

Functions

Link to this function

setup_client(client, options)

View Source
@spec setup_client(WeChat.client(), options()) :: :ok
@spec setup_clients([{WeChat.client(), options() | work_options()}]) :: list()
Link to this function

setup_work_agent(client, agent, options)

View Source
@spec setup_work_agent(
  WeChat.Work.client(),
  WeChat.Work.agent() | WeChat.Work.Agent.t(),
  options()
) ::
  :ok
Link to this function

setup_work_client(client, agents)

View Source
@spec setup_work_client(WeChat.Work.client(), work_options()) :: :ok