Getting Started
The Axitech Widget makes it easy to integrate insurance claim experiences into your own web applications. This repository provides two methods of using the widget; installation via npm, and usage through a CDN URL.
Installation
The process of integrating the Axitech Widget into your application is straightforward:
- Choose the installation method that suits your project: npm installation or CDN usage. For detailed instructions, refer to the Installation section.
- Using npm:
To install the Axitech Widget from npm, run the following command in your project directory:
npm install axitech-widget --save - Using CDN:
Alternatively, you can include the widget in your HTML file using a CDN URL:
<script src="https://unpkg.com/axitech-widget@1.0.0/dist/axitech-widget.umd.js"></script>
- Using npm:
To install the Axitech Widget from npm, run the following command in your project directory:
- Follow the installation steps provided above for your chosen method.
- Utilize the sample code under the "Usage" section to initialize the widget in your application, customizing the configuration properties according to your requirements.
- Monitor the
onSuccessandonErrorcallbacks to handle successful claim submissions and potential errors.
By following these steps, you can swiftly integrate the Axitech Widget and elevate the insurance claim experience for your users.
Standalone mode
The Axitech Widget also offers a standalone mode, allowing you to integrate the widget without npm installation. In standalone mode, you need to make an API request to our API, which will generate access URLs for each of your users.
Additionally, you can request submissions for each user by making another API request. Include the user's ID in the request to retrieve relevant information.