1
Fork 0
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:
ふぁ 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

@ -115,7 +115,7 @@
"highlights_tweets_tab_ui_enabled": true,
"creator_subscriptions_tweet_preview_api_enabled": true,
"responsive_web_graphql_skip_user_profile_image_extensions_enabled": false,
"responsive_web_graphql_timeline_navigation_enabled":true
"responsive_web_graphql_timeline_navigation_enabled": true
}
},
"UsersByRestIds": {
@ -201,6 +201,41 @@
"responsive_web_enhance_cards_enabled": false
}
},
"UserHighlightsTweets": {
"queryId": "sTveqh05FMMAFfDNpRc_Jg",
"variables": {
"userId": "44196397",
"count": 20,
"includePromotedContent": true,
"withVoice": true
},
"features": {
"rweb_lists_timeline_redesign_enabled": true,
"responsive_web_graphql_exclude_directive_enabled": true,
"verified_phone_label_enabled": false,
"creator_subscriptions_tweet_preview_api_enabled": true,
"responsive_web_graphql_timeline_navigation_enabled": true,
"responsive_web_graphql_skip_user_profile_image_extensions_enabled": false,
"tweetypie_unmention_optimization_enabled": true,
"responsive_web_edit_tweet_api_enabled": true,
"graphql_is_translatable_rweb_tweet_is_translatable_enabled": true,
"view_counts_everywhere_api_enabled": true,
"longform_notetweets_consumption_enabled": true,
"responsive_web_twitter_article_tweet_consumption_enabled": false,
"tweet_awards_web_tipping_enabled": false,
"freedom_of_speech_not_reach_fetch_enabled": true,
"standardized_nudges_misinfo": true,
"tweet_with_visibility_results_prefer_gql_limited_actions_policy_enabled": true,
"longform_notetweets_rich_text_read_enabled": true,
"longform_notetweets_inline_media_enabled": true,
"responsive_web_media_download_video_enabled": false,
"responsive_web_enhance_cards_enabled": false
},
"fieldToggles": {
"withAuxiliaryUserLabels": false,
"withArticleRichContentState": false
}
},
"UserMedia": {
"queryId": "YqiE3JL1KNgf9nSljYdxaA",
"variables": {

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"