mirror of
https://github.com/thegeneralist01/twitter-openapi
synced 2026-01-11 23:50:26 +01:00
update hook to simpleted
Signed-off-by: ふぁ <yuki@yuki0311.com>
This commit is contained in:
parent
b0107e081d
commit
69e1fdb20c
9 changed files with 423 additions and 614 deletions
|
|
@ -1,35 +0,0 @@
|
|||
openapi: 3.0.3
|
||||
info:
|
||||
title: Twitter OpenAPI
|
||||
version: 0.0.1
|
||||
paths: {}
|
||||
|
||||
components:
|
||||
headers:
|
||||
status:
|
||||
schema:
|
||||
type: string
|
||||
x-access-level:
|
||||
schema:
|
||||
type: string
|
||||
x-client-event-enabled:
|
||||
schema:
|
||||
type: boolean
|
||||
x-connection-hash:
|
||||
schema:
|
||||
type: string
|
||||
x-content-type-options:
|
||||
schema:
|
||||
type: string
|
||||
x-response-time:
|
||||
schema:
|
||||
type: integer
|
||||
x-transaction:
|
||||
schema:
|
||||
type: string
|
||||
x-transaction-id:
|
||||
schema:
|
||||
type: string
|
||||
x-twitter-response-tags:
|
||||
schema:
|
||||
type: string
|
||||
|
|
@ -1,241 +0,0 @@
|
|||
openapi: 3.0.3
|
||||
info:
|
||||
title: Twitter OpenAPI
|
||||
version: 0.0.1
|
||||
paths:
|
||||
/parameters:
|
||||
get:
|
||||
parameters:
|
||||
- name: user-agent
|
||||
in: header
|
||||
required: true
|
||||
schema:
|
||||
type: string
|
||||
default: "Not Implemented"
|
||||
description: "UserAgent, some APIs may be rejected if changed."
|
||||
- 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-client-language
|
||||
in: header
|
||||
required: true
|
||||
schema:
|
||||
type: string
|
||||
default: "en"
|
||||
description: "language code."
|
||||
|
||||
# Browser Schemes
|
||||
- name: Accept
|
||||
in: header
|
||||
required: true
|
||||
schema:
|
||||
type: string
|
||||
default: "*/*"
|
||||
description: "*/*"
|
||||
- name: Accept-Encoding
|
||||
in: header
|
||||
required: true
|
||||
schema:
|
||||
type: string
|
||||
default: "gzip, deflate, br"
|
||||
description: "gzip, deflate, br"
|
||||
- name: Accept-Language
|
||||
in: header
|
||||
required: true
|
||||
schema:
|
||||
type: string
|
||||
default: "en-US,en;q=0.9"
|
||||
description: "en-US,en;q=0.9"
|
||||
# - name: Cache-Control
|
||||
# in: header
|
||||
# required: true
|
||||
# schema:
|
||||
# type: string
|
||||
# default: "no-cache"
|
||||
# description: "no-cache"
|
||||
# - name: Pragma
|
||||
# in: header
|
||||
# required: true
|
||||
# schema:
|
||||
# type: string
|
||||
# default: "no-cache"
|
||||
# description: "no-cache"
|
||||
- name: Sec-Ch-Ua
|
||||
in: header
|
||||
required: true
|
||||
schema:
|
||||
type: string
|
||||
default: '"Chromium";v="116", "Not)A;Brand";v="24", "Google Chrome";v="116"'
|
||||
description: '"Chromium";v="116", "Not)A;Brand";v="24", "Google Chrome";v="116"'
|
||||
- name: Sec-Ch-Ua-Mobile
|
||||
in: header
|
||||
required: true
|
||||
schema:
|
||||
type: string
|
||||
default: "?0"
|
||||
description: "?0"
|
||||
- name: Sec-Ch-Ua-Platform
|
||||
in: header
|
||||
required: true
|
||||
schema:
|
||||
type: string
|
||||
default: '"Windows"'
|
||||
description: '"Windows"'
|
||||
- name: Sec-Fetch-Dest
|
||||
in: header
|
||||
required: true
|
||||
schema:
|
||||
type: string
|
||||
default: "empty"
|
||||
description: "empty"
|
||||
- name: Sec-Fetch-Mode
|
||||
in: header
|
||||
required: true
|
||||
schema:
|
||||
type: string
|
||||
default: "cors"
|
||||
description: "cors"
|
||||
- name: Sec-Fetch-Site
|
||||
in: header
|
||||
required: true
|
||||
schema:
|
||||
type: string
|
||||
default: "same-origin"
|
||||
description: "same-origin"
|
||||
- name: Referer
|
||||
in: header
|
||||
required: true
|
||||
schema:
|
||||
type: string
|
||||
default: "https://x.com/home"
|
||||
description: "https://x.com/home"
|
||||
- name: Priority
|
||||
in: header
|
||||
required: true
|
||||
schema:
|
||||
type: string
|
||||
default: "u=1, i"
|
||||
description: "u=1, i"
|
||||
|
||||
responses:
|
||||
"200":
|
||||
description: ""
|
||||
|
||||
components:
|
||||
securitySchemes:
|
||||
UserAgent:
|
||||
description: "Not Implemented"
|
||||
in: header
|
||||
name: user-agent
|
||||
type: apiKey
|
||||
BearerAuth:
|
||||
description: AAAAAAAAAAAAAAAAAAAAANRILgAAAAAAnNwIzUejRCOuH5E6I8xnZz4puTs%3D1Zv7ttfk8LF81IUq16cHjhLTvJu4FA33AGWWjCpTnA
|
||||
scheme: bearer
|
||||
type: http
|
||||
ActiveUser:
|
||||
description: "yes"
|
||||
in: header
|
||||
name: x-twitter-active-user
|
||||
type: apiKey
|
||||
ClientLanguage:
|
||||
description: en
|
||||
in: header
|
||||
name: x-twitter-client-language
|
||||
type: apiKey
|
||||
|
||||
# Browser Schemes
|
||||
Accept:
|
||||
description: "*/*"
|
||||
in: header
|
||||
name: Accept
|
||||
type: apiKey
|
||||
AcceptEncoding:
|
||||
description: "gzip, deflate, br"
|
||||
in: header
|
||||
name: Accept-Encoding
|
||||
type: apiKey
|
||||
AcceptLanguage:
|
||||
description: "en-US,en;q=0.9"
|
||||
in: header
|
||||
name: Accept-Language
|
||||
type: apiKey
|
||||
# CacheControl:
|
||||
# description: "no-cache"
|
||||
# in: header
|
||||
# name: Cache-Control
|
||||
# type: apiKey
|
||||
# Pragma:
|
||||
# description: "no-cache"
|
||||
# in: header
|
||||
# name: Pragma
|
||||
# type: apiKey
|
||||
SecChUa:
|
||||
description: '"Chromium";v="116", "Not)A;Brand";v="24", "Google Chrome";v="116"'
|
||||
in: header
|
||||
name: Sec-Ch-Ua
|
||||
type: apiKey
|
||||
SecChUaMobile:
|
||||
description: "?0"
|
||||
in: header
|
||||
name: Sec-Ch-Ua-Mobile
|
||||
type: apiKey
|
||||
SecChUaPlatform:
|
||||
description: '"Windows"'
|
||||
in: header
|
||||
name: Sec-Ch-Ua-Platform
|
||||
type: apiKey
|
||||
SecFetchDest:
|
||||
description: "empty"
|
||||
in: header
|
||||
name: Sec-Fetch-Dest
|
||||
type: apiKey
|
||||
SecFetchMode:
|
||||
description: "cors"
|
||||
in: header
|
||||
name: Sec-Fetch-Mode
|
||||
type: apiKey
|
||||
SecFetchSite:
|
||||
description: "same-origin"
|
||||
in: header
|
||||
name: Sec-Fetch-Site
|
||||
type: apiKey
|
||||
Referer:
|
||||
description: "https://x.com/home"
|
||||
in: header
|
||||
name: Referer
|
||||
type: apiKey
|
||||
Priority:
|
||||
description: "u=1, i"
|
||||
in: header
|
||||
name: Priority
|
||||
type: apiKey
|
||||
|
||||
security:
|
||||
- UserAgent: []
|
||||
- BearerAuth: []
|
||||
- ActiveUser: []
|
||||
- ClientLanguage: []
|
||||
- Accept: []
|
||||
- AcceptEncoding: []
|
||||
- AcceptLanguage: []
|
||||
# - CacheControl: []
|
||||
# - Pragma: []
|
||||
- SecChUa: []
|
||||
- SecChUaMobile: []
|
||||
- SecChUaPlatform: []
|
||||
- SecFetchDest: []
|
||||
- SecFetchMode: []
|
||||
- SecFetchSite: []
|
||||
- Referer: []
|
||||
- Priority: []
|
||||
|
|
@ -19,42 +19,144 @@ components:
|
|||
schemas: {}
|
||||
|
||||
securitySchemes:
|
||||
Accept:
|
||||
description: "*/*"
|
||||
in: header
|
||||
name: Accept
|
||||
type: apiKey
|
||||
AcceptEncoding:
|
||||
description: "gzip, deflate, br, zstd"
|
||||
in: header
|
||||
name: Accept-Encoding
|
||||
type: apiKey
|
||||
AcceptLanguage:
|
||||
description: "en-US,en;q=0.9"
|
||||
in: header
|
||||
name: Accept-Language
|
||||
type: apiKey
|
||||
Referer:
|
||||
description: "https://x.com/home"
|
||||
in: header
|
||||
name: Referer
|
||||
type: apiKey
|
||||
SecChUa:
|
||||
description: '"Chromium";v="116", "Not)A;Brand";v="24", "Google Chrome";v="116"'
|
||||
in: header
|
||||
name: Sec-Ch-Ua
|
||||
type: apiKey
|
||||
SecChUaMobile:
|
||||
description: "?0"
|
||||
in: header
|
||||
name: Sec-Ch-Ua-Mobile
|
||||
type: apiKey
|
||||
SecChUaPlatform:
|
||||
description: '"Windows"'
|
||||
in: header
|
||||
name: Sec-Ch-Ua-Platform
|
||||
type: apiKey
|
||||
SecFetchDest:
|
||||
description: "empty"
|
||||
in: header
|
||||
name: Sec-Fetch-Dest
|
||||
type: apiKey
|
||||
SecFetchMode:
|
||||
description: "cors"
|
||||
in: header
|
||||
name: Sec-Fetch-Mode
|
||||
type: apiKey
|
||||
SecFetchSite:
|
||||
description: "same-origin"
|
||||
in: header
|
||||
name: Sec-Fetch-Site
|
||||
type: apiKey
|
||||
UserAgent:
|
||||
description: "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/130.0.0.0 Safari/537.36"
|
||||
in: header
|
||||
name: user-agent
|
||||
type: apiKey
|
||||
BearerAuth:
|
||||
description: AAAAAAAAAAAAAAAAAAAAANRILgAAAAAAnNwIzUejRCOuH5E6I8xnZz4puTs%3D1Zv7ttfk8LF81IUq16cHjhLTvJu4FA33AGWWjCpTnA
|
||||
scheme: bearer
|
||||
type: http
|
||||
ClientTransactionId:
|
||||
type: apiKey
|
||||
in: header
|
||||
name: x-client-transaction-id
|
||||
ClientUuid:
|
||||
type: apiKey
|
||||
in: header
|
||||
name: x-client-uuid
|
||||
description: "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
|
||||
CsrfToken:
|
||||
type: apiKey
|
||||
in: header
|
||||
name: x-csrf-token
|
||||
description: ""
|
||||
|
||||
CookieCt0:
|
||||
type: apiKey
|
||||
in: cookie
|
||||
name: ct0
|
||||
description: "document.cookie.split('; ').find(row => row.startsWith('ct0='));"
|
||||
|
||||
GuestToken:
|
||||
type: apiKey
|
||||
in: header
|
||||
name: x-guest-token
|
||||
description: "document.cookie.split('; ').find(row => row.startsWith('gt='));"
|
||||
|
||||
CookieAuthToken:
|
||||
ActiveUser:
|
||||
description: "yes"
|
||||
in: header
|
||||
name: x-twitter-active-user
|
||||
type: apiKey
|
||||
in: cookie
|
||||
name: auth_token
|
||||
description: "HttpOnly cookie"
|
||||
|
||||
AuthType:
|
||||
type: apiKey
|
||||
in: header
|
||||
name: x-twitter-auth-type
|
||||
description: "OAuth2Session if you are logged in"
|
||||
ClientLanguage:
|
||||
description: en
|
||||
in: header
|
||||
name: x-twitter-client-language
|
||||
type: apiKey
|
||||
CookieAuthToken:
|
||||
type: apiKey
|
||||
in: cookie
|
||||
name: auth_token
|
||||
description: "HttpOnly cookie"
|
||||
CookieCt0:
|
||||
type: apiKey
|
||||
in: cookie
|
||||
name: ct0
|
||||
description: "document.cookie.split('; ').find(row => row.startsWith('ct0='));"
|
||||
CookieGt0:
|
||||
type: apiKey
|
||||
in: cookie
|
||||
name: gt0
|
||||
description: "document.cookie.split('; ').find(row => row.startsWith('gt0='));"
|
||||
|
||||
security:
|
||||
# Browser Schemes
|
||||
- Accept: []
|
||||
- AcceptEncoding: []
|
||||
- AcceptLanguage: []
|
||||
- Referer: []
|
||||
- SecChUa: []
|
||||
- SecChUaMobile: []
|
||||
- SecChUaPlatform: []
|
||||
- SecFetchDest: []
|
||||
- SecFetchMode: []
|
||||
- SecFetchSite: []
|
||||
# Other Auth Schemes
|
||||
- UserAgent: []
|
||||
- BearerAuth: []
|
||||
# X Schemes
|
||||
- ClientTransactionId: []
|
||||
- ClientUuid: []
|
||||
- CsrfToken: []
|
||||
- CookieCt0: []
|
||||
- GuestToken: []
|
||||
- CookieAuthToken: []
|
||||
# Twitter Schemes
|
||||
- ActiveUser: []
|
||||
- AuthType: []
|
||||
- ClientLanguage: []
|
||||
# Cookie Schemes
|
||||
- CookieCt0: []
|
||||
- CookieAuthToken: []
|
||||
- CookieGt0: []
|
||||
|
||||
tags:
|
||||
- name: user
|
||||
description: Responses containing User objects.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue