This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$title = $_GET['title']; | |
if (isset($_GET['design']) && $_GET['design'] == 'design1') { | |
$design = 'vorlage_360.png'; | |
} else if (isset($_GET['design']) && $_GET['design'] == 'design2') { | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
//Google RealTime Connect | |
require_once '/ABSOLUTE/PATH/TO/GOOGLE-API-PHP/vendor/autoload.php'; | |
$client = new Google_Client(); | |
$client->setApplicationName("A_DESCRIPTIVE_NAME"); | |
$client->setAuthConfig('/ABSOLUTE/PATH/TO/GOOGLE-API-PHP/AUTH-FILE.json'); | |
$client->addScope('https://www.googleapis.com/auth/analytics.readonly'); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
// Place other API connects e.g. the one to Google here | |
// Your ID and token of your cloudBit | |
$deviceID = 'DEVICE_ID'; | |
$authToken = 'AUTH_TOKEN'; | |
// The data to send to the API | |
$cloudData = array( |