Google Apps Script - Get IP of doPost and track in

2019-02-26 09:33发布

问题:

is there an easy way to capture the IP of a doPost(e) request and store it with the incoming values of the POST as to track the origin of the request?

It does not seem to be available via e.parameter.

I cannot find a complete list of the other properties or methods of e.

回答1:

There is no way today to get the IP Address or the User Agent of the incoming request in doGet or doPost. Please log an enhancement request in our Issue Tracker along with details of your use case.