CellTrust 2 Way SMS Gateway API (JavaSDK)
CellTrust Java SMS SDK
Build and customize an SMS application that suits your business requirements perfectly. Our Java SMS SDK is the fastest way to get from here to there:
• Java is platform independent, enabling you to develop and execute your program
on any Java Runtime Environment (Windows, Linux, Solaris, etc.)
• CellTrusts's Java SMS SDK is developer-friendly enabling you to send an SMS with as little as two lines of code. This means quicker development and less bugs.
• CellTrusts's Java SMS SDK is developer-friendly enabling you to send an SMS with as little as two lines of code. This means quicker development and less bugs.
Sample Java code for sending an SMS text message:
PrimeMessage pm = new PrimeMessage("pmgateway.net");
pm.setCustomerAbbrev( "Your Username");
pm.setCampaignName( "Your Campaign Name");
//!!Note, generally Username and Campaign/NickName/Keyword are all the same!!
pm.setMessageBody( "Hello");
pm.addRecipient( "Bumpy", "Dumpy", 1, 416, 4321212);
pm.sendMessage( sUSER, sPASSWD);
int status = pm.getOperationStatus();
if( PMConstant.STATUS_SUCCESS != status)
{
String msg = pm.getOperationErrorMessage ();
....
}
pm.setCustomerAbbrev( "Your Username");
pm.setCampaignName( "Your Campaign Name");
//!!Note, generally Username and Campaign/NickName/Keyword are all the same!!
pm.setMessageBody( "Hello");
pm.addRecipient( "Bumpy", "Dumpy", 1, 416, 4321212);
pm.sendMessage( sUSER, sPASSWD);
int status = pm.getOperationStatus();
if( PMConstant.STATUS_SUCCESS != status)
{
String msg = pm.getOperationErrorMessage ();
....
}