3.1.1 • Published 5 years ago
@ovh-api/paas-timeseries v3.1.1
Use Ovh's Apis with TypeScript
Api engine
All api helper have the same version
ovh-vps-config-failover Configure the IP failover of your vps
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
5 years ago
3.1.0
5 years ago
3.0.1
5 years ago
3.0.0
5 years ago
2.0.13
5 years ago
2.0.12
6 years ago
2.0.7
6 years ago
2.0.6
6 years ago
2.0.4
6 years ago
2.0.2
6 years ago
2.0.0
6 years ago
1.2.4
6 years ago
1.2.3
6 years ago
1.2.2
6 years ago
1.2.1
6 years ago
1.2.0
6 years ago
1.0.0
6 years ago
0.1.0
6 years ago
0.0.5
6 years ago