YASSER
12/31/2024, 10:28 AMCeligo AI
12/31/2024, 10:28 AMAI generated answer (using internal Slack threads):To add the parameter 'realm' into your OAuth signature generation with your account ID as the value, you need to include it in your OAuth parameters. The 'realm' parameter is used to specify the account ID that you are trying to access. Here is a general example of how you might include it:
javascript
var oauth = new OAuth({
consumer: {
key: 'yourConsumerKey',
secret: 'yourConsumerSecret'
},
signature_method: 'HMAC-SHA1',
hash_function: function(base_string, key) {
return crypto.createHmac('sha1', key).update(base_string).digest('base64');
}
});
var request_data = {
url: '<https://rest.netsuite.com/app/site/hosting/restlet.nl?script=customscript_restlet&deploy=1>',
method: 'GET',
data: {
format: 'json'
}
};
var token = {
key: 'yourTokenKey',
secret: 'yourTokenSecret'
};
var realm = 'yourAccountID';
oauth.authorize(request_data, token, realm);
In this example, 'yourAccountID' should be replaced with your actual account ID.
If you are trying to access a sandbox account, you should append '_SB1' to your account ID. For example, if your account ID is '123456', you should use '123456_SB1' as the realm.
******
Disclaimer:
This response was generated by an artificial intelligence assistant based on previous conversations from multiple Slack channels, and may contain inaccuracies or mistakes.
******Celigo AI
12/31/2024, 10:28 AMSlack thread 1: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.858114958
Slack thread 2: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.800052166
Slack thread 3: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.793773
Celigo AI
12/31/2024, 10:28 AM