百度智能云

All Product Document

          Multimedia Cloud Processing

          Notification

          Create Notification

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

          name = "your_notification" 
          endpoint = "your_endpoint" 
          response = client.create_notification(name, endpoint) 
          print response 

          Query Assigned Notification

          If you need to query a notification, you can refer to the following codes:

          name = "your_notification" 
          response = client.get_notification(name) 
          print response 

          Query Notification of Current User

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

          response = client.list_notifications() 
          print response 

          Delete Notification

          If you need to delete a notification with a given name, you can refer to the following codes:

          name = "your_notification" 
          response = client.delete_notification(name) 
          print response
          Previous
          Watermark
          Next
          Exception Handling