Package de.brifle.sdk.api.endpoints
Class AuthEndpoint
java.lang.Object
de.brifle.sdk.api.endpoints.EndpointBase
de.brifle.sdk.api.endpoints.AuthEndpoint
-
Field Summary
Fields inherited from class de.brifle.sdk.api.endpoints.EndpointBase
client, jsonConverter, mode -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionauthenticate(String apiKey, String apiSecret) Authenticates with the API.Methods inherited from class de.brifle.sdk.api.endpoints.EndpointBase
buildGetRequest, buildPostRequest, buildPostRequest, buildPostRequest
-
Constructor Details
-
AuthEndpoint
-
-
Method Details
-
authenticate
public ApiResponse<SuccessfulAuthenticationResponse> authenticate(String apiKey, String apiSecret) throws IOException, InterruptedException Authenticates with the API. It contains a token and the expiration information- Parameters:
apiKey- the api keyapiSecret- the api secret- Returns:
- the response
- Throws:
IOException- if an error occursInterruptedException- if an error occurs
-