Initial
This commit is contained in:
commit
3ebc1fe1bf
|
@ -0,0 +1,4 @@
|
|||
.idea/
|
||||
vendor/
|
||||
*~
|
||||
composer.lock
|
|
@ -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');
|
|
@ -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"
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue