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:
--------------------------------------
/**
* @NApiVersion 2.x
* @NScriptType Restlet
* @NModuleScope SameAccount
*/
define([],
function() {
function doGet(requestParams) {
return 'Hello Dale';
}
return {
'get': doGet,
};
});
---------------------------------------
I would be intereted in sharing code and help with anyone else interested in this approach. (It looks to me like a whole lot of general functionality could be coded in a rather small RESTLet this way).
--Dale Johnson, Merit Network, Inc.