Retrieve the watermark for a file.
12345
The unique identifier that represent a file.
The ID for any file can be determined
by visiting a file in the web application
and copying the ID from the URL. For example,
for the URL https://*.app.box.com/files/123
the file_id
is 123
.
Returns an object containing information about the watermark associated for to this file.
Returns an error if the file does not have a watermark applied.
An unexpected client error.
curl -X GET https://api.box.com/2.0/files/12345/watermark \
-H 'Authorization: Bearer <ACCESS_TOKEN>'
BoxWatermark watermark = await client.FilesManager.GetWatermarkAsync("11111");
BoxFile file = new BoxFile(api, id);
BoxWatermark watermark = file.getWatermark();
watermark = client.file(file_id='12345').get_watermark()
print('Watermark created at {0} and modified at {1}'.format(watermark.created_at, watermark.modified_at))
client.files.getWatermark('11111')
.then(watermark => {
/* watermark -> {
watermark:
{ created_at: '2016-10-31T15:33:33-07:00',
modified_at: '2016-10-31T15:33:33-07:00' } }
*/
});