I am trying to call a restlet in my netsuite account using https.get in javascript. I am facing problem with using right headers. Can anyone tell me thw header format to use oauth 2.0 in java script. I tied this code
var ree = https.get(link, {
oauth:{
consumer_key: consumer_key,
consumer_secret: consumer_secret,
token: token_key,
token_secret: token_secret,
signature_method : 'RSA-SHA1',
},
qs:{user_id: ''} ,
json:true
});
console.log(ree);