java使用钉钉机器人应用向单人推送钉钉消息

java使用钉钉机器人应用推送钉钉消息工具类

首先在pom.xml文件中添加依赖,也可以到钉钉官网下载


        
            com.aliyun
            dingtalk
            1.1.88
        

具体工具类代码

import com.alibaba.fastjson.JSON;
import com.alibaba.fastjson.JSONObject;
import com.aliyun.dingtalkrobot_1_0.models.BatchSendOTOHeaders;
import com.aliyun.dingtalkrobot_1_0.models.BatchSendOTORequest;
import com.aliyun.tea.TeaException;
import com.aliyun.teaopenapi.models.Config;
import com.aliyun.teautil.models.RuntimeOptions;
import com.dingtalk.api.DefaultDingTalkClient;
import com.dingtalk.api.DingTalkClient;
import com.dingtalk.api.request.OapiGettokenRequest;
import com.dingtalk.api.response.OapiGettokenResponse;
import com.aliyun.dingtalkrobot_1_0.Client;
import com.taobao.api.ApiExcep

你可能感兴趣的:(日常记录,资料,java,http)