我一直在尝试使用 webhook 通过 Exporter.send 方法将文件导出到 URL。导出已成功,因为它们已发送到我的电子邮件中。但是,我在线使用 webhook 服务,即使导出内容发送到我的电子邮件,它也没有注册任何对 URL 的 ping。
这是我使用的代码,基本上是直接从文档中提取的。
dronedeployApi.Exporter.send({
layer: 'NDVI Toolbox',
email: emails,
file_format: 'geotiff',
merge: mergeCheckbox.checked ? true : false,
projection: projectionValue.value,
resolution: resolutionValue.value === 0 ? 'native' : resolutionValue.value,
webhook: {
url: 'http://webhook.site/3d10872c-a56e-4b2b-aa3b-b8c0334e8f5f'
}
})
.then(function(exportId) {
dronedeployApi.Messaging.showToast('NDVI export successful!', {
timeout: -1
});
},
function(error) {
dronedeployApi.Messaging.showToast(error, {
timeout: -1
});
}
);
对可能出了什么问题的想法?谢谢!