This topic contains 7 replies, has 0 voices, and was last updated by chanarbon 8 years, 1 month ago.
-
AuthorPosts
-
October 18, 2016 at 12:58 pm #6068
madhurHi Everyone,
Does any have any idea on how to do AWS Signing in NetSuite Using Plain Java Script and we cant use the AWS library.
Regards,
Madhur
This is a cached copy. Click here to see the original post. -
October 18, 2016 at 1:21 pm #6069
david.smithWhy can’t you use the AWS library? It might be easiest to use the HTML library but the Node.js library should work too.
http://docs.aws.amazon.com/AWSJavaSc…ser-intro.html
-
October 18, 2016 at 5:17 pm #6070
madhurThe issue is we are not doing it via Suitelet so that we can use the External Library. We are doing it Via Rest API and in REST API we cant use an external library.
-
October 18, 2016 at 5:41 pm #6071
david.smithWhy can’t you use an external library on REST? That’s not a limitation from NetSuite’s API.
-
October 18, 2016 at 9:22 pm #6072
madhurWe can use a .js file in library but in the aws-sdk-2.6.10.min.js we dont know which particular Method will generate the Signature for us. Can you please help us in identify the Method name which will generate the signature , which we can use in order to connect to AWS.
-
October 19, 2016 at 1:50 am #6073
chanarbonHi @madhur,
Pretty much the AWS API is documented. Please read http://docs.aws.amazon.com/AmazonS3/…ticationHeader. Performing the request requires the request to have an Authorization header with their specification and is purely possible using SuiteScript. Performing message hash-based message authentication algorithm would be possible by adding a library to your script to create the authorization header that is required.
-
October 20, 2016 at 8:39 am #6074
ironsideWe just use the aws sdk serverside in NetSuite. Doesn’t matter what sort of script it is (suitelet, restlet, etc.)
-
October 20, 2016 at 11:04 am #6075
chanarbonI agree with ironside . There shouldn’t be any problem with the SDK to begin with since you can just add with with the libraries in the code. BUt if you do not want to use the SDK, the link provided on the previous details in this thread will help you compose your own header from scratch
-
AuthorPosts
You must be logged in to reply to this topic.