获取钉钉 AcessToken,返回错误:未定义类型“DingTalk.Api.DefaultDingTalkClient”。
请问如何才能执行如下代码?
Dim client As DingTalk.Api.DefaultDingTalkClient = New DingTalk.Api.DefaultDingTalkClient("https://oapi.dingtalk.com/gettoken")
Dim request As DingTalk.api.request.OapiGettokenRequest = New DingTalk.Api.request.OapiGettokenRequest()
request.Appkey="dingbd9myi9y2cc9xgww"
request.Appsecret="gWIwX5rtPEMMxpue2GWjk0aGEhugahPYGrACa8R3Cak7ALXWmqQ8qHX1Eaq47qbL"
request.setHttpMethod("GET")
Dim response As DingTalk.Api.Response.OapiGettokenResponse = client.execute(request)