@vcsuite/planner-sdk
v4.7.2
Published
This package is an auto generated API to access the vcPUBLISHERs REST API. It uses the planner OpenAPI document to generate a web & node SDK. For usage with node, you must have `node-fetch` installed as a dependency.
Downloads
152
Readme
@vcsuite/planner-sdk
This package is an auto generated API to access the vcPUBLISHERs REST API.
It uses the planner OpenAPI document to generate a web & node SDK. For usage with
node, you must have node-fetch
installed as a dependency.
Installation
For use in a web app: npm i @vcsuite/planner-sdk
. For use in a node app: npm i node-fetch @vcsuite/planner-sdk
;
Usage
import * as api from '@vcsuite/planner-sdk';
api.setServerUrl('http://localhost:3000');
const { _id: userId, token } = await api.postLogin({
username: 'admin',
password: 'admin123',
});
api.authorize(token);
const projects = await api.postProjectGet({});
For more examples, see the integration tests.