Problems using the goo.gl API from google apps script

前端 未结 2 1387
滥情空心
滥情空心 2021-01-06 16:47

I\'m trying to query the goo.gl API from inside a Google Apps Script. The problem I\'m seeing is the following error message:

Request failed for https://www.         


        
2条回答
  •  被撕碎了的回忆
    2021-01-06 17:09

    The documentation says the contentType defaults to 'application/x-www-form-urlencoded'.

    Perhaps try setting the Content-Type with the contentType argument rather than inserting a Content-Type header manually?

提交回复
热议问题