钉钉小程序推送消息准备步骤
程序员文章站
2022-07-15 11:02:17
...
第一步:准备基础资料
1 企业iD: DD_CORP_ID = "ding92707098ceb166f835c2f4657eb6378f";
2 应用程序DD_CORP_SECRET="kMv-mbpHsPid0vsXaWnbDfurPqJKznzizxYajj_pGXkYjRHlbB8TyugiSgAmazeG";
3 应用程序:agentId:619288821
4 Appkey:dinga8zhwqxb0ydegsqp
第二步:
1 获取Token GET_TOKEN_DingDing_URL
public static final String GET_TOKEN_WeiXin_URL = "https://qyapi.weixin.qq.com/cgi-bin/gettoken";
public static final String GET_TOKEN_DingDing_URL = "https://oapi.dingtalk.com/gettoken";
2 获取--获取秘钥语法
https://oapi.dingtalk.com/gettoken?appkey=dinga8zhwqxb0ydegsqp&appsecret=kMv-mbpHsPid0vsXaWnbDfurPqJKznzizxYajj_pGXkYjRHlbB8TyugiSgAmazeG
第三步:调用方法。 com.dingding.shenghu.demo.AccessToken.getDingDingToken