add weixin api function and spec