Find all samples here
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().then(console.log)
You will be asked to authorized an new issued certificat.
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().then(console.log);
For samples see samples