![JAR search and dependency download from the Maven repository](/logo.png)
io.github.dft.ebay.UserAPI Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of ebay-trading-api Show documentation
Show all versions of ebay-trading-api Show documentation
Ebay trading XML API using JDK 11 and Reactive Programming
package io.github.dft.ebay;
import io.github.dft.ebay.model.EbayCredentials;
import io.github.dft.ebay.model.user.GetUserRequest;
import io.github.dft.ebay.model.user.GetUserResponse;
import java.net.http.HttpRequest;
public class UserAPI extends EbayTradingAPISdk {
private final static String EBAY_API_CALL_NAME_GET_USER = "GetUser";
private final static String XML_API_PRODUCTION_GATEWAY = "https://api.ebay.com/ws/api.dll";
public UserAPI(EbayCredentials ebayCredentials) {
super(ebayCredentials);
}
public GetUserResponse getUser(GetUserRequest getUserRequest) {
getUserRequest.setRequesterCredentials(refreshToken());
HttpRequest httpRequest = post(XML_API_PRODUCTION_GATEWAY, EBAY_API_CALL_NAME_GET_USER, getUserRequest);
return getRequestWrapped(httpRequest, GetUserResponse.class);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy