Discussions
Narrative Insights is Temporarily Unavailable due to an Infrastructure Issue. Learn how This Impacts Your Account and What to Expect While the Feature is Disabled.
OAuth PowerShell RESTlet Working Script Example
I have worked long and hard on this, enjoy.
################################################## #################
#
# Sample_Netsuite_OAuth Script Using PowerShell.
# Created by Bob Caputo and Joshua Tellander.
# Use and revise as needed.
# No warranty or license is included.
# We will attempt to answer questions,
# we do not guarantee answers in a timely
# manner if at all.
#
# NetSuite declined to help because it is a
# PowerShell script and therefore
# "out of our scope", per service case.
#
# Have fun!!!!!!!
#
################################################## #################
[Reflection.Assembly]::LoadWithPartialName("System.Security")
[Reflection.Assembly]::LoadWithPartialName("System.Net")
[Reflection.Assembly]::LoadWithPartialName("System.Web")
[Reflection.Assembly]::LoadWithPartialName("System.IO")
$oauth_consumer_secret = "xxx";
$oauth_token_secret = "xxx";