wesnick / ringcentral
This package is abandoned and no longer maintained.
No replacement package was suggested.
RingCentral API Client
dev-master
2015-02-14 12:20 UTC
Requires
- php: >=5.3.0
- doctrine/cache: 1.3.0
- kriswallsmith/buzz: v0.10
Requires (Dev)
- phpspec/phpspec: 2.0.x-dev
- symfony/console: 2.3.x-dev
This package is auto-updated.
Last update: 2023-12-29 02:01:24 UTC
README
RingCentral Call Out and Fax Out API client
Usage
<?php use Wesnick\RingCentral\Model\User; use Wesnick\RingCentral\Http\HttpClient; // Some implementation of UserInterface $user = new User("5555555555", "1234"); // Some implementation of Doctrine Cache interface $cache = new FilesystemCache("/path/to/cache"); // Some implementation of HttpInterface $client = new HttpClient($cache); $ringout = new RingOut($client); // Methods $numbers = $ring->getNumbersList($user); // Returns an array of NamedNumberInterface $ring->placeCall($user, $destNumber, $sourceNumber, $callerIdNumber, $voicePromptBeforeConnect); // Returns session Id of connected call $ring->getCallStatus($sessionId); // Returns CallStatus object $ring->cancelCall($sessionId); // Returns boolean
Fax out is minimally implemented and has not been tested yet.
Installation
Use composer.
Requirements
PHP 5.3
For use as a standalone library you need the following libraries: Buzz Symfony Console Doctrine Cache (for caching cookies)
Contributing
Fork and issue a Pull Request.
Running the Tests
$ bin/phpspec
License
Released under the MIT License. See the bundled LICENSE file for details.