mirror of
https://github.com/gamaio/UnPS-API.git
synced 2024-12-22 02:02:40 +00:00
Test API user creation - Success
This commit is contained in:
parent
17be9fd2f0
commit
86cdf9b488
@ -7,11 +7,12 @@ require('dbsettings.php');
|
|||||||
|
|
||||||
$unpsAPI = new api();
|
$unpsAPI = new api();
|
||||||
|
|
||||||
//echo $unpsAPI->shorten($apidb, '580658027', $shortdb, '[Full URL]');
|
//echo $unpsAPI->shorten($apidb, '580658027', $shortdb, '[Full URL]'); // Shorten link
|
||||||
//echo $unpsAPI->delShort($apidb, '580658027', $shortdb, '[Short link Code Only]]');
|
//echo $unpsAPI->delShort($apidb, '580658027', $shortdb, '[Short link Code Only]]'); // Delete link
|
||||||
|
|
||||||
//echo $unpsAPI->upImage($apidb, '580658027', $imgdb, 'dc0de', 'This is a test', 'test', 0, imgdata)
|
//echo $unpsAPI->upImage($apidb, '580658027', $imgdb, 'dc0de', 'This is a test', 'test', 0, imgdata); // Upload image
|
||||||
|
|
||||||
echo $unpsAPI->regUser($apidb, '580658027', $udb, 'David', 'password123', 'tehfoxy.c0de@gmail.com');
|
//echo $unpsAPI->regUser($apidb, '580658027', $udb, 'David', 'password123', 'tehfoxy.c0de@gmail.com'); // Register users
|
||||||
|
echo $unpsAPI->regAPI($apidb, '580658027', 'UnPS-GAMA Link Shortener', 'tehfoxy.c0de@gmail.com', '1,0,0,0'); // Register API user
|
||||||
|
|
||||||
?>
|
?>
|
Loading…
Reference in New Issue
Block a user