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.
- v18
- v19
ApiClient client = Configuration.getDefaultApiClient();
HttpBasicAuth basic = (HttpBasicAuth) client.getAuthentication("Basic");
basic.setUsername("YOUR_USERNAME");
basic.setPassword("YOUR_PASSWORD");
MessagesApi api = new MessagesApi(client);
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:
RbmActionBaseRbmActionDialRbmActionOpenUrlRbmActionViewLocationMultiChannelActionCalendarEventRbmSuggestionResponse
- v18
- v19
RbmActionDial action = new RbmActionDial()
// ...
.postbackData(new byte[]{1, 2, 3})
// ...
;
byte[] data = action.getPostbackData();
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().
- v18
- v19
String deactivationDate = result.getDeactivationDate();
LocalDateTime deactivationDate = result.getDeactivationDate();