首页 新闻 会员 周边

微信企业号开发-推送消息

0
悬赏园豆:20 [待解决问题]

开发文档:http://qydev.weixin.qq.com/wiki/index.php?title=%E5%8F%91%E9%80%81%E6%8E%A5%E5%8F%A3%E8%AF%B4%E6%98%8E

这时我已经获取到了token,但是发送消息不知到怎么发,发送接口说明 里面只需要token,但是总是返回

{"errcode":41011,"errmsg":"missing agentid"} 

 

agentid如果是应用ID的话 我携带上为什么还是返回一样的呢?

 

Map<String, String> params = new HashMap<String, String>();
params.put("access_token", access_token);
params.put("agentid", "0");
String value2 =HttpClient.post("https://qyapi.weixin.qq.com/cgi-bin/message/send", params);
System.out.println(value2);

 

求大神帮助....

我的代码之路的主页 我的代码之路 | 初学一级 | 园豆:156
提问于:2015-10-15 11:03
< >
分享
所有回答(1)
0

agentID不是字符串呀,,,,,int类型

syblogs | 园豆:202 (菜鸟二级) | 2017-10-25 12:49
清除回答草稿
   您需要登录以后才能回答,未注册用户请先注册