Oauth1 Conntection to Netsuite REST API

Hi Everyone,
I am Verry new to Node-red but am loving it. I am working on a project that will take a REST Call from an industrial Device and send the data to Netsuite Rest API using Oauth1.
have the internal Part working but am having a strange issue when I try to connect using the node-red-contrib-oauth1a node. I am setting the parameters in a function node like this

msg.payload = {
    consumerSecret:'...................',
    tokenSecret: '..................',
    url: 'https://........suitetalk.api.netsuite.com/services/rest/record/v1/metadata-catalog/customer',
    httpMethod: 'GET',
    parameters: {
        oauth_consumer_key: '..................',
        oauth_token: '..................',
        oauth_signature_method: 'HMAC-SHA1',
        oAuth_realm: '.......',
        }
};
return msg;

Sorry I have to remove all the information for security reasons as you can all probably understand.
When I test this in Postman I get the correct response were as in node-red I only get an "Error: Request failed with status code 401". the only thing that I can think of is that node-red-contrib-oauth1a is adding the authorization data to Request Body/ Request URL, not the request headers.
@afelix I see you have some experience with Oauth1 can you assist, please?

By the way, I wish I had found Node-Red years ago.

All help is welcomed and much appreciated

Aneets

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.