public interface SMSMessagingClient
| Modifier and Type | Method and Description |
|---|---|
void |
addPullDeliveryReportListener(DeliveryReportListener listener)
Add 'Delivery Reports' listener.
|
void |
addPullInboundMessageListener(InboundMessageListener listener)
Add 'INBOUND Messages' listener
|
void |
addPushDeliveryStatusNotificationListener(DeliveryStatusNotificationsListener listener)
Add OneAPI PUSH 'Delivery Status' Notifications listener and start push server simulator
|
void |
addPushInboundMessageListener(InboundMessageNotificationsListener listener)
Add OneAPI PUSH 'INBOUND Messages' Notifications listener and start push server simulator
|
DeliveryInfoNotification |
convertJsonToDeliveryInfoNotification(String json)
Convert JSON to Delivery Info Notification
|
InboundSMSMessageList |
convertJsonToInboundSMSMessageNotificationExample(String json)
Convert JSON to Inbound SMS Message Notification
|
DeliveryReportSubscription |
getDeliveryNotificationsSubscriptionById(String subscriptionId)
Retrieve delivery notifications subscriptions by subscription id
|
DeliveryReportSubscription[] |
getDeliveryNotificationsSubscriptions()
Retrieve delivery notifications subscriptions by for the current user
|
DeliveryReportSubscription[] |
getDeliveryNotificationsSubscriptionsBySender(String senderAddress)
Retrieve delivery notifications subscriptions by sender address
|
List<DeliveryReportListener> |
getDeliveryReportPullListeners()
Returns Delivery Reports Listeners list
|
DeliveryReportList |
getDeliveryReports()
Retrieve delivery reports
|
DeliveryReportList |
getDeliveryReports(int limit)
Retrieve delivery reports
|
void |
getDeliveryReportsAsync(int limit,
ResponseListener<DeliveryReportList> responseListener)
Get delivery reports asynchronously
|
void |
getDeliveryReportsAsync(ResponseListener<DeliveryReportList> responseListener)
Get delivery reports asynchronously
|
DeliveryReportList |
getDeliveryReportsByRequestId(String requestId)
Retrieve delivery reports by Request Id
|
DeliveryReportList |
getDeliveryReportsByRequestId(String requestId,
int limit)
Retrieve delivery reports by Request Id
|
List<DeliveryStatusNotificationsListener> |
getDeliveryStatusNotificationPushListeners()
Returns Delivery Status Notifications PUSH Listeners list
|
List<InboundMessageListener> |
getInboundMessagePullListeners()
Returns INBOUND Message Listeners list
|
List<InboundMessageNotificationsListener> |
getInboundMessagePushListeners()
Returns INBOUND Message Notifications PUSH Listeners list
|
InboundSMSMessageList |
getInboundMessages()
Retrieve SMS messages sent to your Web application over OneAPI
|
InboundSMSMessageList |
getInboundMessages(int maxBatchSize)
Retrieve SMS messages sent to your Web application
|
void |
getInboundMessagesAsync(int maxBatchSize,
ResponseListener<InboundSMSMessageList> responseListener)
Get asynchronously SMS messages sent to your Web application over OneAPI
|
void |
getInboundMessagesAsync(ResponseListener<InboundSMSMessageList> responseListener)
Get asynchronously SMS messages sent to your Web application over OneAPI
|
MoSubscription[] |
getInboundMessagesNotificationsSubscriptions()
Retrieve inbound messages notifications subscriptions for the current user (Default values are used: page=1, pageSize=10)
|
MoSubscription[] |
getInboundMessagesNotificationsSubscriptions(int page,
int pageSize)
Retrieve inbound messages notifications subscriptions for the current user
|
MoNumberType[] |
getMoNumberTypes()
Get MO Number Types
|
DeliveryInfoList |
queryDeliveryStatus(String senderAddress,
String requestId)
Query the delivery status for an SMS sent to one or more mobile terminals
|
void |
queryDeliveryStatusAsync(String senderAddress,
String requestId,
ResponseListener<DeliveryInfoList> responseListener)
Query the delivery status asynchronously over OneAPI for an SMS sent to one or more mobile terminals
|
void |
removeDeliveryNotificationsSubscription(String subscriptionId)
Stop subscribing to delivery status notifications for all your sent SMS
|
void |
removeInboundMessagesSubscription(String subscriptionId)
Stop subscribing to message receipt notifications for all your received SMS
|
void |
removePullDeliveryReportListeners()
Remove Delivery Reports listeners and stop retriever
|
void |
removePullInboundMessageListeners()
Remove INBOUND Messages listeners and stop retriever
|
void |
removePushDeliveryStatusNotificationListeners()
Remove PUSH Delivery Reports Notifications listeners and stop server
|
void |
removePushInboundMessageListeners()
Remove PUSH Delivery Reports Notifications listeners and stop server
|
SendMessageResult |
sendSMS(SMSRequest sms)
Send an SMS to one or more mobile terminals using the customized 'SMSRequest' object
|
void |
sendSMSAsync(SMSRequest smsRequest,
ResponseListener<SendMessageResult> responseListener)
Send an SMS asynchronously over OneAPI to one or more mobile terminals using the customized 'SMSRequest' object
|
String |
subscribeToDeliveryStatusNotifications(SubscribeToDeliveryNotificationsRequest subscribeToDeliveryNotificationsRequest)
Start subscribing to delivery status notifications over OneAPI for all your sent SMS
|
String |
subscribeToInboundMessagesNotifications(SubscribeToInboundMessagesRequest subscribeToInboundMessagesRequest)
Start subscribing to notifications of SMS messages sent to your application over OneAPI
|
SendMessageResult sendSMS(SMSRequest sms)
sms - - object containing data needed to be filled in order to send the SMSvoid sendSMSAsync(SMSRequest smsRequest, ResponseListener<SendMessageResult> responseListener)
smsRequest - (mandatory) object containing data needed to be filled in order to send the SMSresponseListener - (mandatory) method to call after receiving sent SMS responseDeliveryInfoList queryDeliveryStatus(String senderAddress, String requestId)
senderAddress - (mandatory) is the address from which SMS messages are being sent. Do not URL encode this value prior to passing to this functionrequestId - (mandatory) contains the requestId returned from a previous call to the sendSMS functionvoid queryDeliveryStatusAsync(String senderAddress, String requestId, ResponseListener<DeliveryInfoList> responseListener)
senderAddress - (mandatory) is the address from which SMS messages are being sent. Do not URL encode this value prior to passing to this functionrequestId - (mandatory) contains the requestId returned from a previous call to the sendSMS functionresponseListener - (mandatory) method to call after receiving delivery statusDeliveryInfoNotification convertJsonToDeliveryInfoNotification(String json)
String subscribeToDeliveryStatusNotifications(SubscribeToDeliveryNotificationsRequest subscribeToDeliveryNotificationsRequest)
DeliveryReportSubscription[] getDeliveryNotificationsSubscriptionsBySender(String senderAddress)
DeliveryReportSubscription getDeliveryNotificationsSubscriptionById(String subscriptionId)
DeliveryReportSubscription[] getDeliveryNotificationsSubscriptions()
void removeDeliveryNotificationsSubscription(String subscriptionId)
subscriptionId - (mandatory) contains the subscriptionId of a previously created SMS delivery receipt subscriptionInboundSMSMessageList getInboundMessages()
InboundSMSMessageList getInboundMessages(int maxBatchSize)
maxBatchSize - (mandatory) is the maximum number of messages to get in this requestvoid getInboundMessagesAsync(ResponseListener<InboundSMSMessageList> responseListener)
responseListener - (mandatory) method to call after receiving inbound messagesvoid getInboundMessagesAsync(int maxBatchSize,
ResponseListener<InboundSMSMessageList> responseListener)
maxBatchSize - (optional) is the maximum number of messages to get in this requestresponseListener - (mandatory) method to call after receiving inbound messagesInboundSMSMessageList convertJsonToInboundSMSMessageNotificationExample(String json)
String subscribeToInboundMessagesNotifications(SubscribeToInboundMessagesRequest subscribeToInboundMessagesRequest)
subscribeToInboundMessagesRequest - (mandatory) contains inbound messages subscription dataMoSubscription[] getInboundMessagesNotificationsSubscriptions(int page, int pageSize)
MoSubscription[] getInboundMessagesNotificationsSubscriptions()
void removeInboundMessagesSubscription(String subscriptionId)
subscriptionId - (mandatory) contains the subscriptionId of a previously created SMS message receipt subscriptionMoNumberType[] getMoNumberTypes()
DeliveryReportList getDeliveryReports(int limit)
void getDeliveryReportsAsync(int limit,
ResponseListener<DeliveryReportList> responseListener)
responseListener - (mandatory) method to call after receiving delivery reportsDeliveryReportList getDeliveryReports()
void getDeliveryReportsAsync(ResponseListener<DeliveryReportList> responseListener)
responseListener - (mandatory) method to call after receiving delivery reportsDeliveryReportList getDeliveryReportsByRequestId(String requestId, int limit)
DeliveryReportList getDeliveryReportsByRequestId(String requestId)
void addPullInboundMessageListener(InboundMessageListener listener)
listener - - (new InboundMessageListener)void addPullDeliveryReportListener(DeliveryReportListener listener)
listener - - (new DeliveryReportListener)List<InboundMessageListener> getInboundMessagePullListeners()
List<DeliveryReportListener> getDeliveryReportPullListeners()
void removePullDeliveryReportListeners()
void removePullInboundMessageListeners()
void addPushDeliveryStatusNotificationListener(DeliveryStatusNotificationsListener listener)
void addPushInboundMessageListener(InboundMessageNotificationsListener listener)
List<DeliveryStatusNotificationsListener> getDeliveryStatusNotificationPushListeners()
List<InboundMessageNotificationsListener> getInboundMessagePushListeners()
void removePushDeliveryStatusNotificationListeners()
void removePushInboundMessageListeners()
Copyright © 2014. All rights reserved.