mirror of
https://github.com/thegeneralist01/twitter-openapi
synced 2026-01-11 23:50:26 +01:00
add highlight
Signed-off-by: ふぁ <yuki@yuki0311.com>
This commit is contained in:
parent
e87ebe4ae2
commit
2d477a0fb8
2 changed files with 88 additions and 1 deletions
|
|
@ -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"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue