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
package octopushSms;
import java.util.ArrayList;
import java.util.Scanner;
public class Main
{
public static void main(String[] args) throws Exception
{
SmsObject sms = new SmsObject();
sms.set_user_login(ConfigFile.get_user_login());
sms.set_api_key(ConfigFile.get_api_key());
sms.set_sms_text(ConfigFile.get_sms_text());
sms.set_sms_recipients(new ArrayList(ConfigFile.get_sms_recipients()));
sms.set_sms_mode(ConfigFile.getInstantane());
sms.set_sms_type(ConfigFile.getQualitePro());
sms.set_sms_sender(ConfigFile.get_sms_sender());
sms.sendSms();
}
}
Download