Configure the client using Application Key/Secret
masterTo use Application Key/Secret authentication, you must first create an application on the appropriate OVHcloud portal (Europe, US, North-America, SoYouStart, or Kimsufi) to obtain an appKey (AK) and appSecret (AS).
To authorize your application to access a specific customer account, you need a consumer key (CK). You can request this by calling the /auth/credential endpoint with specific accessRules.
var ovh = require('@ovhcloud/node-ovh')({
endpoint: 'ovh-eu',
appKey: 'YOUR_APP_KEY',
appSecret: 'YOUR_APP_SECRET'
});
// Requesting a consumer key with specific access rules
ovh.request('POST', '/auth/credential', {
'accessRules': [
{ 'method': 'POST', 'path': '/sms/*/jobs'}
]
}, function (error, credential) {
console.log(error || credential);
});