Thank you for your feedback.
Form temporarily unavailable. Please try again or contact to submit your comments.
  • London
  • Kingston
  • Jakarta
  • Istanbul
  • Helsinki
  • Geneva
  • Store

Notify - getShortCodes()

Notify - getShortCodes()

Returns all short codes available to Notify, as an array.

Table 1. Parameters
Name Type Description
Table 2. Returns
Type Description
Array An array of NotifyPhoneNumber objects, each object representing one short code available to Notify.

// instantiate notify
var notify = new SNC.Notify();

// get all available shortcodes
var shortCodes = notify.getShortCodes();

// iterate over phone numbers
for (var i = 0; i < shortCodes.size(); i++) {

var shortCode = shortCodes.get(i);


//perform any actions using each shortcode