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
@spec setup_client(WeChat.client(), options()) :: :ok
@spec setup_clients([{WeChat.client(), options() | work_options()}]) :: list()
@spec setup_work_agent( WeChat.Work.client(), WeChat.Work.agent() | WeChat.Work.Agent.t(), options() ) :: :ok
@spec setup_work_client(WeChat.Work.client(), work_options()) :: :ok