Help

API接口列表

http://taxmarksmp.duapp.com/weixinClient/api/v1.0/

发送文本消息

                请求参数:

                {
                    "touser": "oNGinuMVf5HsHloMbYvPGlN3VzvM",
                    "content": "2这只是一个测试哦",
                    "url": "http://127.0.0.1/wecenter/?/m/question/12",
                    "title": "通知消息"
                }

                提交的数据为JSON格式

                touser: 接收方的openid
                content: 发送的文本内容
                url: 发送的链接,如果无,请设置为空
                title: 消息标题,如果无,请设置为空

                当只有content时,将发送文本消息
                当有url时,将发送图文消息即包含链接
            
                header设置:

                Content-Type: application/json;charset=utf-8

            
                返回结果
                {
                  'status': true,
                  'result': ''
                }

            

获取用户信息

                请求参数:
                 "openid": "oNGinuMVf5HsHloMbYvPGlN3VzvM"

                openid: 接收方的openid
            
                header设置:

                Content-Type: application/json;charset=utf-8

            
                返回结果
                {
                  "headimgurl": "http://wx.qlogo.cn/mmopen/K6tTGgHUTIEYzY9Mia24GvUdU8wELf0K1e5d1MX7Sje04qib5QgekygX2jbqlJUkuNJjCBQGAjFB7ibt2Cen3nibuibcpooK02e38/0",
                  "nickname": "Liyaz",
                  "openid": "o9PwGj__ZcLm82ncxrrdTmd0LA8U",
                  "subscribe": 1,
                  "subscribe_time": "2014-12-09 23:29:27",
                  "unionid": "oFcUCsyrG8j74uu0V-leSgkutv0A"
                }