1

API を使用して Pinboard.in からタグのリストを取得しようとしていますが、fetch メソッドを実行するとエラーが発生します。

コードは次のとおりです。

function getTags(user, password) {
  var url ="https://"+user+":"+password+"@api.pinboard.in/v1/tags/get"
  var response=httpGet(url);
  return response;
}
function httpGet(theUrl)
    {
      var options = { "contentType" : "application/xml; charset=utf-8"} ;
      var response = UrlFetchApp.fetch(theUrl,options);
      return response.getContentText();
    }

私が間違っていることは何ですか?

4

1 に答える 1