0.0.17 • Published 8 months ago

@avanio/netvisor-client v0.0.17

Weekly downloads
-
License
ISC
Repository
github
Last release
8 months ago

Netvisor Client for typescript / javascript

This is a library for interacting with Netvisor API. It is currently being developed and all api calls haven't been added

Installation

npm i @avanio/netvisor-client

Usage

Required env variables if EnvironmentConfigProvider is used(You can also pass these directly to ApiProvider):

NETVISOR_CLIENT = 'userchosenname'
NETVISOR_ENV = 'isv'
NETVISOR_USER_KEY = 'keyfromnetvisor'
NETVISOR_PARTNER_KEY = 'partkeyfromemail'
NETVISOR_LANGUAGE = 'FI' // or EN
NETVISOR_ORGANISATION_ID = 'yourregistrationnumber'
NETVISOR_PRIVATE_KEY = 'privatekeyfromnetvisor'
NETVISOR_PARTNER_PRIVATE_KEY = 'partnerkeyfromemail'
import {ApiProvider, resources, EnvironmentConfigProvider} from "@avanio/netvisor-client";

const conf = new EnviromentConfigProvider(); // remember to add all required fields to env if you use EnviromentConfigProvider
const api = new ApiProvider(conf);


const customerRoot = await resources.customer.getCustomerList(api); // request customer list

// print all customers
for(const customer of customerRoot.customers){
	console.log(customers); 
}
0.0.10

10 months ago

0.0.11

10 months ago

0.0.12

10 months ago

0.0.13

10 months ago

0.0.14

10 months ago

0.0.15

8 months ago

0.0.16

8 months ago

0.0.17

8 months ago

0.0.9

11 months ago

0.0.8

11 months ago

0.0.7

11 months ago

0.0.6

11 months ago

0.0.4

11 months ago

0.0.3

11 months ago

0.0.2

11 months ago

0.0.1

11 months ago