UnPS-API/api.test.php
Arctic Code 7b4d4da8f6 Test of regUser function - Test sucessful
upImage needs to be tested, but I'm lazy
regAPI to be tested next
2013-07-26 22:44:05 -05:00

17 lines
618 B
PHP

<?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]]');
//echo $unpsAPI->upImage($apidb, '580658027', $imgdb, 'dc0de', 'This is a test', 'test', 0, imgdata)
echo $unpsAPI->regUser($apidb, '580658027', $udb, 'David', 'password123', 'tehfoxy.c0de@gmail.com');
?>