@xtravision/xtravision-node
v2.5.0
Published
The official node.js library for the XtraVision API
Downloads
105
Readme
xtravision-node
The official node.js library for the XtraVision API.
For Demo Application:
Clone repo and install dependencies using below commands
git clone https://github.com/xtravision-ai/xtravision-node.git yarn install
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).
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:
Clone repo and install dependencies using below commands
git clone https://github.com/xtravision-ai/xtravision-node.git yarn install
(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__ [email protected]__ yarn start:dev
changes server url as per your demand (prod/staging/local)
SDK API:
- For API reference, kindly check XtraVision GraphQL API Portal