public class OAuth2Client extends Object
| 构造器和说明 |
|---|
OAuth2Client() |
| 限定符和类型 | 方法和说明 |
|---|---|
<T> List<T> |
callAPI(String url,
String method,
HashMap<String,Object> header,
String data) |
static OAuth2Client |
getClient() |
void |
initOAuth2ClientCredentials(OAuth2Config cf)
指定配置,初始化client
|
void |
syncToCSV(ApiConfig apiConfig,
String csvFileName)
接口数据同步到csv文件
|
<T> Integer |
syncToDB(ApiConfig apiConfig,
org.hibernate.Session session,
Class model)
接口数据同步到数据库
|
<T> List<T> |
syncToModel(ApiConfig apiConfig)
接口数据同步为模型
|
void |
syncToXLSX(ApiConfig apiConfig,
String xlsxFileName) |
public static OAuth2Client getClient()
public void initOAuth2ClientCredentials(OAuth2Config cf)
cf - public <T> List<T> callAPI(String url, String method, HashMap<String,Object> header, String data) throws Exception
Exceptionpublic void syncToCSV(ApiConfig apiConfig, String csvFileName) throws Exception
Exceptionpublic void syncToXLSX(ApiConfig apiConfig, String xlsxFileName) throws Exception
Exceptionpublic <T> List<T> syncToModel(ApiConfig apiConfig) throws Exception
T - ExceptionCopyright © 2023. All rights reserved.