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: servers:
- url: https://twitter.com/i/api - url: https://twitter.com/i/api
tags: tags:
- description: response User - description: Responses containing User objects.
name: user name: user
- description: response User list - description: Responses containing List[User] objects.
name: users
- description: Responses containing instruction objects.
name: user-list name: user-list
- description: response tweet - description: Responses containing instruction objects.
name: tweet name: tweet
- description: post - description: post
name: post name: post

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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