1
Fork 0
mirror of https://github.com/thegeneralist01/twitter-openapi synced 2026-01-11 23:50:26 +01:00
Signed-off-by: ふぁ <yuki@yuki0311.com>
This commit is contained in:
ふぁ 2023-04-24 13:12:39 +09:00
parent dd0869a6f5
commit 328543616c
No known key found for this signature in database
GPG key ID: 83A8A5E74872A8AA
4 changed files with 99 additions and 45 deletions

View file

@ -26,7 +26,8 @@ paths:
default: "{{Query}}"
example: "{{Query}}"
# ======== Security ========
# {% if header == parameters %}
- name: authorization
in: header
required: true
@ -55,6 +56,9 @@ paths:
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."
# {% endif %}
responses:
"200":
description: ""

8
src/config/variable.json Normal file
View file

@ -0,0 +1,8 @@
{
"dart": {
"header": "parameters"
},
"typescript": {
"header": "securitySchemes"
}
}

View file

@ -18,12 +18,6 @@ components:
schemas: {}
securitySchemes:
# Moved to Parameters because it is not working as Security
# BearerAuth:
# type: http
# scheme: bearer
# description: "AAAAAAAAAAAAAAAAAAAAANRILgAAAAAAnNwIzUejRCOuH5E6I8xnZz4puTs%3D1Zv7ttfk8LF81IUq16cHjhLTvJu4FA33AGWWjCpTnA"
CsrfToken:
type: apiKey
in: header
@ -48,6 +42,30 @@ components:
name: x-twitter-auth-type
description: "OAuth2Session if you are logged in"
# {% if header == securitySchemes %}
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"
in: header
name: user-agent
type: apiKey
ActiveUser:
description: "yes"
in: header
name: x-twitter-active-user
type: apiKey
BearerAuth:
description: AAAAAAAAAAAAAAAAAAAAANRILgAAAAAAnNwIzUejRCOuH5E6I8xnZz4puTs%3D1Zv7ttfk8LF81IUq16cHjhLTvJu4FA33AGWWjCpTnA
scheme: bearer
type: http
ClientLanguage:
description: en
in: header
name: x-twitter-client-language
type: apiKey
# {% endif %}
security:
- bearerAuth: []
- CsrfToken: []