fireless / php-pushwoosh
A PHP Library to easily work with the Pushwoosh REST Web Services.
1.1.2
2015-11-17 20:40 UTC
Requires
- php: >=5.4
Requires (Dev)
- codeclimate/php-test-reporter: ~0.2
- pdepend/pdepend: ~2.2
- phploc/phploc: ~2.1
- phpmd/phpmd: ~2.3
- phpunit/phpunit: ~4.8
- satooshi/php-coveralls: ~0.6
- sebastian/phpcpd: ~2.0
- squizlabs/php_codesniffer: ~2.3
This package is not auto-updated.
Last update: 2024-10-30 19:36:54 UTC
README
A PHP Library to easily work with the Pushwoosh REST Web Services.
First sample, creating a Pushwoosh message
// Create a Pushwoosh client $pushwoosh = Pushwoosh::create() ->setApplication('XXXX-XXX') ->setAuth('xxxxxxxx'); // Create a request for the '/createMessage' Web Service $request = CreateMessageRequest::create() ->addNotification(Notification::create()->setContent('Hello Jean !')); // Call the REST Web Service $response = $pushwoosh->createMessage($request); // Check if its ok if($response->isOk()) { print 'Great, my message has been sent !'; } else { print 'Oups, the sent failed :-('; print 'Status code : ' . $response->getStatusCode(); print 'Status message : ' . $response->getStatusMessage(); }
Easy, isn't it ?
Documentation
Framework Integrations
If you have integrated Pushwoosh into a popular PHP framework let us know!