认证接口

通过用户名和密码,获取认证票据。

Getting Started

请先安装SDK,然后参考如下代码调用接口:

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();
        }
    }
}

API Endpoints

All URIs are relative to https://my.wanfangdata.com.cn/auth/user

Class Method HTTP request Description
AuthApi login GET /suballredirectlogin.do 认证

Models

results matching ""

    No results matching ""