dev-master
9999999-dev https://bitbucket.org/sendingosaas/sendingo-phpSendingo PHP SDK provides methods for API functions.
MIT
The Requires
- php ^5.5|^7.0
The Development Requires
Wallogit.com
2017 © Pedro Peláez
Sendingo PHP SDK provides methods for API functions.
This is the Sendingo PHP SDK, which contains methods for easly interacting with the Sendingo API., (*1)
To install the SDK, you will need to be using Composer in your project. If you aren't using Composer yet, it's really simple! Here's how to install composer:, (*2)
curl -sS https://getcomposer.org/installer | php
To get started just run the following command (package is under development):, (*3)
php composer.phar require sendingosaas/sendingo-php:dev-master
Later, on production:, (*4)
php composer.phar require sendingosaas/sendingo-php:*
You should always use Composer's autoloader in your application to automatically load the your dependencies. All examples below assumes you've already included this in your file:, (*5)
require 'vendor/autoload.php'; use Sendingo\Sendingo;
Here's how to send a message using the SDK:, (*6)
# First, instantiate the SDK with your API credentials.
$client_id = 1;
$sendingo = new Sendingo('api-key-example', $client_id);
# Now, compose and send your message.
$sendingo->mails()->send('example@example.com', 'promo-template-slug', [
'company_name' => 'Sendingo Sp. z o.o.',
'message' => 'We\'ve reached 1000000 customers!',
'promo_code' => 'DISCOUNT',
], 'pl_PL');
Sendingo PHP SDK provides methods for API functions.
MIT