1.下载sdk,添加至项目依赖。
下载地址:https://openplatform-portal.dg-work.cn/portal/#/helpdoc?apiType=TOOL_SOURCES&docKey=3355368
2.yml文件添加参数配置。
#浙政钉
zzding:
appKey : ********
appSecret : ***********
domainName : openplatform-pro.ding.zj.gov.cn
protocal : https
tenantId : ******
3.代码实现
@Slf4j
@Service
public class ZheZhengDingServiceImpl implements ZheZhengDingService {
@Value("${zzding.domainName}")
private String domainName;
@Value("${zzding.appKey}")
private String appKey;
@Value

本文介绍了如何将浙政钉SDK下载并添加到项目中,通过YML文件配置参数,然后展示了如何在Java代码中实现获取浙政钉的token以及用户信息的API调用过程。
最低0.47元/天 解锁文章
22万+

被折叠的 条评论
为什么被折叠?



