test-fortellis
v0.6.0
Published
Fortellis APIs Client Library for Node.js
Downloads
5
Maintainers
Readme
Node.js API Client for Fortellis
This is an unofficial Node.js client for the Fortellis API libraries.
Integrations
- Elead Product Reference Data
- Elead Sales Activities
- Elead Sales Customers
- Elead Sales Opportunities
- CDK Drive Get Customer
- CDK Drive Get Service Appointment
- CDK Drive Get Repair Order
- CDK Drive Get FI Sales
Following sufficient adoption, additional APIs may be added.
Usage
Installation
npm install fortellis
Example
CommonJS
const fortellis = require("fortellis");
// authenticate with your Fortellis credentials
const auth = await fortellis.auth.FortellisAuth({
apiKey: "your-fortellis-api-key",
apiSecret: "your-fortellis-api-secret",
subscriptionId: "your-fortellis-application-subscription-id",
});
// create a new instance of the Elead Activities API client
const salesactivities = fortellis.eleadsalesactivities({
version: "v1",
environment: "test", // can be "test" or "production"
auth,
});
// make a request to the API
const response = await salesactivities.getActivityTypes();
// print the response
console.log(response);
ES6
import fortellis from "fortellis";
// authenticate with your Fortellis credentials
const auth = await fortellis.auth.FortellisAuth({
apiKey: "your-fortellis-api-key",
apiSecret: "your-fortellis-api-secret",
subscriptionId: "your-fortellis-application-subscription-id",
});
// create a new instance of the Elead Activities API client
const salesactivities = fortellis.eleadsalesactivities({
version: "v1",
environment: "test", // can be "test" or "production"
auth,
});
// make a request to the API
const response = await salesactivities.getActivityTypes();
// print the response
console.log(response);