Package io.sendon.rcs
Class SendonRcs
java.lang.Object
io.sendon.base.SendonClient
io.sendon.rcs.SendonRcs
-
Nested Class Summary
Nested Classes -
Field Summary
Fields inherited from class io.sendon.base.SendonClient
gson, httpClient -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionCreates a presigned URL for CSV file upload.Finds and retrieves details of an RCS message group.send(RcsBuilder builder) Sends an RCS message using a builder.send(SendonRcs.MessageType type, String from, List<String> to, RbcConfig rbcConfig, Boolean useCredit, Boolean useFallback, Fallback fallback) Sends an RCS message.Methods inherited from class io.sendon.base.SendonClient
delete, get, parseJsonResponse, post, postImagesWithMultipartFormData, postImageWithMultipartFormData, postImageWithMultipartFormData, put
-
Constructor Details
-
SendonRcs
-
SendonRcs
-
-
Method Details
-
createCsvUploadUrl
Creates a presigned URL for CSV file upload.- Returns:
- The response containing the presigned URL for CSV upload.
-
send
Sends an RCS message using a builder.- Parameters:
builder- TheRcsBuildercontaining the RCS message details.- Returns:
- The response of the RCS send operation.
- See Also:
-
send
public SendRcs send(SendonRcs.MessageType type, String from, List<String> to, RbcConfig rbcConfig, Boolean useCredit, Boolean useFallback, Fallback fallback) Sends an RCS message.- Parameters:
type- The RCS message type (RcsTSM, RcsTLM, RcsTMM).from- The sender's phone number.to- The list of recipient phone numbers.rbcConfig- The RCS business configuration.useCredit- Whether to use credit for sending.useFallback- Whether to use fallback SMS when RCS fails.fallback- The fallback message configuration.- Returns:
- The response of the RCS send operation.
-
find
Finds and retrieves details of an RCS message group.- Parameters:
groupId- The group ID to search for.- Returns:
- The response containing the RCS message details.
-