diff --git a/README.md b/README.md index 4899f8f..f7db20d 100644 --- a/README.md +++ b/README.md @@ -20,7 +20,7 @@ Maven com.sinch sdk-sms - 1.1.7 + 1.1.6 ``` @@ -87,7 +87,7 @@ conn.createBatch( SinchSMSApi.batchMms() .sender(sender) .addRecipient(recipients) - .body(SinchSMSApi.mediaBody().url("http://test.url.com").build()) + .body(SinchSMSApi.mediaBody().url("http://test.url.com").message("Hello, world!").build()) .build()); ``` @@ -120,9 +120,9 @@ in your terminal. The project will then be compiled and tested before finally be We recommend enabling annotation processing in your IDE https://immutables.github.io/apt.html. -## Sinch REST SMS API 1.1.6 to 1.1.7 Migration guide +## Sinch REST SMS API 1.x to 2.x Migration guide -In version 1.1.7 MMS messages support was added into the library, which will require code changes if you want to upgrade. +In version 2.x MMS messages support was added into the library, which will require code changes if you want to upgrade. 1. Methods of ApiConnection for fetching or cancelling batches are returning MtBatchResult now, which you could cast to either MtBatchMmsResult or MtBatchSmsResult depending on message type;