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

add UserByScreenName

Signed-off-by: ふぁ <yuki@yuki0311.com>
This commit is contained in:
ふぁ 2023-04-14 04:53:56 +09:00
parent 58f9d3a483
commit d4e1025acc
No known key found for this signature in database
GPG key ID: 83A8A5E74872A8AA

View file

@ -112,6 +112,7 @@ paths:
tags: tags:
- "timeline" - "timeline"
- "login-required" - "login-required"
- "graphql"
/37RUvMgTiEVYYfrRTVDxpw/HomeLatestTimeline: /37RUvMgTiEVYYfrRTVDxpw/HomeLatestTimeline:
get: get:
@ -206,6 +207,7 @@ paths:
tags: tags:
- "timeline" - "timeline"
- "login-required" - "login-required"
- "graphql"
/VEwO8c1TYdm5zjxCOIiwFw/ListLatestTweetsTimeline: /VEwO8c1TYdm5zjxCOIiwFw/ListLatestTweetsTimeline:
get: get:
@ -299,6 +301,7 @@ paths:
tags: tags:
- "timeline" - "timeline"
- "login-required" - "login-required"
- "graphql"
# follow # follow
/FaBzCqZXuQCb4PhB0RHqHw/Following: /FaBzCqZXuQCb4PhB0RHqHw/Following:
@ -351,6 +354,70 @@ paths:
description: Successful operation description: Successful operation
tags: tags:
- "follow" - "follow"
- "graphql"
/sLVLhk0bGj3MVFEKTdax1w/UserByScreenName:
get:
operationId: getUserByScreenName
description: "get user by screen name"
parameters:
- name: variables
in: query
required: true
schema:
type: string
- name: features
in: query
required: true
schema:
type: string
- name: queryId
in: query
schema:
type: string
default: "sLVLhk0bGj3MVFEKTdax1w"
responses:
"200":
description: Successful operation
content:
application/json:
schema:
$ref: "#/components/schemas/UserResponse"
headers:
x-connection-hash:
$ref: "#/components/headers/x-connection-hash"
x-content-type-options:
$ref: "#/components/headers/x-content-type-options"
x-frame-options:
$ref: "#/components/headers/x-frame-options"
x-rate-limit-limit:
$ref: "#/components/headers/x-rate-limit-limit"
x-rate-limit-remaining:
$ref: "#/components/headers/x-rate-limit-remaining"
x-rate-limit-reset:
$ref: "#/components/headers/x-rate-limit-reset"
x-response-time:
$ref: "#/components/headers/x-response-time"
x-tfe-preserve-body:
$ref: "#/components/headers/x-tfe-preserve-body"
x-transaction-id:
$ref: "#/components/headers/x-transaction-id"
x-twitter-response-tags:
$ref: "#/components/headers/x-twitter-response-tags"
x-xss-protection:
$ref: "#/components/headers/x-xss-protection"
security:
- bearerAuth: []
- CsrfToken: []
- ActiveUser: []
- AuthType: []
- ClientLanguage: []
- CookieAuthToken: []
- CookieCt0: []
tags:
- "user"
- "graphql"
components: components:
schemas: schemas:
@ -368,16 +435,16 @@ components:
User, User,
] ]
# ================= Timeline ================= # ================= Timeline Response =================
TimelineResponse: TimelineResponse:
required: required:
- "data" - "data"
properties: properties:
data: data:
$ref: "#/components/schemas/HomeTimelineData" $ref: "#/components/schemas/HomeTimelineResponseData"
HomeTimelineData: HomeTimelineResponseData:
required: required:
- "home" - "home"
properties: properties:
@ -433,6 +500,22 @@ components:
responseObjects: responseObjects:
type: object # todo type: object # todo
# ================= User Response =================
UserResponse:
required:
- "data"
properties:
data:
$ref: "#/components/schemas/UserResponseData"
UserResponseData:
required:
- "user"
properties:
user:
$ref: "#/components/schemas/UserResults"
# ================= Instruction ================= # ================= Instruction =================
InstructionUnion: InstructionUnion: