Discussions
Join the NetSuite community to innovate, connect, and discover what’s next.
SuiteWorld brings thousands of innovators, builders, and leaders together to learn, connect, and shape what’s next. This October, explore how to build a stronger foundation for growth through inspiring keynotes, major product reveals, hands-on sessions, and unforgettable moments—all in one place for our biggest event of the year. Register now
PERL RESTLet API (using SuiteTalk 2.0, not WebService::NetSuite)
All FYI:
I am experimenting with connecting PERL to NetSuite using RESTLets: the early results are extremely encouraging. Here is all that was required on the PERL side:
----------------------------------------
#!/usr/local/bin/perl
use 5.14.0;
use Mojo::UserAgent;
my $ua = Mojo::UserAgent->new;
my $url = 'https://rest.na2.netsuite.com/app/site/hosting/restlet.nl?'.
'script=97&deploy=1';
my $auth = 'NLAuth nlauth_account=TSTDRVxxxx, '.
'nlauth_email=ss2.xxxxx@netsuite.com, '.
'nlauth_signature=training1, '.
'nlauth_role=3';
say $ua->get($url => {Authorization => $auth})->res->body;
--------------------------------------
and here is the RESTLet: