Skip to main content

v18 -> v19

HTTP Basic Authentication Removed​

HTTP Basic authentication is no longer supported. OAuth2 client credentials are now the only supported authentication method.

The HttpBasicAuth class and the ApiClient.setUsername() and ApiClient.setPassword() methods have been removed, and ApiClient no longer registers a Basic authentication. Code that uses any of these will no longer compile.

Replace your username and password with an OAuth2 client ID and secret. See Credentials Management for how to obtain them.

ApiClient client = new ApiClient("YOUR_CLIENT_ID", "YOUR_CLIENT_SECRET", null);

MessagesApi api = new MessagesApi(client);

Postback Data Type Change​

postbackData has been changed from a byte[] to a String. This affects the fluent setter, getPostbackData(), and setPostbackData() on the following models:

  • RbmActionBase
  • RbmActionDial
  • RbmActionOpenUrl
  • RbmActionViewLocation
  • MultiChannelActionCalendarEvent
  • RbmSuggestionResponse
RbmActionDial action = new RbmActionDial()
// ...
.postbackData("postbackData")
// ...
;

String data = action.getPostbackData();

Lookup Result Deactivation Date Type Change​

deactivationDate on LookupResult has been changed from a String to a LocalDateTime. This affects the fluent setter, getDeactivationDate(), and setDeactivationDate().

To customize how the value is parsed and serialized, use ApiClient.setLocalDateTimeFormat().

LocalDateTime deactivationDate = result.getDeactivationDate();