Skip to content
Home » Octopush Gateway SMS API » ASP source code SMS API

ASP source code SMS API

Configuration file

package octopushSms;
public class ConfigFile {
private static String _user_login = “**********@******.***”;
private static String _api_key = “****************************”;
private static String _sms_text = “test text”;
private static ArrayList _sms_recipients = new ArrayList(Arrays.asList(“+33600000000”));
private static Integer _sms_mode = INSTANTANE;
private static String _sms_type = QUALITE_PRO;
private static String _sms_sender = “Octopush”;

Main File

Dim config As configFile = New configFile()
Dim sms As SMS = New SMS()
sms.set_user_login(config.user_login)
sms.set_api_key(config.api_key)
sms.set_sms_mode(config.sms_mode)
sms.set_sms_text(config.sms_text)
sms.set_sms_recipients(config.sms_recipients)
sms.set_sms_type(config.sms_type)
sms.set_sms_sender(config.sms_sender)
Dim xml As String = sms.send(config.DOMAIN, config.PATH_SMS, config.PORT)

Download