问题描述
我是 Netsuite 的新手。
我在 AWS 上托管了一个应用程序。这个应用程序有一个 REST API 接口。 我想调用我的应用程序/REST API 来自 Netsuite。到目前为止,我看到的所有文档都指向另一种方式,即调用 托管在 Netsuite 上的 REST API。
如果您能指出正确的方向,即从 Netsuite 脚本调用托管在 Netsuite 外部的 Web 服务端点,我将不胜感激。
非常感谢。
解决方法
查看 N/https
SuiteScript 模块。
var response = https.get({
url: 'https://earthquake.usgs.gov/fdsnws/event/1/query?format=geojson&starttime=2021-04-01&endtime=2021-04-30'
});