Add 3D tours to your platform
Two HTML tags and one script. No GPU and no 3D knowledge needed.
1. Load the script
Once per page. It is a few KB and registers both tags.
<script src="https://tour.asoma.com.co/embed.js" defer></script>2. Show a tour
Put the tag where you want the tour, with the id of the published tour. Add autoplay to start the auto tour by itself.
<asoma-tour tour-id="5e63f7ba-97e9-482a-b202-64f0459e23ed" autoplay></asoma-tour>3. Open the recording
The button asks your own server for a capture link, on your own domain and with your user's session. Your server asks the Asoma API with its credentials and answers with the link. No secret ever reaches the browser.
<asoma-capture-button endpoint="/api/asoma/capture-link"></asoma-capture-button>Your server answers that POST like this:
{ "url": "https://…" }If anything fails, the button becomes active again and fires the asoma-error event.
Credentials
Create your sandbox platform and get its credentials at once. Test recordings return a sample tour at no cost.
The API your server calls is described in an OpenAPI spec: routes, scopes, bodies and error codes. Read the OpenAPI spec