奈良用

function myFunction() {

  const url = "https://api.github.com/repos/denpayanara/rakuten/dispatches";

  let data = { "event_type": "on-demand-test" };

  let options = {
    "method": "POST",
    "headers": {
      "Authorization": "token xxxxxxxxxxxxxxxxxxxx",
      "Content-Type": "application/json"
    },
    "payload": JSON.stringify(data)

  };

  UrlFetchApp.fetch(url, options);
}
import json
import requests

url = "https://api.github.com/repos/denpayanara/rakuten_map/dispatches"

headers = {"Authorization": "token xxxxxxxxxxxxxxxxxxxx", "Content-Type": "application/json"}

json_data = json.dumps({"event_type": "on-demand-test"})

requests.post(url, json_data, headers=headers)