1
Fork 0
mirror of https://github.com/thegeneralist01/twitter-openapi synced 2026-01-12 08:00:27 +01:00

add highlight

Signed-off-by: ふぁ <yuki@yuki0311.com>
This commit is contained in:
ふぁ 2023-07-20 10:58:44 +09:00
parent e87ebe4ae2
commit 2d477a0fb8
No known key found for this signature in database
GPG key ID: 83A8A5E74872A8AA
2 changed files with 88 additions and 1 deletions

View file

@ -32,6 +32,20 @@ paths:
tags:
- "tweet"
/graphql/{pathQueryId}/UserHighlightsTweets:
get:
operationId: getUserHighlightsTweets
description: "get user highlights tweets"
responses:
"200":
description: Successful operation
content:
application/json:
schema:
$ref: "#/components/schemas/UserHighlightsTweetsResponse"
tags:
- "tweet"
/graphql/{pathQueryId}/UserMedia:
get:
operationId: getUserMedia
@ -92,3 +106,41 @@ components:
$ref: "./../schemas/typename.yaml#/components/schemas/TypeName" # User
timeline_v2:
$ref: "./../schemas/timeline.yaml#/components/schemas/TimelineV2"
UserHighlightsTweetsResponse:
required:
- "data"
properties:
data:
$ref: "#/components/schemas/UserHighlightsTweetsData"
UserHighlightsTweetsData:
required:
- "user"
properties:
user:
$ref: "#/components/schemas/UserHighlightsTweetsUser"
UserHighlightsTweetsUser:
required:
- "result"
properties:
result:
$ref: "#/components/schemas/UserHighlightsTweetsResult"
UserHighlightsTweetsResult:
required:
- "timeline"
- "__typename"
properties:
timeline:
$ref: "#/components/schemas/UserHighlightsTweetsTimeline"
__typename:
$ref: "./../schemas/typename.yaml#/components/schemas/TypeName" # User
UserHighlightsTweetsTimeline:
required:
- "timeline"
properties:
timeline:
$ref: "./../schemas/timeline.yaml#/components/schemas/Timeline"