获取钉钉的AccessToken

参考钉钉开发文档:https://ding-doc.dingtalk.com/doc#/serverapi2/eev437 

Java获取AccessToken如下:

获取钉钉的AccessToken_第1张图片

C#获取钉钉Token:

                    DefaultDingTalkClient client = 
                    new DefaultDingTalkClient("https://oapi.dingtalk.com/gettoken");
                    OapiGettokenRequest request = new OapiGettokenRequest();
                    request.Appkey = "AppKey";
                    request.Appsecret = "AppSecret";
                    request.SetHttpMethod("GET");
                    OapiGettokenResponse response = client.Execute(request);
                    var _ddtoken = response.AccessToken;

 

你可能感兴趣的:(钉钉)