我正在使用城市飞艇发送推送通知。我在他们的官方网站上搜索文件
http://docs.urbanairship.com/reference/libraries/php/0.1.2/
http://urbanairship.com/resources/dev-blog/new-server-libraries-released-python-php-and-java
在两个网址上的php推送通知代码是
<?php
require_once 'vendor/autoload.php';
use UrbanAirship\Airship;
use UrbanAirship\AirshipException;
use UrbanAirship\UALog;
use UrbanAirship\Push as P;
use Monolog\Logger;
use Monolog\Handler\StreamHandler;
UALog::setLogHandlers(array(new StreamHandler("php://stdout", Logger::DEBUG)));
$airship = new Airship("<app key>", "<master secret>");
try {
$response = $airship->push()
->setAudience(P\all)
->setNotification(P\notification("Hello from php"))
->setDeviceTypes(P\all)
->send();
} catch (AirshipException $e) {
print_r($e);
}
?>
在两个网址上的文件供应商/ autoload.php都包括在内,但是在城市飞艇上给出了自由的vendir文件丢失
https://github.com/urbanairship/php-library2/
任何人都可以帮助我解决城市飞艇的PHP问题吗?