Code Monkey home page Code Monkey logo

codeigniter-nexmo-message's Introduction

What is Nexmo?

Nexmo is a cloud based SMS API that lets you send and receive high volume of messages at wholesale rates. Web Site: http://www.nexmo.com/index.html

Requirements

  • CodeIgniter 2.0.0+
  • PHP 5.4.0+
  • PHP extension: openssl, pcre, json, xml, curl

Install

Copy files to your applicaiotn folder

$ cp config/nexmo.php application/config/
$ cp libries/nexmo.php application/libries/
$ cp controller/nexmo.php application/controller/

Open config/nexmo.php and put your api key and secret

$config['api_key'] = 'xxxxxx';
$config['api_secret'] = 'xxxxxx';

Open controller/nexmo.php and modified the following changes for sending message

$from = 'xxxxxxxxxx';
$to = 'xxxxxxxxxxxx';
$message = array(
    'text' => 'test message'
);

Open browser and load the following URL

http://your_host/example

Change Log

Please vist API documentation first

Date: 2014-12-21 (Developer API)

Added by @lukeprentice202

Date: 2014-12-16 (Developer API)

Added by @lukeprentice202

Date: 2013-01-23 (Developer API)

Date: 2011-11-19 (Developer API)

Date: 2011-10-07 (Messaging References)

Copyright

Copyright (C) 2011-2014 Bo-Yi Wu ( appleboy AT gmail.com )

codeigniter-nexmo-message's People

Contributors

appleboy avatar lukeprentice202 avatar seadog007 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

codeigniter-nexmo-message's Issues

Duplicate sms

Hello and thank you for you library.

I found an issue ...

I have $respons = $this->nexmo->send_message($from, $to, $message);

when I dump response ...

Dump => array(2) {
  ["message-count"] => string(1) "2"
  ["messages"] => array(2) {
    [0] => array(6) {
      ["to"] => string(11) "*********"
      ["message-id"] => string(16) "02000000C74FE314"
      ["status"] => string(1) "0"
      ["remaining-balance"] => string(10) "6.72440000"
      ["message-price"] => string(10) "0.05910000"
      ["network"] => string(5) "22603"
    }
    [1] => array(6) {
      ["to"] => string(11) "*********"
      ["message-id"] => string(16) "02000000C74FE315"
      ["status"] => string(1) "0"
      ["remaining-balance"] => string(10) "6.66530000"
      ["message-price"] => string(10) "0.05910000"
      ["network"] => string(5) "22603"
    }
  }
}

THE ISSUE IS THAT SMS is duplicated that means that the COSTS ARE DOUBLE.

Where there issue comes from ??? PLEASE HELP

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.