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

add TweetResultByRestId

Signed-off-by: ふぁ <yuki@yuki0311.com>
This commit is contained in:
ふぁ 2023-08-22 10:57:32 +09:00
parent a865bbaa09
commit dc4d5a90f6
No known key found for this signature in database
GPG key ID: 83A8A5E74872A8AA
2 changed files with 64 additions and 2 deletions

View file

@ -121,7 +121,9 @@
"UsersByRestIds": {
"queryId": "GD4q8bBE2i6cqWw2iT74Gg",
"variables": {
"userIds": ["44196397"]
"userIds": [
"44196397"
]
},
"features": {
"responsive_web_graphql_exclude_directive_enabled": true,
@ -365,6 +367,36 @@
"responsive_web_enhance_cards_enabled": false
}
},
"TweetResultByRestId": {
"queryId": "0hWvDhmW8YQ-S_ib3azIrw",
"variables": {
"tweetId": "1691730070669517096",
"withCommunity": false,
"includePromotedContent": false,
"withVoice": false
},
"features": {
"creator_subscriptions_tweet_preview_api_enabled": true,
"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_graphql_exclude_directive_enabled": true,
"verified_phone_label_enabled": false,
"responsive_web_media_download_video_enabled": false,
"responsive_web_graphql_skip_user_profile_image_extensions_enabled": false,
"responsive_web_graphql_timeline_navigation_enabled": true,
"responsive_web_enhance_cards_enabled": false
}
},
"SearchTimeline": {
"queryId": "L1VfBERtzc3VkBBT0YAYHA",
"variables": {
@ -722,4 +754,4 @@
"include_ext_edit_control": true,
"ext": "mediaStats,highlightedLabel,hasNftAvatar,voiceInfo,birdwatchPivot,enrichments,superFollowMetadata,unmentionInfo,editControl,vibe"
}
}
}

View file

@ -20,6 +20,22 @@ paths:
tags:
- "tweet"
/graphql/{pathQueryId}/TweetResultByRestId:
get:
operationId: getTweetResultByRestId
description: get TweetResultByRestId
responses:
"200":
description: Successful operation
content:
application/json:
schema:
oneOf:
- $ref: "#/components/schemas/TweetResultByRestIdResponse"
- $ref: "./../schemas/error.yaml#/components/schemas/Errors"
# tags:
# - "tweet"
/graphql/{pathQueryId}/Favoriters:
get:
operationId: getFavoriters
@ -68,6 +84,20 @@ components:
threaded_conversation_with_injections_v2:
$ref: "./../schemas/timeline.yaml#/components/schemas/Timeline"
TweetResultByRestIdResponse:
required:
- "data"
properties:
data:
$ref: "#/components/schemas/TweetResultByRestIdData"
TweetResultByRestIdData:
required:
- "tweetResult"
properties:
tweetResult:
$ref: "./../schemas/content.yaml#/components/schemas/ItemResult"
TweetFavoritersResponse:
required:
- "data"