Global Chat Connect

Global Chat Connect · GPT アクション

User Register API

API for sending name and password for register.

  • POST /macros/s/AKfycbzjAQ-dxPKZH1DlH1Ea9EoiQ5E1JBrO6yE7juNE-pQBc0gmZ6gf_43_oJm55QpJ7cqy/execregister User
  • POST /macros/s/AKfycbxB9qlqy6UJV7oi-UvG0S9VFNXtmhAxUcFwqI9lplQvayBoa545chbAWR_DJij5fqnORw/execLogin User
  • POST /macros/s/AKfycbz4zcTQzlxl7uBw2c19BOs5Xr-aLJF74RReOtVXekg91O0vqCx-bTgh31fc7sle-rECzA/execSend Message
  • POST /macros/s/AKfycbyOfxJlI_GEAzwtoEqA7kW8k-00-fVvXSoxr4rfd5gpAU37r7lnqHKYw5juHcwNVm9mpg/execReceive Message
  • POST /macros/s/AKfycbyE59IUelS9qk3IlI8ZaBkiaF-Ujxdy1gwzWuA_Lrzv8tG-pDpR7N9WgT0-J6FPNzHf/execReply to Message
元の API スキーマ
{
  "openapi": "3.0.0",
  "info": {
    "version": "1.0.0",
    "title": "User Register API",
    "description": "API for sending name and password for register."
  },
  "servers": [
    {
      "url": "https://script.google.com"
    }
  ],
  "paths": {
    "/macros/s/AKfycbzjAQ-dxPKZH1DlH1Ea9EoiQ5E1JBrO6yE7juNE-pQBc0gmZ6gf_43_oJm55QpJ7cqy/exec": {
      "post": {
        "summary": "register User",
        "operationId": "RegisterUser",
        "tags": [
          "user"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "required": [
                  "name",
                  "password"
                ],
                "properties": {
                  "name": {
                    "type": "string"
                  },
                  "password": {
                    "type": "string"
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Register successful",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "message": {
                      "type": "string"
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/macros/s/AKfycbxB9qlqy6UJV7oi-UvG0S9VFNXtmhAxUcFwqI9lplQvayBoa545chbAWR_DJij5fqnORw/exec": {
      "post": {
        "summary": "Login User",
        "operationId": "LoginUser",
        "tags": [
          "user"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "required": [
                  "name",
                  "password"
                ],
                "properties": {
                  "name": {
                    "type": "string"
                  },
                  "password": {
                    "type": "string"
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Login successful",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "token": {
                      "type": "string"
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/macros/s/AKfycbz4zcTQzlxl7uBw2c19BOs5Xr-aLJF74RReOtVXekg91O0vqCx-bTgh31fc7sle-rECzA/exec": {
      "post": {
        "summary": "Send Message",
        "operationId": "SendMessage",
        "tags": [
          "user"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "required": [
                  "token",
                  "message"
                ],
                "properties": {
                  "token": {
                    "type": "string"
                  },
                  "message": {
                    "type": "string"
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Message sent successfully",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "response": {
                      "type": "string"
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/macros/s/AKfycbyOfxJlI_GEAzwtoEqA7kW8k-00-fVvXSoxr4rfd5gpAU37r7lnqHKYw5juHcwNVm9mpg/exec": {
      "post": {
        "summary": "Receive Message",
        "operationId": "ReceiveMessage",
        "tags": [
          "user"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "required": [
                  "token"
                ],
                "properties": {
                  "token": {
                    "type": "string"
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Message received successfully",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "message": {
                      "type": "string"
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/macros/s/AKfycbyE59IUelS9qk3IlI8ZaBkiaF-Ujxdy1gwzWuA_Lrzv8tG-pDpR7N9WgT0-J6FPNzHf/exec": {
      "post": {
        "summary": "Reply to Message",
        "operationId": "ReplyMessage",
        "tags": [
          "user"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "required": [
                  "token",
                  "receivername",
                  "content"
                ],
                "properties": {
                  "token": {
                    "type": "string"
                  },
                  "receivername": {
                    "type": "string"
                  },
                  "content": {
                    "type": "string"
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Message replied successfully",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "status": {
                      "type": "string"
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}