For the complete documentation index, see llms.txt. This page is also available as Markdown.

Webhooks

The built-in Webhooks feature provides an easy way to automate notifications based on events logged by the plugin. When enabled, the plugin sends a detailed JSON object to a specified listener URL, containing all relevant information about the logged event.

You can activate Webhook functionality via the Statistics tab under Log Events → Webhook Endpoint URL. This allows you to stay updated on plugin activities and seamlessly integrate with other systems.

Available events types

useyourdrive_previewed_entry useyourdrive_edited_entry useyourdrive_downloaded_entry useyourdrive_streamed_entry useyourdrive_created_link_to_entry useyourdrive_renamed_entry useyourdrive_deleted_entry useyourdrive_created_entry useyourdrive_updated_description useyourdrive_updated_metadata useyourdrive_moved_entry useyourdrive_uploaded_entry useyourdrive_uploaded_failed useyourdrive_searched useyourdrive_sent_notification useyourdrive_error

Example Data

{
  "total": 1,
  "events": [
    {
      "timestamp": "2022-05-01T00:05:00+00:00",
      "type": "useyourdrive_previewed_entry",
      "description": "John Johnson previewed the file UK Festival Market Report.pdf",
      "data": {
        "entry": {
          "id": "1-y9psKPDJCycz38c2sN_a3lRoO9S",
          "name": "UK Festival Market Report.pdf",
          "mimetype": "application/pdf",
          "size": "2 MB",
          "icon": "https://...",
          "description": "Festival Insights and the UK Festival Awards are proud to release the UK Festival Market Report 2017.",
          "thumbnail": "https://...",
          "preview_url": "https://...",
          "download_url": "https://...",
          "is_dir": false,
          "parent_id": "0By3zfuC9ZTdGZCT1pUd0E",
          "parent_path": "/Path/To/Folder"
        },
        "account": {
          "id": "1030123322434145",
          "name": "Your Account name",
          "email": "info@example.com",
          "image": "https://..."
        }
      },
      "user": {
        "id": "3",
        "user_login": "John Johnson",
        "user_nicename": "john-johnson",
        "user_email": "info@example.com",
        "display_name": "John Johnson"
      },
      "page": "https://yoursite.com/page"
    },
    {
        "timestamp": "2022-05-01T00:05:01+00:00",
        "type": "useyourdrive_deleted_entry",
        ...
    }
  ]
}

Example listener (PHP)

Last updated