根据钉钉用户ID查询钉钉系统用户就是不行。在钉钉开发调试窗口里可以查询出来。但钉钉调式里的代码是.net的。FB用的是VB的。代码不一样。唉。麻烦
Dim access_token As String = trim(TX3.Text)
Dim client As DingTalk.Api.IDingTalkClient = New DingTalk.Api.DefaultDingTalkClient("https://oapi.dingtalk.com/topapi/v2/user/get")
Dim req As DingTalk.Api.Request.OapiUserGetRequest = New DingTalk.Api.Request.OapiUserGetRequest()
req.userid = "manager9191"
req.SetHttpMethod("GET")
Dim rsp As DingTalk.Api.Response.OapiUserGetResponse = client.Execute(req, access_token)
MessageBox.Show (" " & rsp.name & " ") 这里显示出来的是空白
会不会是我用的SDK文件还是几年前的。没有下载现在最新的引用进去
[此贴子已经被作者于2024/4/25 14:56:34编辑过]
论坛搜索“钉钉”,比如http://www.foxtable.com/bbs/dispbbs.asp?BoardID=2&ID=136663&replyID=&skin=1
http://www.foxtable.com/bbs/dispbbs.asp?BoardID=2&ID=145793&replyID=&skin=1
看看返回值里其它内容返回什么数据,如Errcode、body.....