public class SubscribeToDeliveryNotificationsRequest extends Object
| Constructor and Description |
|---|
SubscribeToDeliveryNotificationsRequest() |
SubscribeToDeliveryNotificationsRequest(String notifyURL) |
SubscribeToDeliveryNotificationsRequest(String senderAddress,
String notifyURL)
Start subscribing to delivery status notifications over OneAPI for all your sent SMS
|
SubscribeToDeliveryNotificationsRequest(String senderAddress,
String notifyURL,
String criteria,
String clientCorrelator,
String callbackData)
Start subscribing to delivery status notifications over OneAPI for all your sent SMS
|
| Modifier and Type | Method and Description |
|---|---|
String |
getCallbackData()
(optional) will be passed back to the notifyURL location, so you can use it to identify the message the delivery receipt relates to (or any other useful data, such as a function name)
|
String |
getClientCorrelator()
(optional) optional) uniquely identifies this subscription request.
|
String |
getCriteria()
criteria (optional) Text in the message to help you route the notification to a specific application.
|
String |
getNotifyURL()
(mandatory) is the URL to which you would like a notification of delivery sent
|
String |
getSenderAddress()
(mandatory) is the address from which SMS messages are being sent.
|
void |
setCallbackData(String callbackData)
(optional) will be passed back to the notifyURL location, so you can use it to identify the message the delivery receipt relates to (or any other useful data, such as a function name)
|
void |
setClientCorrelator(String clientCorrelator)
(optional) optional) uniquely identifies this subscription request.
|
void |
setCriteria(String criteria)
criteria (optional) Text in the message to help you route the notification to a specific application.
|
void |
setNotifyURL(String notifyURL)
(mandatory) is the URL to which you would like a notification of delivery sent
|
void |
setSenderAddress(String senderAddress)
(mandatory) is the address from which SMS messages are being sent.
|
public SubscribeToDeliveryNotificationsRequest()
public SubscribeToDeliveryNotificationsRequest(String notifyURL)
public SubscribeToDeliveryNotificationsRequest(String senderAddress, String notifyURL)
senderAddress - is the address from which SMS messages are being sent. Do not URL encode this value prior to passing to this functionnotifyURL - is the URL to which you would like a notification of delivery sentpublic SubscribeToDeliveryNotificationsRequest(String senderAddress, String notifyURL, String criteria, String clientCorrelator, String callbackData)
senderAddress - (mandatory) is the address from which SMS messages are being sent. Do not URL encode this value prior to passing to this functionnotifyURL - (mandatory) is the URL to which you would like a notification of delivery sentcriteria - (optional) Text in the message to help you route the notification to a specific application. For example you may ask users to ‘text GIGPICS to 12345′ for your rock concert photos application. This text is matched against the first word, as defined as the initial characters after discarding any leading Whitespace and ending with a Whitespace or end of the string. The matching shall be case-insensitive.clientCorrelator - (optional) uniquely identifies this subscription request. If there is a communication failure during the request, using the same clientCorrelator when retrying the request allows the operator to avoid setting up the same subscription twicecallbackData - (optional) will be passed back to the notifyURL location, so you can use it to identify the message the delivery receipt relates to (or any other useful data, such as a function name)public String getSenderAddress()
public void setSenderAddress(String senderAddress)
public String getNotifyURL()
public void setNotifyURL(String notifyURL)
public String getCriteria()
public void setCriteria(String criteria)
public String getClientCorrelator()
public void setClientCorrelator(String clientCorrelator)
public void setCallbackData(String callbackData)
public String getCallbackData()
Copyright © 2014. All rights reserved.