Code Monkey home page Code Monkey logo

smsgw-client-php's Introduction

Latest Stable Version Total Downloads Latest Unstable Version License Build Status

Installation

You can install smsgw-client-php via composer or by downloading the source.

Via Composer:

smsgw-client-php is available on Packagist as the intelecom/smsgw package.

Via ZIP file:

Click here to download the source (.zip) which includes all dependencies.

Once you download the library, move the smsgw-client-php folder to your project directory and then include the library file:

require '/path/to/ssmgw-client-php/Intelecom/Intelecom_SMSGW.php';

and you're good to go!

Getting help

If you need help installing or using the library, please contact Intelecom Support at [email protected] first.

If you have found a bug in the library or would like new features added, please go ahead and open issues or pull requests against this repo.

smsgw-client-php's People

Contributors

ahaeber avatar

Stargazers

Erik Andreassen Perez avatar

Watchers

Morten Trydal avatar James Cloos avatar  avatar  avatar Sven Ståle Osa avatar Kjetil Johannesen avatar Sven Ståle Osa avatar Gunnar Grenlee avatar

smsgw-client-php's Issues

Exceptions are printed to a display

Seems wrong using var_dump function. var_dump returns void and only displays structured information

 public function sendMessageRequest($req) {
    $api = new RestClient();
    $api->register_decoder('xml', "Intelecom_Service_SMSGW::xml_decoder");

    $jsonReq = json_encode($req);

    $result = $api->post(
                $this->smsgwUri,
                $jsonReq,
                array('Content-Type' => 'application/json'));

    if($result->info->http_code == 200) {
        return $result->decode_response();
    } else {
      throw new Exception("Request failed: \n" . var_dump($result));
    }
  }

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.