fireless/php-pushwoosh
Composer 安装命令:
composer require fireless/php-pushwoosh
包简介
A PHP Library to easily work with the Pushwoosh REST Web Services.
关键字:
README 文档
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!
统计信息
- 总下载量: 31
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2015-11-17