Skip to content

Commit

Permalink
Added outgoing page
Browse files Browse the repository at this point in the history
Also updated fields for TrackingHive to use the Name field for the name of the package, this way you will get see the name of the package in the email notifications.
  • Loading branch information
fireshaper authored Mar 12, 2021
1 parent 71185b0 commit f7ead77
Show file tree
Hide file tree
Showing 12 changed files with 785 additions and 105 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,9 @@ Instructions:
3. Click the Plus button to create an API key
NOTE: The site was slow for me to make my first API key and I ended up making way too many at once. If you don't see the key right away, try going back to the overview and see if the page loads. You might have to wait a few minutes for the site to catch up with you.
4. Download the ParcelPony release and unzip the files to a folder on your web server
4. Copy your API key and paste it into index.php where it asks for the BearerToken
4. Copy your API key and paste it into index.php and outgoing.php files where it asks for the BearerToken
5. (Optional) There's also a page called getjson.php that just pulls the json for a package (for testing). If you want to use this page you will need to paste the API key on that page too.
6. Go to http://localhost/parcelpony and start adding parcels to track


NOTE: You can enable email notifications on TrackingHive for all parcels you add.
NOTE: You can enable email notifications on TrackingHive for all parcels you add, the name of the package in ParcelPony is set to the First Name field on TrackingHive.
Binary file added android-chrome-192x192.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added android-chrome-512x512.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added apple-touch-icon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added favicon-16x16.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added favicon-32x32.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added favicon.ico
Binary file not shown.
13 changes: 3 additions & 10 deletions getjson.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
<?php

/*Get an API Token from my.trackinghive.com and put it here */
$bearerToken = '';

if (isset($_POST["tracking"])){
Expand Down Expand Up @@ -119,15 +118,9 @@ function pretty_print($json_data)

//call custom function for formatting json data
echo pretty_print($data);
}
}


}

?>
r formatting json data
echo pretty_print($data);

//print unfiltered json
print_r($data);
}
}

Expand Down
Loading

0 comments on commit f7ead77

Please sign in to comment.