📜  url fetch app pass payload 和 headers - Javascript 代码示例

📅  最后修改于: 2022-03-11 15:01:30.055000             🧑  作者: Mango

代码示例1
var options =
{
  "method" : "post",
  "contentType" : "application/json",
  "headers" : {
    "Authorization" : "Basic "  
  },
  "payload" : '{ "endDate": "2012-06-03" }'
};

UrlFetchApp.fetch(YOURURL,options)