0.0.17 • Published 2 years ago

@avanio/netvisor-client v0.0.17

Weekly downloads
-
License
ISC
Repository
github
Last release
2 years 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

2 years ago

0.0.11

2 years ago

0.0.12

2 years ago

0.0.13

2 years ago

0.0.14

2 years ago

0.0.15

2 years ago

0.0.16

2 years ago

0.0.17

2 years ago

0.0.9

2 years ago

0.0.8

2 years ago

0.0.7

2 years ago

0.0.6

2 years ago

0.0.4

2 years ago

0.0.3

2 years ago

0.0.2

2 years ago

0.0.1

2 years ago