- '定义一个网址,Post方法网址中不能包含参数
- Dim strUrl As String="https://oapi.dingtalk.com/topapi/processinstance/listids?access_token=6d1bxxxx"
- '定义一个临时对象
- Dim post = New With {.process_code = "'process_code",.start_time=1496678400000,.end_time=1496678400000,.size=10,.cursor=0,.userid_list="manager1,manager2"}
- '将临时对象转化为Json文本,作为传输内容
- Dim strPostData As String=JObject.FromObject(post).ToString()
- Proj.MsgDebug.Add(strPostData)
- '直接根据已有条件获得返回数据
- Dim json As String =NetHelp.NetPost(strUrl,strPostData,NetHelp.NetContentType.json)
- MsgBox(json)
复制代码
|