@ovh-kimsufi/hosting-reseller
TypeScript icon, indicating that this package has built-in type declarations

3.1.11 • Public • Published

OVHCloud API client for hosting-reseller region Europe

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

NPM Version

Setup

With npm:

npm install --save @ovh-api/api
npm install --save @ovh-kimsufi/me
npm install --save @ovh-kimsufi/hosting-reseller
... Add all APIs you needs

Usage

import OvhEngine from '@ovh-api/api';
import apiMe from '@ovh-kimsufi/me';
import apiHostingReseller from '@ovh-kimsufi/hosting-reseller';

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

const api = {
    me: apiMe(ovhEngine),
    hostingReseller: apiHostingReseller(ovhEngine),
}

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

Versions

Current Tags

VersionDownloads (Last 7 Days)Tag
3.1.111latest

Version History

VersionDownloads (Last 7 Days)Published
3.1.111
3.1.101
3.1.81
3.1.51
3.1.41
3.1.11

Package Sidebar

Install

npm i @ovh-kimsufi/hosting-reseller

Weekly Downloads

6

Version

3.1.11

License

MIT

Unpacked Size

15.3 kB

Total Files

5

Last publish

Collaborators

  • urielch