php - Cannot create token for the application in Netsuite? -
i have created many applications in netsuite. token applications. not token applications.
when try token, got blank message. though tried find reason, don't know why happening.
https://system.netsuite.com/rest/roles';
$access_token ='nlauth_account=xxxxxxx, nlauth_email=admin@example.com, nlauth_signature=password'; $header = array('content-type: application/json','authorization : nlauth '.$access_token); $ch = curl_init(); curl_setopt($ch, curlopt_url, $url); curl_setopt($ch, curlopt_returntransfer, true); curl_setopt($ch, curlopt_customrequest, 'get'); curl_setopt($ch, curlopt_httpheader,$header) ; curl_setopt($ch, curlopt_ssl_verifypeer, false); $result = curl_exec($ch); curl_close($ch); $result = json_decode($result, true); echo '<pre>';print_r($result);exit; i have 1 difference between success,failed response , empty response. success , failed resposes having account id 6char + 7digits on 1 account(demo version)
empty response having account id 7 digits on different account (paid account).
i verified in netsuite. everthing good. not error message.
the url different paid account. have used url of test drive account (tstdrv).
test drive demo (tstdrv) account - system.na1.netsuite.com paid account - rest.netsuite.com
Comments
Post a Comment