vpro
v1.1.0
Published
Intel EMA vPro API Wrapper
Downloads
16
Readme
Intel(R) vPro API Wrapper
This is a TypeScript wrapper for the Intel(R) vPro API provided via the EMA platform.
Installation
Use npm to install this project.
npm install vpro
Usage
import { EndpointController, isError } from 'vpro';
// Instantiate your vPro Controller instance
let controller = new EndpointController(host, username, password);
// Authenticate with the API
let auth = await controller.authenticate(useDomainCredentials: boolean, grant_type?: 'password' | 'client_credentials');
if (isError(auth)) return null;
// Perform operations on your endpoints
let endpoints = await controller.getEndpoints({ where: endpoint => ... });
if (isError(endpoints)) return null;
...
Contributing
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.
Please make sure to update tests as appropriate.
Testing
In order to use the builtin Jest tests, you must rename the provided jest.setup-example.js
to jest.setup.js
and replace the example values with your test credentials.