1.0.2 • Published 1 year ago

@runforesight/foresight-javascript-client v1.0.2

Weekly downloads
-
License
Apache-2.0
Repository
github
Last release
1 year ago

Foresight Javascript Client

Javascript client for programmatically integration with Foresight.

Installation

npm install -g @runforesight/foresight-javascript-client
Local Build

If you want to build your own client.

npm install
npm build

Usage

You can take your APIKEY from Foresight.

APIKEY must be configured like below.

import * as api from 'foresight-client-sdk';

const apiKey = 'ApiKey <YOUR_APIKEY>';
const basePath = 'https://api.service.runforesight.com';

(async() => {
    const projectApi = new api.ProjectsApi(new api.Configuration({
        apiKey,
    }));

    const result = await projectApi.getProjectsUsingGET();
})()
.catch(err => console.error(err));

Issues

For problems directly related to the Client, add an issue on GitHub.

Contributors