AuthApi
All URIs are relative to https://my.wanfangdata.com.cn/auth/user
Method | HTTP request | Description |
---|---|---|
login | GET /suballredirectlogin.do | 认证 |
login
AuthResponse login(username, password)
认证
示例
import io.swagger.client.*;
import cn.com.wanfangdata.check.client.model.*;
import cn.com.wanfangdata.check.client.api.AuthApi;
public class AuthApiExample {
public static void main(String[] args) {
ApiClient apiClient = new ApiClient();
apiClient.setBasePath("https://my.wanfangdata.com.cn/auth/user");
AuthApi apiInstance = new AuthApi(apiClient);
String username = "username_example"; // String | 用户名
String password = "password_example"; // String | 密码
try {
AuthResponse result = apiInstance.login(username, password);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling AuthApi#login");
e.printStackTrace();
}
}
}
参数
Name | Type | Description | Notes |
---|---|---|---|
username | String | 用户名 | |
password | String | 密码 |
返回类型
授权
No authorization required
HTTP请求头
- Content-Type: application/json
- Accept: application/json