2017-05-13 82 views

回答

3

這裏做一個GET到的Restlet最簡單的方法:

var headers = {}; 
headers["Authorization"] = 'NLAuth nlauth_account=TSTDRVXXXXX, [email protected], nlauth_signature=XXXXXXX, nlauth_role=3'; 
headers["contentType"] = 'application/json'; 

var url = 'https://rest.na1.netsuite.com/app/site/hosting/restlet.nl?script=xxxx&deploy=xxx'; 

var response = nlapiRequestURL(url, null, headers); 
相關問題