前提:获取 AccessToken 的接口已经接通 这个demo待确认问题 //YouZanClient 建议全局唯一,使用 spring 容器管理
YouZanClient yzClient = new DefaultYZClient();
Token token = new Token("you token");
YouzanEduClueQueryPoolPage youzanEduClueQueryPoolPage = new YouzanEduClueQueryPoolPage();
//创建参数对象,并设置参数
YouzanEduClueQueryPoolPageParams youzanEduClueQueryPoolPageParams = new YouzanEduClueQueryPoolPageParams();
youzanEduClueQueryPoolPage.setAPIParams(youzanEduClueQueryPoolPageParams);
YouzanEduClueQueryPoolPageResult result = yzClient.invoke(youzanEduClueQueryPoolPage, token, YouzanEduClueQueryPoolPageResult.class); 1、Token 的全路径是什么 2、YouzanEduClueQueryPoolPage、YouzanEduClueQueryPoolPageParams、YouzanEduClueQueryPoolPageResult 这三个类,在有赞的包中找不到,是引用其他包吗? 以下是maven的配置 <dependency>
<groupId>com.youzan.cloud</groupId>
<artifactId>open-sdk-core</artifactId>
<version>1.0.22-RELEASE</version>
</dependency>
<dependency>
<groupId>com.youzan.cloud</groupId>
<artifactId>open-sdk-gen</artifactId>
<version>1.0.22.80701202109281055-RELEASE</version>
</dependency>
|