Détail du package

@xtravision/xtravision-node

xtravision-ai115MIT2.5.0

The official node.js library for the XtraVision API

xtra, xtraininglive.com, xtravision

readme

xtravision-node

The official node.js library for the XtraVision API.

For Demo Application:

  1. Clone repo and install dependencies using below commands
     git clone https://github.com/xtravision-ai/xtravision-node.git
     yarn install
     `
  1. Update credentials in index.ts file (demo/index.ts)

     let credentials = {
         orgId: "__ORG-ID__",
         appId: "__App-ID__",
         appSecret:"__App-Secret-Key__",
         userId: null
     }

    Kindly update your testing user details also in same file. (firstName, lastName and email).

  2. Compile and run using below command on root directory:

     yarn build
     yarn start:demo

    Auth token and other response data will be printed in console log.

For Developer/Team Xtra :

For quick start use below command:

  1. Clone repo and install dependencies using below commands
     git clone https://github.com/xtravision-ai/xtravision-node.git
     yarn install
     `
  2. (for Linux/Mac) use the below command to set the Server URL and all required credentials to generate auth token and other API testing

     XTRA_SERVER_URL=https://saasapi.xtravision.ai/api/v1/graphql XTRA_ORG_ID=__ORG-ID__ XTRA_APP_ID=__APP-ID__ XTRA_APP_SECRET=__App-Secret__ XTRA_APP_USER=__NAME@xtravision.ai__ yarn start:dev

    changes server url as per your demand (prod/staging/local)

SDK API:

changelog

@xtravision/xtravision-node Changelog

v2.5.0 (Web, Jun 14, 2023)

  • (updates): Added ScreenerChatHistory API

v2.4.0 (Web, Jun 14, 2023)

  • (updates): Added sessionId params in Assessment result API

v2.2.1: (May 17, 2023)

  • (src/updates): Added profileData and timezone to registerUser API