Returns the options that were passed into the api at creation time.
Fetch a resource from the Pointerra REST API. Automatically attaches required credentials and headers.
api.fetch(`/pointclouds/${pointcloudId}`)
.then((data) => {
})
REST API endpoint to call
options that will be passed to native fetch call
Use this to get the credentials string required to call into the Pointerra service if you want to use your own ajax calls, rather than our fetch() method.
Use this to get a populated set of headers required to call into the Pointerra service if you want to use your own ajax calls, rather than our fetch() method.
// Use standard fetch methods to get details of a pointcloud
const response = await fetch(`${api.getApiBase()}/pointclouds/${pointcloud_id}/`, {
credentials: api.getAjaxCredentials(),
headers: api.getAjaxHeaders(),
})
Get the URL path to the Pointerra REST API (normally /api
)
Resolve a partial URI or path to a full API URI Tries to normalize URLs as much as possible. Exact result depends on apiBase setting. eg /pointclouds/ => https://app.pointerra.io/api/pointclouds/ /api/pointclouds/ => https://app.pointerra.io/api/pointclouds/
api
Main entry point for the Pointerra Viewer API