<?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 = "TEST/testdoc.txt";
|
|
|
|
|
|
$api= new HcpApi($protocol, $repository_url, $tenant, $namespace, $login, $password);
|
|
$res = $api->head_file($filename);
|
|
if($res === false)
|
|
{
|
|
die("file does not exist");
|
|
}
|
|
|
|
var_dump($res);
|