2 Star 7 Fork 2

guerlab.net / sdk-dingtalk

Create your Gitee Account
Explore and code with more than 6 million developers,Free private repositories !:)
Sign up
Clone or download
Cancel
Notice: Creating folder will generate an empty file .keep, because not support in Git
Loading...
README.md

sdk-dingtalk

spring boot下钉钉企业应用的开箱既用环境

使用场景

spring boot应用中需要接入钉钉企业应用

开始使用

  1. pom.xml中引入依赖
<dependency>
    <groupId>net.guerlab.sdk</groupId>
    <artifactId>sdk-dingtalk-starter</artifactId>
</dependency>
  1. bootstrap.yml中增加配置
sdk:
  ding-talk:
    enable: #是否启用自动配置
    corp-id: #企业ID
    app-key: #appKey
    app-secret: #appSecret
  1. 增加对象注入
import net.guerlab.sdk.dingtalk.client.DingTalkClient;

public class Demo {

    @Autowired
    private DingTalkClient dingTalkClient;
}
  1. 调用请求

https://oapi.dingtalk.com/user/getuserinfo 请求范例

UserGetUserInfoRequest request = new UserGetUserInfoRequest();
request.setCode("code demo");
UserGetUserInfoResponse response = client.execute(request);
System.out.println(response);

Comments ( 6 )

Sign in for post a comment

About

spring boot下钉钉sdk的开箱既用环境 spread retract
Java
LGPL-3.0
Cancel

Releases

No release

Contributors

All

Activities

load more
can not load any more
Java
1
https://gitee.com/guerlab_net/sdk-dingtalk.git
git@gitee.com:guerlab_net/sdk-dingtalk.git
guerlab_net
sdk-dingtalk
sdk-dingtalk
master

Search