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

update header

Signed-off-by: ふぁ <yuki@yuki0311.com>
This commit is contained in:
ふぁ 2023-04-20 04:09:50 +09:00
parent 133cc17ed3
commit 9fd57625e8
No known key found for this signature in database
GPG key ID: 83A8A5E74872A8AA
10 changed files with 526 additions and 46 deletions

22
dist/openapi-3.0.yaml vendored
View file

@ -1,34 +1,18 @@
components: components:
schemas: {} schemas: {}
securitySchemes: securitySchemes:
ActiveUser:
description: 'yes'
in: header
name: x-twitter-active-user
type: apiKey
AuthType:
description: OAuth2Session
in: header
name: x-twitter-auth-type
type: apiKey
BearerAuth:
description: AAAAAAAAAAAAAAAAAAAAANRILgAAAAAAnNwIzUejRCOuH5E6I8xnZz4puTs%3D1Zv7ttfk8LF81IUq16cHjhLTvJu4FA33AGWWjCpTnA
scheme: bearer
type: http
ClientLanguage:
description: en
in: header
name: x-twitter-client-language
type: apiKey
CookieAuthToken: CookieAuthToken:
description: HttpOnly cookie
in: cookie in: cookie
name: auth_token name: auth_token
type: apiKey type: apiKey
CookieCt0: CookieCt0:
description: document.cookie.split('; ').find(row => row.startsWith('ct0='));
in: cookie in: cookie
name: ct0 name: ct0
type: apiKey type: apiKey
CsrfToken: CsrfToken:
description: document.cookie.split('; ').find(row => row.startsWith('ct0='));
in: header in: header
name: x-csrf-token name: x-csrf-token
type: apiKey type: apiKey

View file

@ -57,6 +57,42 @@ paths:
default: tmd4ifV8RHltzn8ymGg1aw default: tmd4ifV8RHltzn8ymGg1aw
example: tmd4ifV8RHltzn8ymGg1aw example: tmd4ifV8RHltzn8ymGg1aw
type: string type: string
- in: header
name: authorization
required: true
schema:
default: Bearer AAAAAAAAAAAAAAAAAAAAANRILgAAAAAAnNwIzUejRCOuH5E6I8xnZz4puTs%3D1Zv7ttfk8LF81IUq16cHjhLTvJu4FA33AGWWjCpTnA
description: It is a constant value and does not need to be changed.
type: string
- in: header
name: x-twitter-active-user
required: true
schema:
default: 'yes'
description: Unknown what this value means.
type: string
- in: header
name: x-twitter-auth-type
required: true
schema:
default: OAuth2Session
description: Unknown what this value means.
type: string
- in: header
name: x-twitter-client-language
required: true
schema:
default: en
description: language code.
type: string
- in: header
name: user-agent
required: true
schema:
default: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML,
like Gecko) Chrome/112.0.0.0 Safari/537.36
description: UserAgent, some APIs may be rejected if changed.
type: string
responses: responses:
'200': '200':
content: content:

View file

@ -73,6 +73,42 @@ paths:
default: JpFFCTBPxYVlDqMUr9twzQ default: JpFFCTBPxYVlDqMUr9twzQ
example: JpFFCTBPxYVlDqMUr9twzQ example: JpFFCTBPxYVlDqMUr9twzQ
type: string type: string
- in: header
name: authorization
required: true
schema:
default: Bearer AAAAAAAAAAAAAAAAAAAAANRILgAAAAAAnNwIzUejRCOuH5E6I8xnZz4puTs%3D1Zv7ttfk8LF81IUq16cHjhLTvJu4FA33AGWWjCpTnA
description: It is a constant value and does not need to be changed.
type: string
- in: header
name: x-twitter-active-user
required: true
schema:
default: 'yes'
description: Unknown what this value means.
type: string
- in: header
name: x-twitter-auth-type
required: true
schema:
default: OAuth2Session
description: Unknown what this value means.
type: string
- in: header
name: x-twitter-client-language
required: true
schema:
default: en
description: language code.
type: string
- in: header
name: user-agent
required: true
schema:
default: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML,
like Gecko) Chrome/112.0.0.0 Safari/537.36
description: UserAgent, some APIs may be rejected if changed.
type: string
responses: responses:
'200': '200':
content: content:
@ -152,6 +188,42 @@ paths:
default: b22I8WSfQ8H4Ev8486xAlQ default: b22I8WSfQ8H4Ev8486xAlQ
example: b22I8WSfQ8H4Ev8486xAlQ example: b22I8WSfQ8H4Ev8486xAlQ
type: string type: string
- in: header
name: authorization
required: true
schema:
default: Bearer AAAAAAAAAAAAAAAAAAAAANRILgAAAAAAnNwIzUejRCOuH5E6I8xnZz4puTs%3D1Zv7ttfk8LF81IUq16cHjhLTvJu4FA33AGWWjCpTnA
description: It is a constant value and does not need to be changed.
type: string
- in: header
name: x-twitter-active-user
required: true
schema:
default: 'yes'
description: Unknown what this value means.
type: string
- in: header
name: x-twitter-auth-type
required: true
schema:
default: OAuth2Session
description: Unknown what this value means.
type: string
- in: header
name: x-twitter-client-language
required: true
schema:
default: en
description: language code.
type: string
- in: header
name: user-agent
required: true
schema:
default: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML,
like Gecko) Chrome/112.0.0.0 Safari/537.36
description: UserAgent, some APIs may be rejected if changed.
type: string
responses: responses:
'200': '200':
content: content:

View file

@ -87,6 +87,42 @@ paths:
default: 9zwVLJ48lmVUk8u_Gh9DmA default: 9zwVLJ48lmVUk8u_Gh9DmA
example: 9zwVLJ48lmVUk8u_Gh9DmA example: 9zwVLJ48lmVUk8u_Gh9DmA
type: string type: string
- in: header
name: authorization
required: true
schema:
default: Bearer AAAAAAAAAAAAAAAAAAAAANRILgAAAAAAnNwIzUejRCOuH5E6I8xnZz4puTs%3D1Zv7ttfk8LF81IUq16cHjhLTvJu4FA33AGWWjCpTnA
description: It is a constant value and does not need to be changed.
type: string
- in: header
name: x-twitter-active-user
required: true
schema:
default: 'yes'
description: Unknown what this value means.
type: string
- in: header
name: x-twitter-auth-type
required: true
schema:
default: OAuth2Session
description: Unknown what this value means.
type: string
- in: header
name: x-twitter-client-language
required: true
schema:
default: en
description: language code.
type: string
- in: header
name: user-agent
required: true
schema:
default: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML,
like Gecko) Chrome/112.0.0.0 Safari/537.36
description: UserAgent, some APIs may be rejected if changed.
type: string
responses: responses:
'200': '200':
content: content:

View file

@ -81,6 +81,42 @@ paths:
default: 2TemLyqrMpTeAmysdbnVqw default: 2TemLyqrMpTeAmysdbnVqw
example: 2TemLyqrMpTeAmysdbnVqw example: 2TemLyqrMpTeAmysdbnVqw
type: string type: string
- in: header
name: authorization
required: true
schema:
default: Bearer AAAAAAAAAAAAAAAAAAAAANRILgAAAAAAnNwIzUejRCOuH5E6I8xnZz4puTs%3D1Zv7ttfk8LF81IUq16cHjhLTvJu4FA33AGWWjCpTnA
description: It is a constant value and does not need to be changed.
type: string
- in: header
name: x-twitter-active-user
required: true
schema:
default: 'yes'
description: Unknown what this value means.
type: string
- in: header
name: x-twitter-auth-type
required: true
schema:
default: OAuth2Session
description: Unknown what this value means.
type: string
- in: header
name: x-twitter-client-language
required: true
schema:
default: en
description: language code.
type: string
- in: header
name: user-agent
required: true
schema:
default: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML,
like Gecko) Chrome/112.0.0.0 Safari/537.36
description: UserAgent, some APIs may be rejected if changed.
type: string
responses: responses:
'200': '200':
content: content:
@ -161,6 +197,42 @@ paths:
default: HCosKfLNW1AcOo3la3mMgg default: HCosKfLNW1AcOo3la3mMgg
example: HCosKfLNW1AcOo3la3mMgg example: HCosKfLNW1AcOo3la3mMgg
type: string type: string
- in: header
name: authorization
required: true
schema:
default: Bearer AAAAAAAAAAAAAAAAAAAAANRILgAAAAAAnNwIzUejRCOuH5E6I8xnZz4puTs%3D1Zv7ttfk8LF81IUq16cHjhLTvJu4FA33AGWWjCpTnA
description: It is a constant value and does not need to be changed.
type: string
- in: header
name: x-twitter-active-user
required: true
schema:
default: 'yes'
description: Unknown what this value means.
type: string
- in: header
name: x-twitter-auth-type
required: true
schema:
default: OAuth2Session
description: Unknown what this value means.
type: string
- in: header
name: x-twitter-client-language
required: true
schema:
default: en
description: language code.
type: string
- in: header
name: user-agent
required: true
schema:
default: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML,
like Gecko) Chrome/112.0.0.0 Safari/537.36
description: UserAgent, some APIs may be rejected if changed.
type: string
responses: responses:
'200': '200':
content: content:
@ -241,6 +313,42 @@ paths:
default: zhX91JE87mWvfprhYE97xA default: zhX91JE87mWvfprhYE97xA
example: zhX91JE87mWvfprhYE97xA example: zhX91JE87mWvfprhYE97xA
type: string type: string
- in: header
name: authorization
required: true
schema:
default: Bearer AAAAAAAAAAAAAAAAAAAAANRILgAAAAAAnNwIzUejRCOuH5E6I8xnZz4puTs%3D1Zv7ttfk8LF81IUq16cHjhLTvJu4FA33AGWWjCpTnA
description: It is a constant value and does not need to be changed.
type: string
- in: header
name: x-twitter-active-user
required: true
schema:
default: 'yes'
description: Unknown what this value means.
type: string
- in: header
name: x-twitter-auth-type
required: true
schema:
default: OAuth2Session
description: Unknown what this value means.
type: string
- in: header
name: x-twitter-client-language
required: true
schema:
default: en
description: language code.
type: string
- in: header
name: user-agent
required: true
schema:
default: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML,
like Gecko) Chrome/112.0.0.0 Safari/537.36
description: UserAgent, some APIs may be rejected if changed.
type: string
responses: responses:
'200': '200':
content: content:

36
dist/paths/tweet.yaml vendored
View file

@ -54,6 +54,42 @@ paths:
default: wNNG8DBB8EaXw1lq4vFWGA default: wNNG8DBB8EaXw1lq4vFWGA
example: wNNG8DBB8EaXw1lq4vFWGA example: wNNG8DBB8EaXw1lq4vFWGA
type: string type: string
- in: header
name: authorization
required: true
schema:
default: Bearer AAAAAAAAAAAAAAAAAAAAANRILgAAAAAAnNwIzUejRCOuH5E6I8xnZz4puTs%3D1Zv7ttfk8LF81IUq16cHjhLTvJu4FA33AGWWjCpTnA
description: It is a constant value and does not need to be changed.
type: string
- in: header
name: x-twitter-active-user
required: true
schema:
default: 'yes'
description: Unknown what this value means.
type: string
- in: header
name: x-twitter-auth-type
required: true
schema:
default: OAuth2Session
description: Unknown what this value means.
type: string
- in: header
name: x-twitter-client-language
required: true
schema:
default: en
description: language code.
type: string
- in: header
name: user-agent
required: true
schema:
default: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML,
like Gecko) Chrome/112.0.0.0 Safari/537.36
description: UserAgent, some APIs may be rejected if changed.
type: string
responses: responses:
'200': '200':
content: content:

36
dist/paths/user.yaml vendored
View file

@ -43,6 +43,42 @@ paths:
default: sLVLhk0bGj3MVFEKTdax1w default: sLVLhk0bGj3MVFEKTdax1w
example: sLVLhk0bGj3MVFEKTdax1w example: sLVLhk0bGj3MVFEKTdax1w
type: string type: string
- in: header
name: authorization
required: true
schema:
default: Bearer AAAAAAAAAAAAAAAAAAAAANRILgAAAAAAnNwIzUejRCOuH5E6I8xnZz4puTs%3D1Zv7ttfk8LF81IUq16cHjhLTvJu4FA33AGWWjCpTnA
description: It is a constant value and does not need to be changed.
type: string
- in: header
name: x-twitter-active-user
required: true
schema:
default: 'yes'
description: Unknown what this value means.
type: string
- in: header
name: x-twitter-auth-type
required: true
schema:
default: OAuth2Session
description: Unknown what this value means.
type: string
- in: header
name: x-twitter-client-language
required: true
schema:
default: en
description: language code.
type: string
- in: header
name: user-agent
required: true
schema:
default: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML,
like Gecko) Chrome/112.0.0.0 Safari/537.36
description: UserAgent, some APIs may be rejected if changed.
type: string
responses: responses:
'200': '200':
content: content:

View file

@ -68,6 +68,42 @@ paths:
default: 5fmEkRT-1AdHqEsbVgehMg default: 5fmEkRT-1AdHqEsbVgehMg
example: 5fmEkRT-1AdHqEsbVgehMg example: 5fmEkRT-1AdHqEsbVgehMg
type: string type: string
- in: header
name: authorization
required: true
schema:
default: Bearer AAAAAAAAAAAAAAAAAAAAANRILgAAAAAAnNwIzUejRCOuH5E6I8xnZz4puTs%3D1Zv7ttfk8LF81IUq16cHjhLTvJu4FA33AGWWjCpTnA
description: It is a constant value and does not need to be changed.
type: string
- in: header
name: x-twitter-active-user
required: true
schema:
default: 'yes'
description: Unknown what this value means.
type: string
- in: header
name: x-twitter-auth-type
required: true
schema:
default: OAuth2Session
description: Unknown what this value means.
type: string
- in: header
name: x-twitter-client-language
required: true
schema:
default: en
description: language code.
type: string
- in: header
name: user-agent
required: true
schema:
default: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML,
like Gecko) Chrome/112.0.0.0 Safari/537.36
description: UserAgent, some APIs may be rejected if changed.
type: string
responses: responses:
'200': '200':
content: content:
@ -148,6 +184,42 @@ paths:
default: HuTx74BxAnezK1gWvYY7zg default: HuTx74BxAnezK1gWvYY7zg
example: HuTx74BxAnezK1gWvYY7zg example: HuTx74BxAnezK1gWvYY7zg
type: string type: string
- in: header
name: authorization
required: true
schema:
default: Bearer AAAAAAAAAAAAAAAAAAAAANRILgAAAAAAnNwIzUejRCOuH5E6I8xnZz4puTs%3D1Zv7ttfk8LF81IUq16cHjhLTvJu4FA33AGWWjCpTnA
description: It is a constant value and does not need to be changed.
type: string
- in: header
name: x-twitter-active-user
required: true
schema:
default: 'yes'
description: Unknown what this value means.
type: string
- in: header
name: x-twitter-auth-type
required: true
schema:
default: OAuth2Session
description: Unknown what this value means.
type: string
- in: header
name: x-twitter-client-language
required: true
schema:
default: en
description: language code.
type: string
- in: header
name: user-agent
required: true
schema:
default: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML,
like Gecko) Chrome/112.0.0.0 Safari/537.36
description: UserAgent, some APIs may be rejected if changed.
type: string
responses: responses:
'200': '200':
content: content:
@ -227,6 +299,42 @@ paths:
default: RIWc55YCNyUJ-U3HHGYkdg default: RIWc55YCNyUJ-U3HHGYkdg
example: RIWc55YCNyUJ-U3HHGYkdg example: RIWc55YCNyUJ-U3HHGYkdg
type: string type: string
- in: header
name: authorization
required: true
schema:
default: Bearer AAAAAAAAAAAAAAAAAAAAANRILgAAAAAAnNwIzUejRCOuH5E6I8xnZz4puTs%3D1Zv7ttfk8LF81IUq16cHjhLTvJu4FA33AGWWjCpTnA
description: It is a constant value and does not need to be changed.
type: string
- in: header
name: x-twitter-active-user
required: true
schema:
default: 'yes'
description: Unknown what this value means.
type: string
- in: header
name: x-twitter-auth-type
required: true
schema:
default: OAuth2Session
description: Unknown what this value means.
type: string
- in: header
name: x-twitter-client-language
required: true
schema:
default: en
description: language code.
type: string
- in: header
name: user-agent
required: true
schema:
default: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML,
like Gecko) Chrome/112.0.0.0 Safari/537.36
description: UserAgent, some APIs may be rejected if changed.
type: string
responses: responses:
'200': '200':
content: content:
@ -307,6 +415,42 @@ paths:
default: YqiE3JL1KNgf9nSljYdxaA default: YqiE3JL1KNgf9nSljYdxaA
example: YqiE3JL1KNgf9nSljYdxaA example: YqiE3JL1KNgf9nSljYdxaA
type: string type: string
- in: header
name: authorization
required: true
schema:
default: Bearer AAAAAAAAAAAAAAAAAAAAANRILgAAAAAAnNwIzUejRCOuH5E6I8xnZz4puTs%3D1Zv7ttfk8LF81IUq16cHjhLTvJu4FA33AGWWjCpTnA
description: It is a constant value and does not need to be changed.
type: string
- in: header
name: x-twitter-active-user
required: true
schema:
default: 'yes'
description: Unknown what this value means.
type: string
- in: header
name: x-twitter-auth-type
required: true
schema:
default: OAuth2Session
description: Unknown what this value means.
type: string
- in: header
name: x-twitter-client-language
required: true
schema:
default: en
description: language code.
type: string
- in: header
name: user-agent
required: true
schema:
default: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML,
like Gecko) Chrome/112.0.0.0 Safari/537.36
description: UserAgent, some APIs may be rejected if changed.
type: string
responses: responses:
'200': '200':
content: content:

View file

@ -25,6 +25,43 @@ paths:
type: string type: string
default: "{{Query}}" default: "{{Query}}"
example: "{{Query}}" example: "{{Query}}"
# ======== Security ========
- name: authorization
in: header
required: true
schema:
type: string
default: "Bearer AAAAAAAAAAAAAAAAAAAAANRILgAAAAAAnNwIzUejRCOuH5E6I8xnZz4puTs%3D1Zv7ttfk8LF81IUq16cHjhLTvJu4FA33AGWWjCpTnA"
description: "It is a constant value and does not need to be changed."
- name: x-twitter-active-user
in: header
required: true
schema:
type: string
default: "yes"
description: "Unknown what this value means."
- name: x-twitter-auth-type
in: header
required: true
schema:
type: string
default: "OAuth2Session"
description: "Unknown what this value means."
- name: x-twitter-client-language
in: header
required: true
schema:
type: string
default: "en"
description: "language code."
- name: user-agent
in: header
required: true
schema:
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"
description: "UserAgent, some APIs may be rejected if changed."
responses: responses:
"200": "200":
description: "" description: ""

View file

@ -18,43 +18,34 @@ components:
schemas: {} schemas: {}
securitySchemes: securitySchemes:
BearerAuth: # Moved to Parameters because it is not working as Security
type: http # BearerAuth:
scheme: bearer # type: http
description: "AAAAAAAAAAAAAAAAAAAAANRILgAAAAAAnNwIzUejRCOuH5E6I8xnZz4puTs%3D1Zv7ttfk8LF81IUq16cHjhLTvJu4FA33AGWWjCpTnA" # scheme: bearer
# description: "AAAAAAAAAAAAAAAAAAAAANRILgAAAAAAnNwIzUejRCOuH5E6I8xnZz4puTs%3D1Zv7ttfk8LF81IUq16cHjhLTvJu4FA33AGWWjCpTnA"
# AuthType:
# type: apiKey
# in: header
# name: x-twitter-auth-type
# description: "OAuth2Session"
CsrfToken: CsrfToken:
type: apiKey type: apiKey
in: header in: header
name: x-csrf-token name: x-csrf-token
description: "document.cookie.split('; ').find(row => row.startsWith('ct0='));"
ActiveUser:
type: apiKey
in: header
name: x-twitter-active-user
description: "yes"
AuthType:
type: apiKey
in: header
name: x-twitter-auth-type
description: "OAuth2Session"
ClientLanguage:
type: apiKey
in: header
name: x-twitter-client-language
description: "en"
CookieAuthToken:
type: apiKey
in: cookie
name: auth_token
CookieCt0: CookieCt0:
type: apiKey type: apiKey
in: cookie in: cookie
name: ct0 name: ct0
description: "document.cookie.split('; ').find(row => row.startsWith('ct0='));"
CookieAuthToken:
type: apiKey
in: cookie
name: auth_token
description: "HttpOnly cookie"
tags: tags:
- name: timeline - name: timeline