Skip to content
Inicio » API SMS Octopush » Código Fuente API SMS ASP

Código Fuente API SMS ASP

Archivo de configuración

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»;

Archivo Principal

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)

Descargar Código Fuente