百度智能云

All Product Document

          Multimedia Cloud Processing

          Watermark

          Create Watermark

          If you need to create a watermark, you can refer to the following code:

          bucket = "your_bucket" 
          key = "your_key" 
          response = client.create_watermark(bucket, key) 
          print response 

          The interface returns an object containing watermarkId

          Query Assigned Watermark

          If you need to query the created watermark, you can refer to the following code:

          watermark_id = "your_watermark_id"
          response = client.get_watermark(watermark_id) 
          print response 

          Query the Watermark of the Current User

          If you need to query all the watermarks created by the current user, you can refer to the following code:

          response = client.list_watermarks() 
          print response 

          Delete Watermark

          If you need to delete a watermark with a given watermarkId, you can refer to the following code:

          watermark_id = "your watermark id" 
          response = client.delete_watermark(watermark_id) 
          print response
          Previous
          Thumbnail-Job
          Next
          Notification