Wechat v0.4.0-rc.0 Wechat View Source

Module for used in your own module.

For example,

defmodule MyApp.Wechat do
  use Wechat, otp_app: :my_app // or use Wechat, appid: "", secret: ""
end

In config.exs,

config :wechat, MyApp.Wechat,
  appid: "app_id",
  secret: "app_secret"

Then:

  1. You can invoke APIs by MyApp.Wechat.users
  2. You have plugs in hand such as MyApp.Wechat.Plug.MessageParser

Link to this section Summary

Functions

Adapter to save tokens such as access_token and jsapi_ticket. Default: Wechat.Adapter.Agent

Application config for Wechat. @default_hosts can be tested to simplify test

Link to this section Functions

Adapter to save tokens such as access_token and jsapi_ticket. Default: Wechat.Adapter.Agent

Application config for Wechat. @default_hosts can be tested to simplify test.