|
|
<?php
|
|
|
use SamApiLib\HcpApi;
|
|
|
|
|
|
require_once __DIR__ . "/../SamApiLib/HcpApi.php";
|
|
|
|
|
|
|
|
|
$protocol = "https";
|
|
|
$repository_url = "af-sam.archivesfactory.cloud";
|
|
|
$tenant = "cfe228";
|
|
|
$namespace = "cfe228";
|
|
|
$url = "https://cfe228.cfe228.af-sam.archivesfactory.cloud";
|
|
|
$login = "cfe228";
|
|
|
$password = "Test-S3-&-Tenant-Suppl";
|
|
|
$filename = "/home/laulau/testdoc.txt";
|
|
|
$directory = "TEST";
|
|
|
|
|
|
|
|
|
$api= new HcpApi($protocol, $repository_url, $tenant, $namespace, $login, $password);
|
|
|
echo $api->put_file($filename, $directory);
|