Sample flows

This article shares some possible use cases your app could support, as well as an example flow that could support each use case. You're certainly not limited to these use cases, but they can be a helpful jumping off point as you plan your app's implementation.

Direct site builders to their site editor

You might choose to direct site builders from within your app to the site editor, for example to place a visual extension in the site.

  1. Include a call to action that redirects to the editor - for example, a button.
  2. Whenever the site builder clicks the button, call the Get Editor URLs endpoint.
  3. Redirect the site builder to the URL provided in the editorUrl parameter.

Direct site builders to preview the latest changes

If a site builder makes changes to the app's behavior or UI, you might choose to direct them to preview those changes using Wix's site preview feature. This flow is equally relevant if you choose to direct them to preview changes made directly in the site editor.

  1. Include a call to action that redirects to preview the site - for example, a button.
  2. Whenever the site builder clicks the button, call the Get Editor URLs endpoint.
  3. Redirect the site builder to the URL provided in the previewUrl parameter.

Note: The site preview feature will not be able to display any embedded script extensions.

Did this help?