maven 坐标
<dependency>
<groupId>com.github.shuaidd</groupId>
<artifactId>qywx-spring-boot-starter</artifactId>
<version>3.0.0</version>
</dependency>
源码地址
使用配置示例
qywx:
corp-id: xxxx(企业号)
application-list:
- secret: Kx4sovYN5C0_MEzPY0cOymwbMhGmqdA9VjMFHrAKjdE
agentId: 1000003
application-name: little-helper
- secret: DXB-FXVZNkLGUlLaIJy6CK67WD-dpN1HnPLIzNPo0N4
agentId: 1000004
application-name: reporter
- secret: AfjvAed_ulqhK0OqTprDQ6xOSnqaT34ll2LsRe0D2NA
application-name: address-book
url: https://qyapi.weixin.qq.com
public-path: cgi-bin
代码示例
public class WeChatTest extends BaseTest {
@Test
public void getUser(){
weChatManager.addressBookService().getUser("13259220281", "address-book");
}
}