The previous script would load the partner specific configuration needed for the widget. The server will identify the partner site using the Referer HTTP header.
Note: The Bubi API Server has a CORS policy restricting access to API from sites that are not in the white list for partners. If your site is being blocked, please contact Bubi Support to add you site to the white list.
Then finally add the script to for the widgets themselves.
The first script loads only for older browser that don't support ES2015 while the other is smaller in size and faster for modern browsers that support it.
The next step is to add the widget itself. For example if you want to insert the login widget add the following snippet within an appropriate location in the page.
<bubi-header-login></bubi-header-login>
This widget will show a login button when the user it not logged in:
And when the user is logged in it looks like this:
More information about other widgets in the following sections.