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.
The documentation says the contentType defaults to 'application/x-www-form-urlencoded'.
contentType
Perhaps try setting the Content-Type with the contentType argument rather than inserting a Content-Type header manually?
Content-Type