have, but again, it doesnt really do anything usef...
# suitescript
b
have, but again, it doesnt really do anything useful
d
Anything you can share?
b
i dont think i can share large parts of it. but honestly there isnt much code to it
its a simple express server that uses the request module to handle the oauth stuff and uses qs to parse responses
you can probably get by with around 20 lines of code each to implement the 2 routes required to make a simple server that completes the flow
i originally used the request-promise module instead of the regular request since i prefer promises for my node code
if i was doing this again, i probably would not use request since its deprecated
whatever request replacement would probably need to use something similar the oauth-1.0a module to do the ouath stuff. id probably choose node-fetch simply because it would look more like browser code
my code comments suggests that netsuite sucks for requiring trimming of its response before parsing
and that i ignored the role parameter in the oauth header since its not standard
using a lower level tool like oauth-1.0a should allow an ugly solution to adding role to the header