Class SMSTool

  • public class SMSTool
    extends java.lang.Object
    SMS APIs toolbox
    This class only provides static variables and methods
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static org.json.JSONObject getSettings​(Grant g)
      Get SMS service settings
      static java.lang.String sendSMS​(Grant g, java.lang.String to, java.lang.String msg)
      Send SMS
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • getSettings

        public static org.json.JSONObject getSettings​(Grant g)
        Get SMS service settings
        g - Grant
      • sendSMS

        public static java.lang.String sendSMS​(Grant g,
                                               java.lang.String to,
                                               java.lang.String msg)
        Send SMS
        g - Grant
        to - To phone number (e.g. +33144556677)
        msg - Message (160 characters max)
        SMS ID or null if there was an error