rou
@ovh-api-ca/router
npm i @ovh-api-ca/router
rou

@ovh-api-ca/router

a TypeScript helper to use OVH API

by Uriel Chemouni

3.1.11 (see all)License:MITTypeScript:Built-In
npm i @ovh-api-ca/router
Readme

OVHCloud API client for router region Canada

This module contains all typing needed to use OvhCloud router APIs, with hi-level IntelliSense / Code Completion

NPM Version

Setup

With npm:

npm install --save @ovh-api/api
npm install --save @ovh-api-ca/me
npm install --save @ovh-api-ca/router
... Add all APIs you needs

Usage

import OvhEngine from '@ovh-api/api';
import apiMe from '@ovh-api-ca/me';
import apiRouter from '@ovh-api-ca/router';

const ovhEngine = new OvhEngine({ 
    certCache: './cert-cache.json', // optional cache certificat on disk.
    accessRules: 'GET /router, GET /router/*, GET /me', // optional limit the requested privileges.
});

const api = {
    me: apiMe(ovhEngine),
    router: apiRouter(ovhEngine),
}

const test = async () => {
    const { nichandle } = await api.me.$get();
    const data = await api.router.$get();
    console.log(`${nichandle} have the following services:`);
    console.log(data);
}

Downloads/wk

1

GitHub Stars

11

LAST COMMIT

8mos ago

MAINTAINERS

1

CONTRIBUTORS

3

OPEN ISSUES

0

OPEN PRs

1
VersionTagPublished
3.1.11
latest
2yrs ago
No alternatives found
No tutorials found
Add a tutorial
No dependencies found

Rate & Review

100
No reviews found
Be the first to rate