1
Fork 0
mirror of https://github.com/thegeneralist01/twitter-openapi synced 2026-01-11 15:40:26 +01:00

Merge branch 'main' of github.com:fa0311/twitter-openapi

Signed-off-by: ふぁ <yuki@yuki0311.com>
This commit is contained in:
ふぁ 2023-08-09 17:00:50 +09:00
commit c3a9dbe700
No known key found for this signature in database
GPG key ID: 83A8A5E74872A8AA
8 changed files with 20 additions and 15 deletions

View file

@ -135,11 +135,13 @@ security:
servers:
- url: https://twitter.com/i/api
tags:
- description: response User
- description: Responses containing User objects.
name: user
- description: response User list
- description: Responses containing List[User] objects.
name: users
- description: Responses containing instruction objects.
name: user-list
- description: response tweet
- description: Responses containing instruction objects.
name: tweet
- description: post
name: post

View file

@ -230,4 +230,4 @@ paths:
schema:
type: string
tags:
- user
- users

View file

@ -135,11 +135,13 @@ security:
servers:
- url: https://twitter.com/i/api
tags:
- description: response User
- description: Responses containing User objects.
name: user
- description: response User list
- description: Responses containing List[User] objects.
name: users
- description: Responses containing instruction objects.
name: user-list
- description: response tweet
- description: Responses containing instruction objects.
name: tweet
- description: post
name: post

View file

@ -335,4 +335,4 @@ paths:
schema:
type: string
tags:
- user
- users

View file

@ -56,11 +56,13 @@ security:
- AuthType: []
tags:
- name: user
description: response User
description: Responses containing User objects.
- name: users
description: Responses containing List[User] objects.
- name: user-list
description: response User list
description: Responses containing instruction objects.
- name: tweet
description: response tweet
description: Responses containing instruction objects.
- name: post
description: post
- name: v1.1-get

View file

@ -50,7 +50,7 @@ paths:
- $ref: "#/components/schemas/UsersResponse"
- $ref: "./../schemas/error.yaml#/components/schemas/Errors"
tags:
- "user"
- "users"
components:
schemas:

View file

@ -3,7 +3,6 @@ import os
import logging
import base64
import openapi_client as pt
from pydantic import BaseModel
from pathlib import Path
import time
@ -91,7 +90,7 @@ api_client.user_agent = "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/5
error_count = 0
for x in [pt.DefaultApi, pt.TweetApi, pt.UserApi, pt.UserListApi]:
for x in [pt.DefaultApi, pt.TweetApi, pt.UserApi, pt.UsersApi, pt.UserListApi]:
for props, fn in x.__dict__.items():
if not callable(fn):
continue

View file

@ -39,7 +39,7 @@ class Config:
AddPathQueryIdOnParameters(split=-1),
getParamHook,
]
for key in ["default", "user", "user-list", "tweet"]
for key in ["default", "user", "users", "user-list", "tweet"]
}
| {
key: [