87 lines
3.1 KiB
PHP
87 lines
3.1 KiB
PHP
|
|
<?php
|
|
include_once('def.php');
|
|
include 'session_read.php';
|
|
include('wrenchboard_class.php');
|
|
|
|
// public $REACT_APP_AUX_ENDPOINT = "https://apigate.lotus.g1.wrenchboard.com/svs/user";
|
|
// public $REACT_APP_USERS_ENDPOINT = "https://apigate.lotus.g1.wrenchboard.com/svs/user";
|
|
|
|
$wrenchboard = new wrenchboard_class();
|
|
|
|
$data = array(
|
|
"member_id" => $member_id ,
|
|
"sessionid" => $session_id ,
|
|
"uid" => $uid,
|
|
"msg_uid" => "3ba22926-f734-4440-9651-ed848b6b1043",
|
|
"process" => WRENCHBOARD_CONTRACT_MESSAGE,
|
|
'action'=>WRENCHBOARD_GET_MEDIA
|
|
);
|
|
|
|
$SERVER_URL = "https://apigate.lotus.g1.wrenchboard.com";
|
|
|
|
//$out = array();
|
|
//$ret = $wrenchboard->wrenchboard_api($data,$out,'getmedia');
|
|
|
|
$myFile_sample = $SERVER_URL."/en/wrench/api/v1/getmedia/".$session_id."/myfile/8be7f3dc-7fd8-4c0b-bc78-33dc5537cc3f";
|
|
$myFile_profile = $SERVER_URL."/en/wrench/api/v1/getmedia/".$session_id."/profile/".$uid;
|
|
?>
|
|
<!doctype html>
|
|
<html lang="en">
|
|
<head>
|
|
<!-- Required meta tags -->
|
|
<meta charset="utf-8">
|
|
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
|
|
|
|
<!-- Bootstrap CSS -->
|
|
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap@4.0.0/dist/css/bootstrap.min.css" integrity="sha384-Gn5384xqQ1aoWXA+058RXPxPg6fy4IWvTNh0E263XmFcJlSAwiGgFAW/dAiS6JXm" crossorigin="anonymous">
|
|
|
|
<title>WrenchBoard Secure Media File </title>
|
|
</head>
|
|
<body>
|
|
<h1>WrenchBoard Secure Media File </h1>
|
|
<hr />
|
|
<table class="table table-striped">
|
|
<thead>
|
|
<tr>
|
|
<th scope="col">#</th>
|
|
<th scope="col">Type</th>
|
|
<th scope="col">Last</th>
|
|
<th scope="col">Handle</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
<tr>
|
|
<th scope="row">1</th>
|
|
<td>USERS UPLADED FILES</td>
|
|
<td>
|
|
<a href='<?=$myFile_sample?>'><?=$myFile_sample?></a> <hr size="1">
|
|
<?=$SERVER_URL?>/en/wrench/api/v1/getmedia/<b>session_id</b>/myfile/<b>file_uid</b> </td>
|
|
<td>......</td>
|
|
</tr>
|
|
<tr>
|
|
<th scope="row">2</th>
|
|
<td>Active Job Files</td>
|
|
<td><?=$SERVER_URL?>/en/wrench/api/v1/getmedia/<?=$session_id?>/contrats/9af67a04-6f4f-477f-a0a5-3336c7e9022b
|
|
<hr size="1">
|
|
<?=$SERVER_URL?>/en/wrench/api/v1/getmedia/<b>session_id</b>/contrats/<b>msg_uid</b>
|
|
</td>
|
|
<td>....</td>
|
|
</tr>
|
|
<tr>
|
|
<th scope="row">3</th>
|
|
<td>Profile Picture</td>
|
|
<td><a href='<?=$myFile_profile?>'><?=$myFile_profile?></a></td>
|
|
<td>.....</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
<!-- Optional JavaScript -->
|
|
<!-- jQuery first, then Popper.js, then Bootstrap JS -->
|
|
<script src="https://code.jquery.com/jquery-3.2.1.slim.min.js" integrity="sha384-KJ3o2DKtIkvYIK3UENzmM7KCkRr/rE9/Qpg6aAZGJwFDMVNA/GpGFF93hXpG5KkN" crossorigin="anonymous"></script>
|
|
<script src="https://cdn.jsdelivr.net/npm/popper.js@1.12.9/dist/umd/popper.min.js" integrity="sha384-ApNbgh9B+Y1QKtv3Rn7W3mgPxhU9K/ScQsAP7hUibX39j7fakFPskvXusvfa0b4Q" crossorigin="anonymous"></script>
|
|
<script src="https://cdn.jsdelivr.net/npm/bootstrap@4.0.0/dist/js/bootstrap.min.js" integrity="sha384-JZR6Spejh4U02d8jOt6vLEHfe/JQGiRRSQQxSfFWpi1MquVdAyjUar5+76PVCmYl" crossorigin="anonymous"></script>
|
|
</body>
|
|
</html>
|
|
|