Foxtable(狐表)用户栏目专家坐堂 → 钉钉获取到的信息怎么写入表中


  共有2406人关注过本帖树形打印复制链接

主题:钉钉获取到的信息怎么写入表中

帅哥哟,离线,有人找我吗?
cd_tdh
  1楼 | QQ | 信息 | 搜索 | 邮箱 | 主页 | UC


加好友 发短信
等级:狐精 帖子:3209 积分:21331 威望:0 精华:0 注册:2016/3/28 16:57:00
钉钉获取到的信息怎么写入表中  发帖心情 Post By:2021/7/8 17:31:00 [显示全部帖子]

老师,从钉钉获取到的信息怎么写入表中,比如下面代码获取到的部门信息,怎么分行写入表中

Dim TX1 As WinForm.TextBox = e.Form.Controls("TextBox1")
Dim TX2 As WinForm.TextBox = e.Form.Controls("TextBox2")
Dim access_token As String = Functions.Execute("access_token",TX1.TEXT,TX2.TEXT)

Dim client As DingTalk.Api.IDingTalkClient = New DingTalk.Api.DefaultDingTalkClient("https://oapi.dingtalk.com/department/list")
Dim req As DingTalk.Api.Request.OapiDepartmentListRequest = New DingTalk.Api.Request.OapiDepartmentListRequest()
req.SetHttpMethod("GET")
Dim rsp As DingTalk.Api.Response.OapiDepartmentListResponse = client.Execute(req, access_token)
Dim s As String
For i As Integer = 0 To rsp.Department.count -1
s+= rsp.Department.Item(I).name & vbCrLf
Next
MessageBox.Show(s)


 回到顶部
帅哥哟,离线,有人找我吗?
cd_tdh
  2楼 | QQ | 信息 | 搜索 | 邮箱 | 主页 | UC


加好友 发短信
等级:狐精 帖子:3209 积分:21331 威望:0 精华:0 注册:2016/3/28 16:57:00
  发帖心情 Post By:2021/7/8 17:40:00 [显示全部帖子]

之前没弄过,才在论坛下载了一个示例,在学习中

 回到顶部