io.everitoken.sdk.java.apiResource.TokenDetail Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of chain-sdk Show documentation
Show all versions of chain-sdk Show documentation
Official Java SDK for everiToken public chain. https://www.everitoken.io
package io.everitoken.sdk.java.apiResource;
import org.jetbrains.annotations.NotNull;
import com.alibaba.fastjson.JSONObject;
import io.everitoken.sdk.java.dto.TokenDetailData;
import io.everitoken.sdk.java.exceptions.ApiResponseException;
import io.everitoken.sdk.java.param.RequestParams;
public class TokenDetail extends OkhttpApi {
private static final String uri = "/v1/evt/get_token";
public TokenDetail() {
super(uri);
}
public TokenDetail(@NotNull ApiRequestConfig apiRequestConfig) {
super(uri, apiRequestConfig);
}
public TokenDetailData request(RequestParams requestParams) throws ApiResponseException {
String res = super.makeRequest(requestParams);
return TokenDetailData.create(JSONObject.parseObject(res));
}
}