question

Ravi J avatar image
Ravi J asked Anirban answered

Sms read status change using sdk

When we send any sms we can get the sms messages id in the response and i have noticed that in the response the status is always read by default:

"readStatus":"Read"

I am not sure why the default is read and what does it mean?

What are the way if I need to change the status into not read or unread ?

Can it be changed with java SDK?

sdk
1 |1500 characters needed characters left characters exceeded

Up to 8 attachments (including images) can be used with a maximum of 1.0 MiB each and 10.0 MiB total.

1 Answer

Anirban avatar image
Anirban answered

There are basically 2 status: Read, Unread

When the SMS is send the readStatus is always "Read"

You can use the message store API to update the status of your message.

Check this API here:

https://developers.ringcentral.com/api-reference/Message-Store/updateMessage

Every SMS message have a messageId and you need to use that messageId to update the readStatus.

eg:

PUT https://platform.devtest.ringcentral.com/restapi/v1.0/account/~/extension/~/message-store/<your message id>

You can change the status with this API. Also using SDK, you can change that.

Check the demo here in Java:

https://ringcentral-tutorials.github.io/sms-api-java-demo/?distinctId=1746f43bd51496-0f9334d92b97c8-f7b1332-144000-1746f43bd523ca#5

1 |1500 characters needed characters left characters exceeded

Up to 8 attachments (including images) can be used with a maximum of 1.0 MiB each and 10.0 MiB total.

Developer sandbox tools

Using the RingCentral Phone for Desktop, you can dial or receive test calls, send and receive test SMS or Fax messages in your sandbox environment.

Download RingCentral Phone for Desktop:

Tip: switch to the "sandbox mode" before logging in the app:

  • On MacOS: press "fn + command + f2" keys
  • On Windows: press "Ctrl + F2" keys