Methods to pass the authentication parameters if API Authentication enabled before API calls

If API Authentication is enabled then you can use following methods to pass the authentication parameters such as credentials or token before any API call.

setAuthenticationParameter

This method sets the authentication parameter to the requested API call.

setAuthenticationParameter(String username, String password)
  • username: Unica Platform username
  • password

setAuthenticationParameter(String token)

token: token obtained from server