Skip to content

Latest commit

 

History

History
30 lines (21 loc) · 466 Bytes

README.md

File metadata and controls

30 lines (21 loc) · 466 Bytes

StackPath SDK

A simple SDK to talk to StackPath API.

Getting started

yarn add stackpath-sdk

const Stackpath = require('stackpath-sdk');

async function init() {
  const sp = new Stackpath({
    clientId: '',
    clientSecret: '',
  });

  await sp.auth();

  const ipList = await sp.getIpList();
}

API

Currently there's only support for authentication and getting the IP white list.

sp.auth();

sp.getIpList();