test-fortellis
TypeScript icon, indicating that this package has built-in type declarations

0.6.0 • Public • Published

Node.js API Client for Fortellis

This is an unofficial Node.js client for the Fortellis API libraries.

Integrations

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);

Package Sidebar

Install

npm i test-fortellis

Weekly Downloads

0

Version

0.6.0

License

Apache-2.0

Unpacked Size

144 kB

Total Files

55

Last publish

Collaborators

  • xand6r