sophos-api-helper
TypeScript icon, indicating that this package has built-in type declarations

0.4.0 • Public • Published

Helper for work with Sophos API

Complete API Documentation Here

Quick Start

import { getTenantInfo, getToken, getEndpoints } from "sophos-api-helper";

const { access_token } = await getToken({
  clientId: USER,
  clientSecret: PASSWORD,
});

const {
  id: tenantId,
  apiHosts: { dataRegion },
} = await getTenantInfo({ token: access_token });

const sophosEndpoints = await getEndpoints({
  accessToken: access_token,
  dataRegion,
  xTenantId: tenantId,
});

Readme

Keywords

Package Sidebar

Install

npm i sophos-api-helper

Weekly Downloads

1

Version

0.4.0

License

MIT

Unpacked Size

100 kB

Total Files

41

Last publish

Collaborators

  • saostad