以文本方式查看主题 - Foxtable(狐表) (http://foxtable.net/bbs/index.asp) -- 专家坐堂 (http://foxtable.net/bbs/list.asp?boardid=2) ---- 获取企业微信数据 (http://foxtable.net/bbs/dispbbs.asp?boardid=2&id=102464) |
|||||||||||||||
-- 作者:lshshlxsh -- 发布时间:2017/6/20 12:55:00 -- 获取企业微信数据 Dim ur As String = "https://qyapi.weixin.qq.com/cgi-bin/corp/getapprovaldata?access_token={0}" Dim hc As New HttpClient(CExp(ur,Functions.Execute("GetQYAccessToken"),3010040)) Dim jo As JObject = JObject.Parse(hc.GetData()) If jo("errcode") = "0" Then MessageBox.Show(jo.ToString) Else output.Show(jo.ToString) End If 请问一下如何获取企业微信审批数据? 我这段代码出现错误如下 { "errcode": 301025, "errmsg": "get approval param error", "data": [] } [此贴子已经被作者于2017/6/20 17:05:46编辑过]
|
|||||||||||||||
-- 作者:有点蓝 -- 发布时间:2017/6/20 14:12:00 -- 参数错误,你没有post参数数据:https://work.weixin.qq.com/api/doc#11228 请求示例:
参数说明:
|
|||||||||||||||
-- 作者:lshshlxsh -- 发布时间:2017/6/20 16:18:00 -- Dim ur As String = "https://qyapi.weixin.qq.com/cgi-bin/corp/getapprovaldata?access_token={0}?&sp_status=2" Dim hc As New HttpClient(CExp(ur,Functions.Execute("GetQYAccessToken"),1)) Dim jo As JObject = JObject.Parse(hc.GetData()) If jo("errcode") = "0" Then Output.Show("aa") Else output.Show(jo.ToString) End If
{ "errcode": 40014, "errmsg": "invalid access_token" } [此贴子已经被作者于2017/6/20 16:19:38编辑过]
|
|||||||||||||||
-- 作者:有点色 -- 发布时间:2017/6/20 16:30:00 -- 参考代码
Dim ur As String = "https://qyapi.weixin.qq.com/cgi-bin/corp/getapprovaldata?access_token={0}"
|
|||||||||||||||
-- 作者:lshshlxsh -- 发布时间:2017/6/20 16:31:00 -- 谢谢 |