项目作者: graker

项目描述 :
Drupal 7 integration of SMSSimple API
高级语言: PHP
项目地址: git://github.com/graker/smssimple.git
创建时间: 2016-09-21T14:17:41Z
项目社区:https://github.com/graker/smssimple

开源协议:GNU General Public License v3.0

下载


SMSimple API integration

Drupal 7 module integrating SMSimple message service API.

Code in api directory is provided by SMSSimple with little to no modifications made here.

Usage

  1. Install the module as usual.

  2. Go to settings at admin/config/services/smssimple, provide your login and password to SMSSimple site, save the form.

  3. If you have origins set, they will be loaded so you could select the default origin to use.
    Basic profile info (name, phone, balance) will be loaded from SMSimple service and displayed above the settings form.

  4. Use the smssimple_send_sms() function to send SMS to given array of phones. Example:

  1. smssimple_send_sms(array('89012345678', '89263211232'), 'Hello!', TRUE);

This will send the message to two phone numbers and will report any errors on the way.

  • first argument is an array of phone numbers
  • second argument is a message text
  • third argument is a boolean, if TRUE error messages will be displayed using drupal_set_message(), if FALSE messages will be ignored