mirror of
https://github.com/thegeneralist01/twitter-openapi
synced 2026-01-11 23:50:26 +01:00
fix
Signed-off-by: ふぁ <yuki@yuki0311.com>
This commit is contained in:
parent
01eee8484d
commit
36554cc1a9
3 changed files with 62 additions and 7 deletions
|
|
@ -59,6 +59,61 @@ paths:
|
||||||
|
|
||||||
# {% endif %}
|
# {% endif %}
|
||||||
|
|
||||||
|
post:
|
||||||
|
parameters:
|
||||||
|
- name: variables
|
||||||
|
in: query
|
||||||
|
required: true
|
||||||
|
schema:
|
||||||
|
type: object
|
||||||
|
example: "{{Variables}}"
|
||||||
|
- name: features
|
||||||
|
in: query
|
||||||
|
required: true
|
||||||
|
schema:
|
||||||
|
type: object
|
||||||
|
example: "{{Features}}"
|
||||||
|
- name: queryId
|
||||||
|
in: query
|
||||||
|
required: true
|
||||||
|
schema:
|
||||||
|
type: string
|
||||||
|
default: "{{Query}}"
|
||||||
|
example: "{{Query}}"
|
||||||
|
|
||||||
|
# {% if header == parameters %}
|
||||||
|
|
||||||
|
- 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."
|
||||||
|
- 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."
|
||||||
|
|
||||||
|
# {% endif %}
|
||||||
|
|
||||||
responses:
|
responses:
|
||||||
"200":
|
"200":
|
||||||
description: ""
|
description: ""
|
||||||
|
|
|
||||||
|
|
@ -67,5 +67,5 @@ components:
|
||||||
|
|
||||||
DeleteTweet:
|
DeleteTweet:
|
||||||
properties:
|
properties:
|
||||||
|
result:
|
||||||
type: object
|
type: object
|
||||||
nullable: true
|
|
||||||
|
|
@ -101,7 +101,7 @@ for lang in variable.keys():
|
||||||
for method in METHODS:
|
for method in METHODS:
|
||||||
if load["paths"][key].get(method, None) is not None:
|
if load["paths"][key].get(method, None) is not None:
|
||||||
req = load["paths"][key][method]
|
req = load["paths"][key][method]
|
||||||
req["parameters"] = param["get"]["parameters"]
|
req["parameters"] = param[method]["parameters"]
|
||||||
|
|
||||||
append = get_yaml(header, key.split("/")[-1])
|
append = get_yaml(header, key.split("/")[-1])
|
||||||
req = load["paths"][key][method]
|
req = load["paths"][key][method]
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue