0.1.2 • Published 3 years ago

sophos v0.1.2

Weekly downloads
169
License
MIT
Repository
github
Last release
3 years ago

Sophos API Wrapper

Typescript wrapper for Sophos's API.

Getting Started

You can install the package with the following command:

npm install sophos

You must import the package and pass in the clientId and clientSecret from Sophos to the constructor:

const Sophos = require('sophos')

const sophos = new Sophos({
  clientId: "332....",
  clientSecret: "2333..."
}) 

You can also pass in your partnerId, if using getTenants():

const Sophos = require('sophos')

const sophos = new Sophos({
  clientId: "332....",
  clientSecret: "2333...",
  partnerId: "zh67.."
}) 

Usage

Get all Tenants as Partner

await sophos.getTenants()

Get All Endpoints from Tenant

await sophos.getEndpoints(tenantId, tenantApiHost)
0.1.2

3 years ago

0.1.1

4 years ago

0.1.0

4 years ago

0.0.4

5 years ago

0.0.3

5 years ago

0.0.2

5 years ago

0.0.1

5 years ago

0.0.0

5 years ago