How to send SMS from PC to mobile using simplewire for Java?

I use simplewire "library (for Java), which should be able to send SMS from PC to mobile. However, I see the following error:

Message has not been sent! Error code: 420 Error Description: Invalid subscriber ID or password of the subscriber.

Here is my sample code

import com.simplewire.sms.*; public class send_text { public static void main(String[] args) throws Exception { SMS sms = new SMS(); // Subscriber Settings sms.setSubscriberID("123-456-789-12345"); sms.setSubscriberPassword("1234"); // Message Settings sms.setMsgPin("+11005101234"); sms.setMsgFrom("Demo"); sms.setMsgCallback("+11005551212"); sms.setMsgText("Hello World From Simplewire!"); System.out.println("Sending message to Simplewire..."); // Send Message sms.msgSend(); // Check For Errors if(sms.isSuccess()) { System.out.println("Message was sent!"); } else { System.out.println("Message was not sent!"); System.out.println("Error Code: " + sms.getErrorCode()); System.out.println("Error Description: " + sms.getErrorDesc()); System.out.println("Error Resolution: " + sms.getErrorResolution() + "\n"); } } } 

I want to know how to get the Subscriber ID and Subscriber Password? Do I need an account for this?

+3
source share
2 answers

From Simplewire Java SMS SDK Manual

Subscriber ID is an identification number provided by paid subscribers, which gives access to all Simplewires Resources. An appropriate password must also be set.

+3
source

SimpleWire is now OpenMarket

You need to set up an account with OpenMarket to use your SDK.

They offer two types of accounts:

  • Demo: where you can test your code for short code, which is intended for testing.
  • Commercial: here you will pay for the Short Code and get access to your platform / service
+1
source

All Articles