This commit is contained in:
R. Eric Wheeler 2017-03-17 18:43:45 -07:00
commit 3ebc1fe1bf
3 changed files with 28 additions and 0 deletions

4
.gitignore vendored Normal file
View File

@ -0,0 +1,4 @@
.idea/
vendor/
*~
composer.lock

15
app.php Normal file
View File

@ -0,0 +1,15 @@
<?php
require 'vendor/autoload.php';
$token = getenv('NOTI_PB');
if(empty($token)) {
throw new InvalidArgumentException('Please set your Pushbullet API token');
}
$pb = new Pushbullet\Pushbullet($token);
print_r($pb->getDevices());
//$pb->device('Chrome')->pushNote('Done', 'Your thing has finished on repos.');
$pb->device('Huawei Nexus 6P')->pushNote('Done', 'Finished pushing');

9
composer.json Normal file
View File

@ -0,0 +1,9 @@
{
"require": {
"ivkos/pushbullet": "^3.1",
"symfony/console": "^3.2",
"symfony/event-dispatcher": "^3.2",
"symfony/config": "^3.2",
"symfony/dotenv": "dev-master"
}
}