0.5.1 • Published 12 months ago

fortellis v0.5.1

Weekly downloads
-
License
Apache-2.0
Repository
github
Last release
12 months ago

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

12 months ago

0.5.0

12 months ago

0.4.0

12 months ago

0.5.1

12 months ago

0.2.0

1 year ago

0.1.2

1 year ago

0.1.1

1 year ago

0.1.0

1 year ago