ex_wechat v0.1.7 Wechat.Http

Http request module

Try to make test easy.

Summary

Functions

Do http get request with HTTPoison. Use a callback method to parse the reponse, and controll the error handling

Parse responde body, define for api, able to re-run the api functions

Parse body for wechat site plug

Do http post request with HTTPoison. Use a callback method to parse the reponse, and controll the error handling

Functions

get(options, callback \\ &(&1))

Do http get request with HTTPoison. Use a callback method to parse the reponse, and controll the error handling

parse_response(arg, , , , )

Parse responde body, define for api, able to re-run the api functions.

parse_wechat_site(arg)

Parse body for wechat site plug

post(options, callback \\ &(&1))

Do http post request with HTTPoison. Use a callback method to parse the reponse, and controll the error handling