2017 © Pedro Peláez
 

library shoutout-sdk

shoutout sdk for php

image

shoutoutlabs/shoutout-sdk

shoutout sdk for php

  • Wednesday, April 11, 2018
  • by asankan
  • Repository
  • 1 Watchers
  • 1 Stars
  • 229 Installations
  • PHP
  • 1 Dependents
  • 0 Suggesters
  • 2 Forks
  • 0 Open issues
  • 6 Versions
  • 15 % Grown

The README.md

ShoutOUT SDK for PHP

version: 2.1.0, (*1)

Requirements

PHP 5.4.0 and later, (*2)

Installation

You can install shoutout-sdk via composer or by downloading the source, (*3)

Via Composer

shoutout-sdk is available on Packagist as the shoutoutlabs/shoutout-sdk package, (*4)

composer require shoutoutlabs/shoutout-sdk

Getting Started

Please follow the installation Procedure and then run the following:, (*5)

Send Message

 'ShoutDEMO',
    'destinations' => ['94777123456'],
    'content' => array(
        'sms' => 'Sent via SMS Gateway'
    ),
    'transports' => ['SMS']
);

try {
    $result = $client->sendMessage($message);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when sending message: ', $e->getMessage(), PHP_EOL;
}

?>

Create Contacts

 '94777123456',//Required if not specified user_id
    'user_id' => '94777123456',//Optional. if specified, this will be used to generate the contact id, otherwise mobile_number will be used to generate contact id
    //arbitrary attributes
    'email' => 'duke@test.com',
    'tags' => ['lead'],
    'name' => 'Duke'
);
$contacts = array($contact);

try {
    $result = $client->createContacts($contacts);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when creating contacts ', $e->getMessage(), PHP_EOL;
}

?>

Create Activity

 '94777123456',//Required. your account id
    //arbitrary attributes
    'activityName' => 'Sample Activity',
    'activityData' => array(
        'param1' => 'val1',
        'param2' => 'val2',
        'param3' => 'val3'
    )
);

try {
    $result = $client->createActivity($activity);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when creating activity ', $e->getMessage(), PHP_EOL;
}

?>

The Versions

11/04 2018

dev-master

9999999-dev http://getshoutout.com

shoutout sdk for php

  Sources   Download

MIT

The Requires

  • php >=5.4
  • ext-curl *
  • ext-json *
  • ext-mbstring *

 

The Development Requires

by ShoutOUT Team

api php swagger sms sdk messages lite shoutout

11/04 2018

3.0.0

3.0.0.0 http://getshoutout.com

shoutout sdk for php

  Sources   Download

MIT

The Requires

  • php >=5.4
  • ext-curl *
  • ext-json *
  • ext-mbstring *

 

The Development Requires

by ShoutOUT Team

api php swagger sdk

09/03 2017

2.1.0

2.1.0.0 http://getshoutout.com

shoutout sdk for php

  Sources   Download

MIT

The Requires

  • php >=5.4
  • ext-curl *
  • ext-json *
  • ext-mbstring *

 

The Development Requires

by ShoutOUT Team

api php swagger sdk

08/03 2017

2.0.0

2.0.0.0 http://getshoutout.com

shoutout sdk for php

  Sources   Download

MIT

The Requires

  • php >=5.4
  • ext-curl *
  • ext-json *
  • ext-mbstring *

 

The Development Requires

by ShoutOUT Team

api php swagger sdk

08/03 2017

1.9.0

1.9.0.0 http://getshoutout.com

shoutout sdk for php

  Sources   Download

MIT

The Requires

  • php >=5.4
  • ext-curl *
  • ext-json *
  • ext-mbstring *

 

The Development Requires

by ShoutOUT Team

api php swagger sdk

19/12 2016

1.0.0

1.0.0.0 http://getshoutout.com

shoutout sdk for php

  Sources   Download

Apache V2

The Requires

  • php >=5.4
  • ext-curl *
  • ext-json *
  • ext-mbstring *

 

The Development Requires

api php sdk