my ultimate situation is related to using OAuth li...
# suitescript
s
my ultimate situation is related to using OAuth lib in a SS2 script. @Hubert was kind enough to share a flavor of OAuth.js that is written as an AMD module, but I had another claimed working example where the OAuth.js used was NOT an AMD module e.g. it started with:
Copy code
if (typeof (module) !== 'undefined' && typeof (exports) !== 'undefined') {
  module.exports = OAuth;
}

/**
 * Constructor
 * @param {Object} opts consumer key and secret
 */
function OAuth(opts) {
  if (!(this instanceof OAuth)) {
    return new OAuth(opts);
  }