use of de.foryasee.httprequest.RequestResponse in project Rubicon by Rubicon-Bot.
the class MojangUtil method fetchNameHistory.
private String fetchNameHistory(String uuid) {
HttpRequestBuilder request = new HttpRequestBuilder("https://api.mojang.com/user/profiles/" + uuid + "/names", RequestType.GET);
RequestResponse response = null;
try {
response = request.sendRequest();
} catch (Exception e) {
e.printStackTrace();
}
if (response.getResponseCode() != 200)
return null;
return response.getResponseMessage();
}
Aggregations