Autoinspector SDK for nodejs.

Overview

Autoinspector Node.js SDK

The Autoinspector Node library provides convenient access to the Autoinspector API from applications written in server-side JavaScript.

Installation

npm install autoinspector
#or
yarn add autoinspector

Usage

The package needs to be configured with your company api key, which is available in the Autoinspector Dashboard. Require it passing the token at the moment of instantiate Autoinspector class.

const Autoinspector = require('autoinspector').default

const autoinspector = new Autoinspector({
    apikey:"YOUR_API_KEY"
})

autoinspector.inspections.vehicle.create({...})
.then((res) => {
    console.log("inspection created!", res.inspectionId)
})
.catch((err) => console.error(err))

Or using ES modules and async/await:

import Autoinspector from 'autoinspector'

const autoinspector = new Autoinspector({
    apikey:"YOUR_API_KEY"
})

(async () => {

try {

const inspection = await autoinspector.inspections.vehicle.create({...})

console.log(inspection._id)

} catch (err) {

  console.error(err)

}

})()

Usage with Typescript

All the types are included in the module, so if you install it using typescript you automatically have access to all the interfaces used by Autoinspector SDK.

Configuration

Initialize with config object

The package can be initialized with two options:

import Autoinspector from 'autoinspector';

const autoinspector = new Autoinspector({
  apikey: 'YOUR_API_KEY',
  timeout: 1000,
});
Option Default Description
apikey null token for authentication that belongs to specific company
timeout 80000 Maximum time each request can take in ms.
You might also like...

Anagolay Network Javascript SDK written in Typescript

Anagolay Network Javascript SDK written in Typescript. This repo will contain the bindings to Anagolay Network with the sane defaults for pallet usage

Nov 26, 2022

Lazerpay SDK allows you accept payments easily in your react application

Lazerpay SDK allows you accept payments easily in your react application

Lazerpay Official react sdk Lazerpay SDK allows you accept payments easily in your react application Installation npm install lazerpay-react Usage imp

Nov 20, 2022

Firebase SDK 9 + Google Sign In + Chrome Extension Manifest Version 3 + Webpack

Firebase SDK 9 + Google Sign In + Chrome Extension Manifest Version 3 + Webpack Demo Find this Chrome Extension Setup and working demo here or on Yout

Dec 28, 2022

js-sdk for multichain storage service

js-sdk for multichain storage service

js-mcs-sdk Table of Contents Introduction Prerequisites MCS API Usage Installation Getting Started Documentation Contributing Introduction A client li

Aug 5, 2022

Codemod scripts to update AWS SDK for JavaScript APIs.

aws-sdk-js-codemod This repository contains a collection of codemod scripts for use with JSCodeshift that help update AWS SDK for JavaScript APIs. The

Jan 2, 2023

This SDK helps developers get started with the on-chain tools provided by Metaplex.

This SDK helps developers get started with the on-chain tools provided by Metaplex.

Metaplex JavaScript SDK ⛔️ DO NOT USE IN PRODUCTION, THIS SDK IS IN VERY EARLY ALPHA STAGES! This SDK helps developers get started with the on-chain t

Dec 27, 2022

TypeSafe MongoDB Atlas Data API SDK for Deno & Deno Deploy

Atlas SDK atlas_sdk is a TypeSafe MongoDB Atlas Data API SDK for Deno & Deno Deploy Links Docs Import Replace LATEST_VERSION with current latest versi

Dec 26, 2022

It's a javascript Class which contains utility methods that simplify working with google maps web SDK

About GoogleMapsJSHelper It's a javascript Class which contains utility methods that simplify working with google maps web SDK Note: i used ES7 Class

Jul 23, 2022

Textme.lk SMS SDK and Sample Apps

TextME Javascript SDK Table of Content Introduction Prerequisite Install Getting Started APIs constructor sendSMS viewSMS viewAllSMS Models ClientConf

Jan 29, 2022
Releases(v2.0.0)
Owner
Autoinspector
Autoinspector
Hemsida för personer i Sverige som kan och vill erbjuda boende till människor på flykt

Getting Started with Create React App This project was bootstrapped with Create React App. Available Scripts In the project directory, you can run: np

null 4 May 3, 2022
Kurs-repo för kursen Webbserver och Databaser

Webbserver och databaser This repository is meant for CME students to access exercises and codealongs that happen throughout the course. I hope you wi

null 14 Jan 3, 2023
The iofod SDK provides developers with the ability to interact with the main iofod interface within the Web worker, enabling rapid development of iofod extensions through the SDK.

iofod-sdk English | 简体中文 The iofod SDK provides developers with the ability to interact with the main iofod interface within the Web worker, enabling

iofod, Inc. 47 Oct 17, 2022
Movehat is a TypeScript SDK for Move on Sui built on top of Sui's TypeScript SDK and our fork of Ian Macalinao's `move-ts`.

Movehat Movehat is a TypeScript SDK for Move on Sui built on top of Sui's TypeScript SDK and our fork of Ian Macalinao's move-ts. Movehat aspires to b

Pentagon 10 Sep 30, 2022
The NodeJS server SDK for Charon.

Charon - NodeJS Server SDK This is the NodeJS server SDK for Charon: A new form of secure, passwordless authentication. The SDK currently serves as a

null 2 Apr 8, 2022
NodeJS(TypeScript) SDK For V2EX

NodeJS(TypeScript) SDK For V2EX

chyroc 4 Mar 2, 2022
CLI Progress Bar implemented in NodeJS to track Time, ETA and Steps for any long running jobs in any loops in JS, NodeJS code

NodeJS-ProgressBar CLI Progress Bar for NodeJS and JavaScript to track Time, ETA and Steps for any long running jobs in any loops in JS, NodeJS code D

Atanu Sarkar 5 Nov 14, 2022
A CLI tool to create a NodeJS project with TypeScript CTSP is a CLI tool to make easier to start a new NodeJS project and configure Typescript on it.

CTSP- Create TS Project A CLI tool to create a NodeJS project with TypeScript CTSP is a CLI tool to make easier to start a new NodeJS project and conf

Jean Rodríguez 7 Sep 13, 2022
microCMS JavaScript SDK.

microCMS JavaScript SDK It helps you to use microCMS from JavaScript and Node.js applications. Getting Started Install Install npm package. $ npm inst

Wanta Inc 107 Dec 31, 2022
Temporal-time-utils - This is a library with some reusable functions for Temporal.io TypeScript SDK

temporal-time-utils This is a library with some reusable functions for Temporal.io TypeScript SDK: sleepUntil: sleep to a specific date, instead of by

swyx 15 Oct 18, 2022