mirror of
https://github.com/thegeneralist01/twitter-openapi
synced 2026-01-11 23:50:26 +01:00
Merge branch 'dev'
Signed-off-by: ふぁ <yuki@yuki0311.com>
This commit is contained in:
commit
68e176ec66
6 changed files with 8 additions and 8 deletions
2
dist/compatible/openapi-3.0.yaml
vendored
2
dist/compatible/openapi-3.0.yaml
vendored
|
|
@ -3103,7 +3103,7 @@ components:
|
||||||
type: apiKey
|
type: apiKey
|
||||||
UserAgent:
|
UserAgent:
|
||||||
description: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML,
|
description: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML,
|
||||||
like Gecko) Chrome/112.0.0.0 Safari/537.36
|
like Gecko) Chrome/123.0.0.0 Safari/537.36
|
||||||
in: header
|
in: header
|
||||||
name: user-agent
|
name: user-agent
|
||||||
type: apiKey
|
type: apiKey
|
||||||
|
|
|
||||||
|
|
@ -3103,7 +3103,7 @@ components:
|
||||||
type: apiKey
|
type: apiKey
|
||||||
UserAgent:
|
UserAgent:
|
||||||
description: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML,
|
description: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML,
|
||||||
like Gecko) Chrome/112.0.0.0 Safari/537.36
|
like Gecko) Chrome/123.0.0.0 Safari/537.36
|
||||||
in: header
|
in: header
|
||||||
name: user-agent
|
name: user-agent
|
||||||
type: apiKey
|
type: apiKey
|
||||||
|
|
|
||||||
2
dist/docs/openapi-3.0.yaml
vendored
2
dist/docs/openapi-3.0.yaml
vendored
|
|
@ -3103,7 +3103,7 @@ components:
|
||||||
type: apiKey
|
type: apiKey
|
||||||
UserAgent:
|
UserAgent:
|
||||||
description: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML,
|
description: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML,
|
||||||
like Gecko) Chrome/112.0.0.0 Safari/537.36
|
like Gecko) Chrome/123.0.0.0 Safari/537.36
|
||||||
in: header
|
in: header
|
||||||
name: user-agent
|
name: user-agent
|
||||||
type: apiKey
|
type: apiKey
|
||||||
|
|
|
||||||
|
|
@ -11,7 +11,7 @@ paths:
|
||||||
required: true
|
required: true
|
||||||
schema:
|
schema:
|
||||||
type: string
|
type: string
|
||||||
default: "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/112.0.0.0 Safari/537.36"
|
default: "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/123.0.0.0 Safari/537.36"
|
||||||
description: "UserAgent, some APIs may be rejected if changed."
|
description: "UserAgent, some APIs may be rejected if changed."
|
||||||
- name: authorization
|
- name: authorization
|
||||||
in: header
|
in: header
|
||||||
|
|
@ -121,7 +121,7 @@ paths:
|
||||||
components:
|
components:
|
||||||
securitySchemes:
|
securitySchemes:
|
||||||
UserAgent:
|
UserAgent:
|
||||||
description: "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/112.0.0.0 Safari/537.36"
|
description: "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/123.0.0.0 Safari/537.36"
|
||||||
in: header
|
in: header
|
||||||
name: user-agent
|
name: user-agent
|
||||||
type: apiKey
|
type: apiKey
|
||||||
|
|
|
||||||
|
|
@ -7,9 +7,9 @@ import os
|
||||||
import time
|
import time
|
||||||
import traceback
|
import traceback
|
||||||
import warnings
|
import warnings
|
||||||
|
from enum import Enum
|
||||||
from pathlib import Path
|
from pathlib import Path
|
||||||
|
|
||||||
from enum import Enum
|
|
||||||
import openapi_client as pt
|
import openapi_client as pt
|
||||||
|
|
||||||
warnings.filterwarnings("ignore")
|
warnings.filterwarnings("ignore")
|
||||||
|
|
@ -219,7 +219,7 @@ if __name__ == "__main__":
|
||||||
api_conf.access_token = "AAAAAAAAAAAAAAAAAAAAANRILgAAAAAAnNwIzUejRCOuH5E6I8xnZz4puTs%3D1Zv7ttfk8LF81IUq16cHjhLTvJu4FA33AGWWjCpTnA"
|
api_conf.access_token = "AAAAAAAAAAAAAAAAAAAAANRILgAAAAAAnNwIzUejRCOuH5E6I8xnZz4puTs%3D1Zv7ttfk8LF81IUq16cHjhLTvJu4FA33AGWWjCpTnA"
|
||||||
|
|
||||||
api_client = pt.ApiClient(configuration=api_conf, cookie=cookies_str)
|
api_client = pt.ApiClient(configuration=api_conf, cookie=cookies_str)
|
||||||
api_client.user_agent = "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/112.0.0.0 Safari/537.36"
|
api_client.user_agent = "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/123.0.0.0 Safari/537.36"
|
||||||
|
|
||||||
error_count = 0
|
error_count = 0
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -33,7 +33,7 @@ if __name__ == "__main__":
|
||||||
)
|
)
|
||||||
api_conf.access_token = "AAAAAAAAAAAAAAAAAAAAANRILgAAAAAAnNwIzUejRCOuH5E6I8xnZz4puTs%3D1Zv7ttfk8LF81IUq16cHjhLTvJu4FA33AGWWjCpTnA"
|
api_conf.access_token = "AAAAAAAAAAAAAAAAAAAAANRILgAAAAAAnNwIzUejRCOuH5E6I8xnZz4puTs%3D1Zv7ttfk8LF81IUq16cHjhLTvJu4FA33AGWWjCpTnA"
|
||||||
api_client = pt.ApiClient(configuration=api_conf, cookie=cookies_str)
|
api_client = pt.ApiClient(configuration=api_conf, cookie=cookies_str)
|
||||||
api_client.user_agent = "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/112.0.0.0 Safari/537.36"
|
api_client.user_agent = "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/123.0.0.0 Safari/537.36"
|
||||||
|
|
||||||
pt.TweetApi(api_client).get_user_tweets_with_http_info(
|
pt.TweetApi(api_client).get_user_tweets_with_http_info(
|
||||||
**get_kwargs("UserTweets", {}),
|
**get_kwargs("UserTweets", {}),
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue