2017 © Pedro Peláez
 

library swift-sdk

PHP SDK for the Swift SMS campaign tool

image

webtoolsnz/swift-sdk

PHP SDK for the Swift SMS campaign tool

  • Tuesday, October 17, 2017
  • by badams
  • Repository
  • 2 Watchers
  • 2 Stars
  • 22 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 9 Versions
  • 0 % Grown

The README.md

Software License Build Status Coverage Status Quality Score, (*1)

Swift SDK

An easy to use PHP SDK for the Swift SMS Campaign Management Tool, (*2)

Installation

Install webtoolsnz/swift-sdk using Composer., (*3)

$ composer require webtoolsnz/swift-sdk

Usage Examples

Retrieve list of campaigns

use \webtoolsnz\Swift\Swift;
use \webtoolsnz\Swift\Resources\Recipient;

$apiKey = 'INSERT_YOUR_API_KEY_HERE';
$endPoint = 'https://my.swift-app.com.au/api';

$swift = new Swift($endPoint, $apiKey);

$campaigns = $swift->getCampaigns();

var_dump($campaigns);

Add recipient to campaign

use \webtoolsnz\Swift\Swift;
use \webtoolsnz\Swift\Resources\Recipient;

$apiKey = 'INSERT_YOUR_API_KEY_HERE';
$endPoint = 'https://my.swift-app.com.au/api';

$swift = new Swift($endPoint, $apiKey);

$recipient = new Recipient();
$recipient->first_name = 'Philip';
$recipient->last_name = 'Fry';
$recipient->campaign_id = 123;
$recipient->mobile_number = "021234567";
$recipient->account_id = uniqid();

var_dump($swift->createRecipient($recipient));

Retrieve a recipient

This will also include the recipients survey responses, if available., (*4)

use \webtoolsnz\Swift\Swift;
use \webtoolsnz\Swift\Resources\Recipient;

$apiKey = 'INSERT_YOUR_API_KEY_HERE';
$endPoint = 'https://my.swift-app.com.au/api';

$swift = new Swift($endPoint, $apiKey);

var_dump($swift->getRecipient(123));

License

swift-php-sdk is open-sourced software licensed under the MIT License (MIT). Please see LICENSE for more information., (*5)

The Versions

17/10 2017

dev-master

9999999-dev https://github.com/webtoolsnz/swift-php-sdk

PHP SDK for the Swift SMS campaign tool

  Sources   Download

MIT

The Requires

 

The Development Requires

by Byron Adams
by Webtools

api sms sdk swift campaign

17/10 2017

1.0.7

1.0.7.0 https://github.com/webtoolsnz/swift-php-sdk

PHP SDK for the Swift SMS campaign tool

  Sources   Download

MIT

The Requires

 

The Development Requires

by Byron Adams
by Webtools

api sms sdk swift campaign

25/07 2017

1.0.6

1.0.6.0 https://github.com/webtoolsnz/swift-php-sdk

PHP SDK for the Swift SMS campaign tool

  Sources   Download

MIT

The Requires

 

The Development Requires

by Byron Adams
by Webtools

api sms sdk swift campaign

25/07 2017

1.0.5

1.0.5.0 https://github.com/webtoolsnz/swift-php-sdk

PHP SDK for the Swift SMS campaign tool

  Sources   Download

MIT

The Requires

 

The Development Requires

by Byron Adams
by Webtools

api sms sdk swift campaign

12/10 2016

1.0.4

1.0.4.0 https://github.com/webtoolsnz/swift-php-sdk

PHP SDK for the Swift SMS campaign tool

  Sources   Download

MIT

The Requires

 

The Development Requires

by Byron Adams
by Webtools

api sms sdk swift campaign

04/10 2016

1.0.3

1.0.3.0 https://github.com/webtoolsnz/swift-php-sdk

PHP SDK for the Swift SMS campaign tool

  Sources   Download

MIT

The Requires

 

The Development Requires

by Byron Adams
by Webtools

api sms sdk swift campaign

03/10 2016

1.0.2

1.0.2.0 https://github.com/webtoolsnz/swift-php-sdk

PHP SDK for the Swift SMS campaign tool

  Sources   Download

MIT

The Requires

 

The Development Requires

by Byron Adams
by Webtools

api sms sdk swift campaign

27/09 2016

1.0.1

1.0.1.0 https://github.com/webtoolsnz/swift-php-sdk

PHP SDK for the Swift SMS campaign tool

  Sources   Download

MIT

The Requires

 

The Development Requires

by Byron Adams
by Webtools

api sms sdk swift campaign

17/08 2016

1.0.0

1.0.0.0 https://github.com/webtoolsnz/swift-php-sdk

PHP SDK for the Swift SMS campaign tool

  Sources   Download

MIT

The Requires

 

The Development Requires

by Byron Adams
by Webtools

api sms sdk swift campaign