2017 © Pedro Peláez
 

library expert-texting-sms

ExpertTexting REST API for laravel applications allows you to send text and unicode messages, read unread messages, check your account balance etc. ExpertTexting API is served over HTTPS. To ensure data privacy, unencrypted HTTP is not supported.

image

ahmed-aliraqi/expert-texting-sms

ExpertTexting REST API for laravel applications allows you to send text and unicode messages, read unread messages, check your account balance etc. ExpertTexting API is served over HTTPS. To ensure data privacy, unencrypted HTTP is not supported.

  • Wednesday, May 3, 2017
  • by ahmed-aliraqi
  • Repository
  • 0 Watchers
  • 0 Stars
  • 52 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 3 Versions
  • 16 % Grown

The README.md

Introduction

ExpertTexting REST API for Laravel applications allows you to send text and unicode messages, read unread messages, check your account balance etc. ExpertTexting API is served over HTTPS. To ensure data privacy, unencrypted HTTP is not supported., (*1)

Documentation

  • Send message : https://www.experttexting.com/appv2/Documentation/Send .
  • Get status : https://www.experttexting.com/appv2/Documentation/Status .
  • Retrieve account balance : https://www.experttexting.com/appv2/Documentation/Balance .
  • List unread received messages : https://www.experttexting.com/appv2/Documentation/UnreadInbox .

Instalition

  • first create a new account in expert texting
    https://www.experttexting.com/appv2/, (*2)

    composer require ahmed-aliraqi/expert-texting-sms
  • add provider class to app.php in config folder ., (*3)

    Aliraqi\ET\ServiceProvider::class,
  • add aliases class, (*4)

    'SMS' => Aliraqi\ET\SMSFasade::class,
  • then call this command from terminal, (*5)

    php artisan vendor:publish

    you can get this file from this path on your project config/sms_et.php, (*6)

    return [
        /**
         * All requests require your user credentials & API key, which you can find under "Account Settings"
         * in [https://www.experttexting.com/appv2/Dashboard/Profile] .
         */
        'username' => '', // Required. Your ET username. Ex: starcity
    
        'password' => '', // Required. Your ET password. Ex: StarCity123
    
        'api_key' => '',  // Required. Your API key. Ex: sswmp8r7l63y
    ];

Usage

  • Sends a text or unicode message. :, (*7)

    $sms = SMS::from('YourName')
        ->to('PhoneNumber')
        ->Message('Hello World')
        ->send();
    
    // Get response object.
    dd($sms->getResponse());

    result, (*8)

    {
       "Response": {
          "message_id": "671729375",
          "message_count": 1,
          "price": 0.0085
       },
       "ErrorMessage": "",
       "Status": 0
    }
  • Search a previously sent message for a given message id., (*9)

    SMS::getStatus($messageId)->getResponse();
  • List all unread received messages., (*10)

    SMS::getUnreadInbox()->getResponse();
  • Retrieve your current account balance., (*11)

    SMS::getBalance()->getResponse();

The Versions

03/05 2017

dev-master

9999999-dev

ExpertTexting REST API for laravel applications allows you to send text and unicode messages, read unread messages, check your account balance etc. ExpertTexting API is served over HTTPS. To ensure data privacy, unencrypted HTTP is not supported.

  Sources   Download

MIT

by Ahmed Fathy

03/05 2017

1.0.1

1.0.1.0

ExpertTexting REST API for laravel applications allows you to send text and unicode messages, read unread messages, check your account balance etc. ExpertTexting API is served over HTTPS. To ensure data privacy, unencrypted HTTP is not supported.

  Sources   Download

MIT

by Ahmed Fathy

03/05 2017

1.0.0

1.0.0.0

ExpertTexting REST API allows you to send text and unicode messages, read unread messages, check your account balance etc. ExpertTexting API is served over HTTPS. To ensure data privacy, unencrypted HTTP is not supported.

  Sources   Download

MIT

by Ahmed Fathy