mirror of
https://github.com/gamaio/UnPS-API.git
synced 2025-08-13 02:08:45 +00:00
Initial commit
UnPS-GAMA API first release - Not in usable production state Version 0.0.1
This commit is contained in:
13
api.test.php
Normal file
13
api.test.php
Normal 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]]');
|
||||
|
||||
?>
|
Reference in New Issue
Block a user