Wechat v0.4.5 Wechat behaviour
Use this module to build your own API wrapper for a client.
Config
config :my_app, MyApp.Wechat,
appid: "APP_ID",
secret: "APP_SECRET",
token: "TOKEN",
encoding_aes_key: "ENCODING_AES_KEY" # Required if you enabled the encrypt mode
Example
def MyApp.Wechat do
use Wechat, otp_app: :my_app
def users do
client() |> Wechat.User.get()
end
end
Link to this section Summary
Link to this section Callbacks
Link to this callback
client()
client()
client() :: Wechat.Client.t()
client() :: Wechat.Client.t()
Link to this callback
config()
config()
config() :: Keyword.t()
config() :: Keyword.t()