open-index/open-npm huggingface dataset:
npm package: @pixelshift.ai/xoo-reality
Description: Web SDK for XOO Reality.
Latest version: 1.5.16

# XOO Reality Web SDK

Web SDK for XOO Reality.

## Viewer API
See [JSBin](//jsbin.com/kokubaqewe/edit?html,css,js,output) for a complete example.

```javascript
const iframe = document.getElementById("xoo-viewer");

// Assuming UMD import, e.g <script src="//unpkg.com/@pixelshift.ai/xoo-reality@latest"></script>
const { XooRealityClient } = window["xoo-reality"];


const version = "master"  // Nightly build.
const client = new XooRealityClient(iframe, version);

// Token Acquired from XOO Topia API.
const token =
  "eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCJ9.eyJzZXEiOjUsImdpZCI6InpHWjUxRVo1Iiwic3ViIjoiNWd4eFVHS2ciLCJpYXQiOjE2Mzk1NjAzMTUsImV4cCI6MjAzOTgxOTUxNX0.pVzesl_gfr3Y3CDXlPQtzh0F-388Wfe4qlaLuuSFKM6l2cCQmyA6xCp_xYPUcCwiOFd_CI5DOG__3bg-Ao_kMJ_TSFkwoPmRLTyQXXOSYA3j5q60rXFbLglb1DVj0nkokv3ow5G8VWyTYDN_TEGye4It3G1tvYGXksmjVFR-64PRCr66PrkCwrNQQQvMgUmsosyKXpqPpGFjZhjEnijeBiP7qU2d7IinNdtlivOQEjetQFmJR0SAxMQOSDGez5dllYDIK83orWHoK5KJcaQKHxQR3njLZC0pTH-hk6iTlGrJOLmtLQcC45UhqdnJ8v4fBlHQjCVIEswGCEUN_MCVVg";

// Start XOO Reality.
client.init({ token }).then(() => {
  console.log("Hello XOO");
});
```