Weebly Events

Cloud Elements currently supports events via polling or webhooks depending on the endpoint.

  • Polling is a mechanism where Cloud Elements executes the configured query every n minutes and captures the changed information.
  • Webhooks are when the provider lets Cloud Elements know what information has changed. Note that additional endpoint setup may be required prior to creating your element instance.
Note: Cloud Elements normalizes only the objectId, objectType, and eventType event data. Event data also contains raw data, which the provider returns. The raw data varies based on the endpoint.

If you would like to see more information on our Events framework, please see Events Overview.

Cloud Elements supports webhook events for Weebly.

Webhooks

In order to enable webhooks, add this data to your manifest.json:

    ////////////////////////////////
    ///////BASIC APP STRUCTURE//////
    ////////////////////////////////
{
    "manifest": "1",
    "client_id": "INSERT_CLIENT_ID",
    "version": "2.0.0",
    "manage_app_url":   "https://mycoolapp.com",
    "callback_url": "https://mycoolapp.com/auth",
    "oauth_final_destination": "editor",
    "locale": {
        "default": "en-us",
        "supported": ["en-us"]
    },
    ////////////////////////////////
    ////WITH WEBHOOKS ENABLED///////
    ////////////////////////////////
    "webhooks": {
        "callback_url": "https://console.cloud-elements.com/elements/api-v2/weebly/events",
        "events": ["store.product.create", "store.product.update", "store.product.delete",
        "store.cart.create", "store.cart.update"]
    }
}

This manifest.json must be uploaded when you create your app. For more information on creating your app, see the Weebly Endpoint Setup.

Add the following two configurations to the instance.json:

"event.notification.enabled": "true",
"event.notification.callback.url": "<INSERT_YOUR_APPS_CALLBACK_URL>"

instance JSON with polling events enabled:

{
    "element": {
        "key": "weebly"
    },
    "providerData": {
        "code": "Code on Return the URL"
    },
    "configuration": {
        "oauth.api.key": "<INSERT_ZENDESK_UNIQUE_IDENTIFIER>",
        "oauth.api.secret": "<INSERT_ZENDESK_CLIENT_SECRET>",
        "site.id": "<FROM_OAUTH_EXCHANGE>",
    "event.notification.enabled": "true",
    "event.notification.callback.url": "<INSERT_YOUR_APPS_CALLBACK_URL>"
  },
  "tags": [
    "<INSERT_TAGS>"
  ],
  "name": "<INSERT_INSTANCE_NAME>"
}