确定执行UrlFetchApp调用的节点的IP地址 [英] Determining the IP address of the node that executes the UrlFetchApp call
问题描述
对于通过Google Apps脚本中的UrlFetchApp进行的Web API调用,我必须提交HTTP客户端IP(通过HTTP-GET)进行认证(namecheap.com API)。
For a Web API call via UrlFetchApp in a Google Apps Script I have to submit the HTTP client IP (via HTTP-GET) for authentification (namecheap.com API).
有没有一种方法可以确定将执行UrlFetchApp调用的节点的IP地址,以便将其添加到查询URL?
Is there a way to determine the IP address of the node that will execute the UrlFetchApp call for adding it to the query URL?
推荐答案
不,这是不可能的。但是,Google确实会为您提供一系列IP地址,通过该IP地址进行呼叫。请参阅 https://developers.google.com/apps-script/jdbc#accessing
No, it is not possible. However, Google does provide you with a range of IP addresses through which the call will be made. See https://developers.google.com/apps-script/jdbc#accessing
这篇关于确定执行UrlFetchApp调用的节点的IP地址的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!