Wechat v0.4.4 Wechat.Client
Client
represents an API client.
Link to this section Summary
Functions
Create client to consume Wechat API with config
Link to this section Types
Link to this section Functions
Link to this function
access_token(map)
Link to this function
get_token(client)
Link to this function
get_token!(client)
Link to this function
new(opts)
Create client to consume Wechat API with config.
Examples
iex> Wechat.Client.new(appid: "my_appid", secret: "my_secret")
%Wechat.Client{
appid: "my_appid",
secret: "my_secret",
endpoint: "https://api.weixin.qq.com/"
}
iex> Wechat.Client.new(appid: "my_appid", secret: "my_secret", endpoint: "http://localhost")
%Wechat.Client{
appid: "my_appid",
secret: "my_secret",
endpoint: "http://localhost/"
}