pushbots/pushbots-php

View on GitHub
src/PushbotsTransactional.php

Summary

Maintainability
A
0 mins
Test Coverage
<?php

namespace Pushbots;

class PushbotsTransactional
{
    /**
     * @var PushbotsTransactional
     */
    private $_client;

    /**
     * PushbotsTransactional constructor.
     *
     * @param PushbotsClient $client
     */
    public function __construct($client)
    {
        $this->_client = $client;
    }

    /**
     * Sends a notification [v1]
     *
     * @see    https://developer.pushbots.com/api/v2/#/Devices/pushOne
     * @param  array $options
     * @return mixed
     * @throws \GuzzleHttp\Exception\GuzzleException
     */
    public function send($options)
    {
        return $this->_client->post("3/push/transactional", $options);
    }
}