BoxWorks 2024でコンテンツとAIの可能性について紹介します。
詳細を表示ファイルの電子すかしを適用または更新します。
curl -i -X PUT "https://api.box.com/2.0/files/12345/watermark" \
-H "authorization: Bearer <ACCESS_TOKEN>" \
-H "content-type: application/json" \
-d '{
"watermark": {
"imprint": "default"
}
}'
await client.fileWatermarks.updateFileWatermark(file.id, {
watermark: new UpdateFileWatermarkRequestBodyWatermarkField({
imprint: 'default' as UpdateFileWatermarkRequestBodyWatermarkImprintField,
}),
} satisfies UpdateFileWatermarkRequestBody);
client.file_watermarks.update_file_watermark(
file.id,
UpdateFileWatermarkWatermark(
imprint=UpdateFileWatermarkWatermarkImprintField.DEFAULT.value
),
)
await client.FileWatermarks.UpdateFileWatermarkAsync(fileId: file.Id, requestBody: new UpdateFileWatermarkRequestBody(watermark: new UpdateFileWatermarkRequestBodyWatermarkField(imprint: UpdateFileWatermarkRequestBodyWatermarkImprintField.Default)));
BoxFile file = new BoxFile(api, id);
file.applyWatermark();
watermark = client.file(file_id='12345').apply_watermark()
print(f'Watermark created at {watermark.created_at} and modified at {watermark.modified_at}')
BoxWatermark watermark = await client.FilesManager.ApplyWatermarkAsync("11111");
client.files.applyWatermark('11111')
.then(watermark => {
/* watermark -> {
watermark:
{ created_at: '2016-10-31T15:33:33-07:00',
modified_at: '2016-10-31T15:33:33-07:00' } }
*/
});
{
"watermark": {
"created_at": "2012-12-12T10:53:43-08:00",
"modified_at": "2012-12-12T10:53:43-08:00"
}
}