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

add priority

Signed-off-by: ふぁ <yuki@yuki0311.com>
This commit is contained in:
ふぁ 2024-11-02 04:56:40 +09:00
parent 3de1deeb8b
commit ee720eb82f
No known key found for this signature in database
GPG key ID: 83A8A5E74872A8AA
2 changed files with 7 additions and 0 deletions

View file

@ -34,6 +34,11 @@ components:
in: header in: header
name: Accept-Language name: Accept-Language
type: apiKey type: apiKey
Priority:
description: "u=1, i"
in: header
name: Priority
type: apiKey
Referer: Referer:
description: "https://x.com/home" description: "https://x.com/home"
in: header in: header
@ -133,6 +138,7 @@ security:
- Accept: [] - Accept: []
- AcceptEncoding: [] - AcceptEncoding: []
- AcceptLanguage: [] - AcceptLanguage: []
- Priority: []
- Referer: [] - Referer: []
- SecChUa: [] - SecChUa: []
- SecChUaMobile: [] - SecChUaMobile: []

View file

@ -255,6 +255,7 @@ if __name__ == "__main__":
"sec-ch-ua-platform": '"Windows"', "sec-ch-ua-platform": '"Windows"',
"accept-encoding": "identity", "accept-encoding": "identity",
"referer": twitter_url, "referer": twitter_url,
"priority": "u=1, i",
"authorization": f"Bearer {access_token}", "authorization": f"Bearer {access_token}",
"x-twitter-auth-type": "OAuth2Session", "x-twitter-auth-type": "OAuth2Session",
"x-twitter-client-language": "en", "x-twitter-client-language": "en",