View Source WeChat.HubServer (wechat v0.16.0)

Helper for hub server

Summary

Types

@type env() :: String.t()
@type oauth2_callbacks() :: %{required(env()) => url()}
@type url() :: String.t()

Functions

Link to this function

clean_oauth2_callbacks(client)

View Source
@spec clean_oauth2_callbacks(WeChat.client()) :: :ok
Link to this function

del_oauth2_env_url(client, env)

View Source
@spec del_oauth2_env_url(WeChat.client(), env()) :: true
Link to this function

del_oauth2_env_url(client, agent, env)

View Source
@spec del_oauth2_env_url(WeChat.client(), WeChat.Work.agent(), env()) :: true
Link to this function

get_oauth2_env_url(client, env)

View Source
@spec get_oauth2_env_url(WeChat.client(), env()) :: nil | url()
Link to this function

get_oauth2_env_url(client, agent, env)

View Source
@spec get_oauth2_env_url(WeChat.client(), WeChat.Work.agent(), env()) :: nil | url()
Link to this function

list_oauth2_callbacks(client)

View Source
@spec list_oauth2_callbacks(WeChat.client()) :: oauth2_callbacks()
Link to this function

set_oauth2_callbacks(client, oauth2_callbacks)

View Source
@spec set_oauth2_callbacks(WeChat.client(), oauth2_callbacks()) :: [true]
Link to this function

set_oauth2_callbacks(client, agent, oauth2_callbacks)

View Source
@spec set_oauth2_callbacks(WeChat.client(), WeChat.Work.agent(), oauth2_callbacks()) ::
  [true]
Link to this function

set_oauth2_env_url(client, env, url)

View Source
@spec set_oauth2_env_url(WeChat.client(), env(), url()) :: true
Link to this function

set_oauth2_env_url(client, agent, env, url)

View Source
@spec set_oauth2_env_url(WeChat.client(), WeChat.Work.agent(), env(), url()) :: true