UrlFetchApp.fetch(url)Apps Script でメソッドを使用して、Google Groups Settings API を使用してグループ リソースにパッチを適用しようとしています。
以下のコードを使用すると、グループのプロパティを取得できますが、PATCH 要求の構文がわかりません。
function doSomething (accessToken) {
var options = {
method: "GET",
headers: {
authorization: "Bearer " + accessToken
},
};
var result = UrlFetchApp.fetch("https://www.googleapis.com/groups/v1/groups/test_group_5@student.vis.ac.at", options);
return HtmlService.createHtmlOutput (result.getContentText());
}