init
This commit is contained in:
commit
72a26edcff
22092 changed files with 2101903 additions and 0 deletions
54
pb.php
Normal file
54
pb.php
Normal file
|
|
@ -0,0 +1,54 @@
|
|||
<?php
|
||||
header("Content-Type: text/html; charset=utf-8");
|
||||
error_reporting(E_ALL); ini_set('display_errors',1);
|
||||
require('lib/config.php');
|
||||
session_name(CONFIG_SESSION); session_start();
|
||||
require('lib/mysql.class.php');
|
||||
require('vendor/autoload.php');
|
||||
$GLOBALS['mysql'] = new mysql(CONFIG_MYSQL_HOST,CONFIG_MYSQL_USER,CONFIG_MYSQL_PW,CONFIG_MYSQL_DB);
|
||||
date_default_timezone_set('Europe/London');
|
||||
//----------------------------------------------------------------------------------------------------------------
|
||||
$pb = new Pushbullet\Pushbullet('o.2SDMXG2JB04IOxSEWGw5AXc1OD5BG8I1');
|
||||
//----------------------------------------------------------------------------------------------------------------
|
||||
/*
|
||||
[recipientType:Pushbullet\Device:private] => device_iden
|
||||
[recipient:Pushbullet\Device:private] => ujxRG3z0r6GsjAiVsKnSTs
|
||||
[apiKey:protected] => o.2SDMXG2JB04IOxSEWGw5AXc1OD5BG8I1
|
||||
[active] => 1
|
||||
[iden] => ujxRG3z0r6GsjAiVsKnSTs
|
||||
[created] => 1525044926.5786
|
||||
[modified] => 1525044971.4443
|
||||
[type] => android
|
||||
[kind] => android
|
||||
[nickname] => HUAWEI MHA-L29
|
||||
[generated_nickname] => 1
|
||||
[manufacturer] => HUAWEI
|
||||
[model] => MHA-L29
|
||||
[app_version] => 256
|
||||
[fingerprint] => {"android_id":"479a96f9c86b29f5"}
|
||||
[push_token] => edVIZ0abAYM:APA91bE76yuTYXEHq3OxQdl_878BZ3ZuTodhGDrOei8cEw0S1jfcCjQVoPV2XahFNd_589QI4rZDrYl2jma72HYxzFfXstVpt6lm5EcOQfVwxFJgpe_gAte113Il2w5tkyKTkVrUqT4V
|
||||
[pushable] => 1
|
||||
[has_sms] => 1
|
||||
[has_mms] => 1
|
||||
[icon] => phone
|
||||
[remote_files] => disabled
|
||||
*/
|
||||
//------------------------------------------------- abfragen -----------------------------------------------------
|
||||
//$pb->getDevices();
|
||||
//$pb->device("HUAWEI MHA-L29")->sendSms("+491774161573", "Was ist los digga");
|
||||
echo "<pre>"; print_r($pb); echo "</pre>";
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
?>
|
||||
Loading…
Add table
Add a link
Reference in a new issue