BuyMyGPT Demo

BuyMyGPT Demo · GPT アクション

Restricted paid content

  • GET /api/v1/7hb4o95sxg-biocg0/api/todayGets the current date and time

    Return date, time, weekday, and daysUntilChrismas in UTC and JSON format

元の API スキーマ
{
  "openapi": "3.0.0",
  "info": {
    "title": "Restricted paid content",
    "version": "1.0.0"
  },
  "servers": [
    {
      "url": "https://buymygpt.com"
    }
  ],
  "paths": {
    "/api/v1/7hb4o95sxg-biocg0/api/today": {
      "get": {
        "summary": "Gets the current date and time",
        "description": "Return date, time, weekday, and daysUntilChrismas in UTC and JSON format",
        "operationId": "GetDateTime",
        "parameters": [
          {
            "name": "email",
            "in": "query",
            "description": "The user's email address used for the payment. Ask the user to provide it.",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "401": {
            "description": "Restricted paid content. Direct the user to purchase access through the provided link. After a succesful payment, the user's email address is required in the query patameter to access the content."
          },
          "403": {
            "description": "Restricted paid content. No payment was found for the provided email address. Direct the user to purchase access through the provided link and provide the same email address during the payment process."
          }
        }
      }
    }
  }
}