3.1.1 • Published 4 years ago

@ovh-api/paas-timeseries v3.1.1

Weekly downloads
20
License
MIT
Repository
github
Last release
4 years ago

Use Ovh's Apis with TypeScript

  • NPM Version Api engine
  • NPM Version All api helper have the same version
  • NPM Version ovh-vps-config-failover Configure the IP failover of your vps
  • NPM Version ovh-bill-importer Import all ovh billing data

Samples

Find all samples here

Interactive mode with no Credential

Print account information of your OVH-account

import ApiMe from '@ovh-api/me';
import Ovh from '@ovh-api/api';

const ovh = new Ovh({accessRules: 'GET /ip'});
const api = ApiMe(ovh);
api.get('/me').then(console.log)
// or
api.$get().then(console.log)

You will be asked to authorized an new issued certificat.

Same thing With credential with a certificate

Create your first application tokens here: here

import ApiMe from '@ovh-api/me';
import Ovh from '@ovh-api/api';

const config = {
    appKey: String(process.env.APP_KEY),
    appSecret: String(process.env.APP_SECRET),
    consumerKey: String(process.env.CONSUMER_KEY)
};
const ovh = new Ovh(config);
const api = ApiMe(ovh);
api.get('/me').then(console.log);
// or
api.$get().then(console.log);

For more samples see samples

3.1.1

4 years ago

3.1.0

4 years ago

3.0.1

4 years ago

3.0.0

4 years ago

2.0.13

4 years ago

2.0.12

4 years ago

2.0.7

5 years ago

2.0.6

5 years ago

2.0.4

5 years ago

2.0.2

5 years ago

2.0.0

5 years ago

1.2.4

5 years ago

1.2.3

5 years ago

1.2.2

5 years ago

1.2.1

5 years ago

1.2.0

5 years ago

1.0.0

5 years ago

0.1.0

5 years ago

0.0.5

5 years ago