Dim ur As String = "https://qyapi.weixin.qq.com/cgi-bin/message/send?access_token={0}"
Dim hc As new HttpClient(Cexp(ur,Functions.Execute("GetAccessToken")))
Dim jo As New JObject
jo("touser") = "WangGaoPing"
jo("msgtype") = "text"
jo("agentid") = 1
jo("text") = New JObject
jo("text")("content") = "测试微信开发"
hc.Content = jo.ToString
jo = JObject.Parse(hc.GetData)
If jo("errcode") = "0" Then
MessageBox.show("消息发送成功!")
Else
MessageBox.show(jo.ToString)
End If
会出现如下提示,请指点!
此主题相关图片如下:qq图片20171017145842.png
