Package net.andrewcpu.elevenlabs.util
Class ElevenNetworkUtil
java.lang.Object
net.andrewcpu.elevenlabs.util.ElevenNetworkUtil
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic StringbuildQueryParameters(Map<String, String> parameters) static org.apache.hc.client5.http.classic.methods.HttpUriRequestBasegetRequest(HttpRequestType type, String path) static org.apache.hc.client5.http.classic.methods.HttpUriRequestBasegetRequest(HttpRequestType method, String path, Object payload) static <T> TsendRequest(HttpRequestType method, String path, Object payload, Class<T> responseType)
-
Constructor Details
-
ElevenNetworkUtil
public ElevenNetworkUtil()
-
-
Method Details
-
buildQueryParameters
-
getRequest
public static org.apache.hc.client5.http.classic.methods.HttpUriRequestBase getRequest(HttpRequestType type, String path) -
getRequest
public static org.apache.hc.client5.http.classic.methods.HttpUriRequestBase getRequest(HttpRequestType method, String path, Object payload) throws com.fasterxml.jackson.core.JsonProcessingException - Throws:
com.fasterxml.jackson.core.JsonProcessingException
-
sendRequest
public static <T> T sendRequest(HttpRequestType method, String path, Object payload, Class<T> responseType)
-