Current section

Files

Jump to
exwechat lib wechat industry.ex
Raw

lib/wechat/industry.ex

defmodule ExWechat.Industry do
@moduledoc """
Industry APIs
"""
@doc """
My industry
"""
def all do
with {:ok, resp} <- "https://api.weixin.qq.com/cgi-bin/template/get_industry?access_token=#{ExWechat.token()}"
|> HTTPoison.get,
{:ok, json} <- resp.body
|> Poison.decode,
do: json
end
end