Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Ambita KODE API guide

...

Installation

Through npm

Code Block
languagebash
npm install --save @ambita/infoland-components

Through cdn

Code Block
<!DOCTYPE html>
<html>
<head>
  <title>Page Title</title>
  <script src="https://static.ambita.com/infoland-components/components.umd.js"></script>
</head>
<body>
  ...
</body>
</html>

Usage

Code Block
Ambita.Infoland.init({
  element: '#app',
  category: 'realtestate',
  token: 'Bearer ' + accessToken, // or tokenObject if you have that available
  externalDepartmentId: 1234567, // for some customers only
  reference: 'some-reference-that-will-show-up-on-the-invoice',
  technicalReference: 'some-technical-reference-to-the-assignment-or-project-in-your-application'
  onOrderConfirmed: (order) => {
    console.log(order)
  }
});