diff --git a/index.php b/index.php
index 1b4a10a..2b1c423 100644
--- a/index.php
+++ b/index.php
@@ -15,8 +15,11 @@
/*Get an API Token from my.trackinghive.com and put it here */
$bearerToken = '';
-$version = "0.3";
+$version = "0.4";
+
+//echo "Setting alertMessage to ' '
";
$alertMessage = "";
+
$comment = "No title";
$now = new DateTime();
@@ -26,6 +29,10 @@
//----- Functions -----//
+
+
+//-- PHP Stuff --//
+
function deleteParcel($_id, $bearerToken){
$ch = curl_init();
@@ -47,7 +54,9 @@ function deleteParcel($_id, $bearerToken){
$json = json_decode($response, true);
if ($json['meta']['code'] == 200) {
+ //echo 'Package removed!
';
$alertMessage = "Removed";
+ //echo $alertMessage;
}
return $alertMessage;
@@ -146,7 +155,9 @@ function addSubscription ($_id, $bearerToken) {
if ($json->meta->code == 200) {
$_id = $json->data->_id;
+ //echo 'Package added!
';
$alertMessage = "Added";
+ //echo $alertMessage;
//addSubscription($_id, $bearerToken);
} else if ($json->meta->code == 400) {
echo 'Could not add package.
';
@@ -161,6 +172,8 @@ function addSubscription ($_id, $bearerToken) {