Reply2Tweets

Reply2Tweets · GPT 작업

Reply2Tweets API

API to retrieve single tweet And push URLs

  • GET /api/tweet/{id}Get tweet
  • POST /api/rCheck a reply
원본 API 스키마
{
  "openapi": "3.0.0",
  "info": {
    "title": "Reply2Tweets API",
    "version": "1.0.0",
    "description": "API to retrieve single tweet And push URLs"
  },
  "servers": [
    {
      "url": "https://reply2tweets.vercel.app"
    }
  ],
  "paths": {
    "/api/tweet/{id}": {
      "get": {
        "summary": "Get tweet",
        "operationId": "getTweet",
        "parameters": [
          {
            "in": "path",
            "name": "id",
            "schema": {
              "type": "string"
            },
            "required": true,
            "description": "Tweet id"
          }
        ],
        "responses": {
          "200": {
            "description": "Tweet content",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "type": "string",
                      "description": "JSON string describing the tweet"
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/api/r": {
      "post": {
        "summary": "Check a reply",
        "operationId": "checkReply",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "id": {
                    "type": "string",
                    "example": 123556
                  },
                  "content": {
                    "type": "string",
                    "example": "Hello world"
                  }
                },
                "required": [
                  "id",
                  "content"
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "done",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "url": {
                      "type": "string",
                      "description": "url for details"
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}