My favorites | Sign in
Project Logo
Project hosting will be READ-ONLY Wednesday at 8am PST due to brief network maintenance.
                
Code license: New BSD License
Labels: sms, java, textmagic
People details
Project owners:
  bugzmanov, priit.vaikmaa

Convenient java api for TextMagic sms gateway

The steps to start using TextMagic Java api:

  1. Create account on http://www.textmagic.com/
  2. Download textmagic-sms-api.jar
  3. Download depedencies
  4. Copy textmagic-sms-api.jar and dependencies to your project class path
  5. Write code
  6. import com.textmagic.sms.TextMagicMessageService;
    import com.textmagic.sms.exception.ServiceException;
    
    public class DummyCode {
        public static void main (String []argz) {
              String dummyPhone = "99912345678";
              TextMagicMessageService service = new TextMagicMessageService ("my_login", "my_password");
              try {
                   service.send("Hello, World!", dummyPhone);
              } catch(ServiceException ex) {
                   System.out.println(" :-( ");
              }
        }
    }
  7. have fun :)








Hosted by Google Code