A Middleware for Weixin APIs