demo to use api from weixin