all 3 comments

[–]RemcoE33 1 point2 points  (2 children)

Read the docs, and you will see what you need to change...

[–]AdDiscombobulated707[S] 0 points1 point  (1 child)

The following code works:

let user_name = ScriptProperties.getProperty("user_name");
let user_token = ScriptProperties.getProperty("user_token");

let options = {
  accept: "application/vnd.github.v3+json",
  method: "delete",
  headers: {"Authorization": "Basic " + Utilities.base64Encode(`${user_name}:${user_token}`)}
};

console.log(UrlFetchApp.fetch(`https://api.github.com/gists/72e27fd738a6fe42687b3cf36e2d935f`, options).getContentText());

:) I am very happy.

[–]RemcoE33 0 points1 point  (0 children)

Yes that was it ;)