Skip to content Skip to sidebar Skip to footer

Google Apps Script - Fetch Data From Third Party Api With Date Parameter

One of my vendors has created an API that I can use to pull data. I'm trying to use google apps script for this as I can easily schedule the data pull on it. I've used the UrlFetch

Solution 1:

Issue:

  • payload(or request body) is missing from the request.

Snippet:

  • You can include payload in options:
  var options = {
    "method" : "POST",
    "contentType" : "application/json",
    "payload": JSON.stringify(dateParams)
  }  

Post a Comment for "Google Apps Script - Fetch Data From Third Party Api With Date Parameter"