Skip to content

Latest commit

 

History

History
21 lines (18 loc) · 516 Bytes

README.markdown

File metadata and controls

21 lines (18 loc) · 516 Bytes

PHP TFS Client

Usage

$client = new Tfs\Client($appkey);
$response = $client->save($fileContent);
if ( $response->isOk() ) {
    $tfsFile = $response->getResult()->TFS_FILE_NAME;
    echo "成功写入 Tfs 文件:" . $tfsFile;
    $response = $client->fetch($tfsFile);
    if ( $response->isOk() ) {
        echo "Tfs 文件内容:" . $response->getContent();
    }
} else {
    error_log(sprintf("写入错误 [%s]: %s\n", $response->getCode(), $response->getMessage()));
}