Package ai.expert.nlapi.utils
Class APIUtils
- java.lang.Object
-
- ai.expert.nlapi.utils.APIUtils
-
public class APIUtils extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description APIUtils()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static <T> TfromJSON(java.lang.String json, java.lang.Class<T> valueType)static java.lang.StringgetBearerToken(Authentication authentication)
-
-
-
Method Detail
-
fromJSON
public static <T> T fromJSON(java.lang.String json, java.lang.Class<T> valueType) throws NLApiException- Throws:
NLApiException
-
getBearerToken
public static java.lang.String getBearerToken(Authentication authentication) throws NLApiException
- Throws:
NLApiException
-
-