Initial commit

UnPS-GAMA API first release - Not in usable production state
Version 0.0.1
This commit is contained in:
Arctic Code
2013-07-18 17:26:53 -05:00
commit 7b01ce691f
4 changed files with 139 additions and 0 deletions

13
api.test.php Normal file
View File

@@ -0,0 +1,13 @@
<?php
// api.test.php - Example usage of the API, to be replaced with API front end
// At the moment, the API has two features: Create a short link, and Delete a short link
require('api.backend.php');
require('dbsettings.php');
$unpsAPI = new api();
echo $unpsAPI->shorten($apidb, '580658027', $shortdb, '[Full URL]');
echo $unpsAPI->delShort($apidb, '580658027', $shortdb, '[Short link Code Only]]');
?>