我正在尝试通过 Magento API 将信息从 Netsuite 发送到 Magento。在正常情况下,我执行
$user = 'user';
$pass = 'password';
$url = 'http://example.hosting.com/magento/api/soap/?wsdl';
$webClient = new SoapClient($url);
$webSession = $webClient->login($user, $pass);
$result = $webClient->call($webSession, 'ApiMethod', 'data');
购买 我不明白如何在 Netsuite 脚本中制作它。我找到了一个方法 nlapiRequestURL,但我不明白如何进行登录和发送会话。
谢谢。