mirror of
https://github.com/thegeneralist01/twitter-openapi
synced 2026-01-11 15:40:26 +01:00
75 lines
1.6 KiB
YAML
75 lines
1.6 KiB
YAML
openapi: 3.0.3
|
|
info:
|
|
title: Twitter OpenAPI
|
|
description: |-
|
|
Twitter OpenAPI(Swagger) specification
|
|
termsOfService: https://github.com/fa0311
|
|
contact:
|
|
email: yuki@yuki0311.com
|
|
license:
|
|
name: GNU Affero General Public License v3.
|
|
url: https://raw.githubusercontent.com/fa0311/twitter-openapi/main/LICENSE.txt
|
|
version: 0.0.1
|
|
servers:
|
|
- url: https://twitter.com/i/api
|
|
|
|
paths: {}
|
|
components:
|
|
schemas: {}
|
|
|
|
securitySchemes:
|
|
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:
|
|
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"
|
|
|
|
security:
|
|
- CsrfToken: []
|
|
- CookieCt0: []
|
|
- GuestToken: []
|
|
- CookieAuthToken: []
|
|
- AuthType: []
|
|
tags:
|
|
- name: user
|
|
description: response User
|
|
- name: user-list
|
|
description: response User list
|
|
- name: tweet
|
|
description: response tweet
|
|
- name: post
|
|
description: post
|
|
- name: v1.1-get
|
|
description: legacy APIs get
|
|
- name: v1.1-post
|
|
description: legacy APIs post
|
|
- name: v2.0-get
|
|
description: legacy APIs get
|
|
- name: v2.0-post
|
|
description: legacy APIs post
|
|
- name: other
|
|
description: other
|