mirror of
https://github.com/thegeneralist01/twitter-openapi
synced 2026-01-12 16:10:26 +01:00
add TweetDetail
Signed-off-by: ふぁ <yuki@yuki0311.com>
This commit is contained in:
parent
abbcbe8b86
commit
a16f4a6915
9 changed files with 297 additions and 61 deletions
2
dist/openapi-3.0.yaml
vendored
2
dist/openapi-3.0.yaml
vendored
|
|
@ -60,6 +60,8 @@ paths:
|
|||
$ref: ./path/user.yaml#/paths/~1sLVLhk0bGj3MVFEKTdax1w~1UserByScreenName
|
||||
/tmd4ifV8RHltzn8ymGg1aw/Bookmarks:
|
||||
$ref: ./path/bookmarks.yaml#/paths/~1tmd4ifV8RHltzn8ymGg1aw~1Bookmarks
|
||||
/wNNG8DBB8EaXw1lq4vFWGA/TweetDetail:
|
||||
$ref: ./path/tweet.yaml#/paths/~1wNNG8DBB8EaXw1lq4vFWGA~1TweetDetail
|
||||
/zhX91JE87mWvfprhYE97xA/HomeLatestTimeline:
|
||||
$ref: ./path/timeline.yaml#/paths/~1zhX91JE87mWvfprhYE97xA~1HomeLatestTimeline
|
||||
/{{FollowersQuery}}/Followers:
|
||||
|
|
|
|||
100
dist/path/tweet.yaml
vendored
Normal file
100
dist/path/tweet.yaml
vendored
Normal file
|
|
@ -0,0 +1,100 @@
|
|||
components:
|
||||
schemas:
|
||||
BookmarksResponseData:
|
||||
properties:
|
||||
threaded_conversation_with_injections_v2:
|
||||
$ref: ./../schemas/timeline.yaml#/components/schemas/Timeline
|
||||
required:
|
||||
- threaded_conversation_with_injections_v2
|
||||
TweetDetailResponse:
|
||||
properties:
|
||||
data:
|
||||
$ref: '#/components/schemas/BookmarksResponseData'
|
||||
required:
|
||||
- data
|
||||
info:
|
||||
title: Twitter OpenAPI
|
||||
version: 0.0.1
|
||||
openapi: 3.0.3
|
||||
paths:
|
||||
/wNNG8DBB8EaXw1lq4vFWGA/TweetDetail:
|
||||
get:
|
||||
description: get TweetDetail
|
||||
operationId: getTweetDetail
|
||||
parameters:
|
||||
- in: query
|
||||
name: variables
|
||||
required: true
|
||||
schema:
|
||||
example: '{"focalTweetId": "1349129669258448897", "with_rux_injections":
|
||||
false, "includePromotedContent": true, "withCommunity": true, "withQuickPromoteEligibilityTweetFields":
|
||||
true, "withBirdwatchNotes": true, "withVoice": true, "withV2Timeline":
|
||||
true}'
|
||||
type: string
|
||||
- in: query
|
||||
name: features
|
||||
required: true
|
||||
schema:
|
||||
example: '{"blue_business_profile_image_shape_enabled": true, "responsive_web_graphql_exclude_directive_enabled":
|
||||
true, "verified_phone_label_enabled": false, "responsive_web_graphql_timeline_navigation_enabled":
|
||||
true, "responsive_web_graphql_skip_user_profile_image_extensions_enabled":
|
||||
false, "tweetypie_unmention_optimization_enabled": true, "vibe_api_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, "tweet_awards_web_tipping_enabled": false, "freedom_of_speech_not_reach_fetch_enabled":
|
||||
false, "standardized_nudges_misinfo": true, "tweet_with_visibility_results_prefer_gql_limited_actions_policy_enabled":
|
||||
false, "interactive_text_enabled": true, "responsive_web_text_conversations_enabled":
|
||||
false, "longform_notetweets_rich_text_read_enabled": true, "responsive_web_enhance_cards_enabled":
|
||||
false}'
|
||||
type: string
|
||||
- in: query
|
||||
name: queryId
|
||||
required: true
|
||||
schema:
|
||||
default: wNNG8DBB8EaXw1lq4vFWGA
|
||||
example: wNNG8DBB8EaXw1lq4vFWGA
|
||||
type: string
|
||||
responses:
|
||||
'200':
|
||||
content:
|
||||
application/json:
|
||||
schema:
|
||||
$ref: '#/components/schemas/TweetDetailResponse'
|
||||
description: Successful operation
|
||||
headers:
|
||||
x-connection-hash:
|
||||
schema:
|
||||
type: string
|
||||
x-content-type-options:
|
||||
schema:
|
||||
type: string
|
||||
x-frame-options:
|
||||
schema:
|
||||
type: string
|
||||
x-rate-limit-limit:
|
||||
schema:
|
||||
type: integer
|
||||
x-rate-limit-remaining:
|
||||
schema:
|
||||
type: integer
|
||||
x-rate-limit-reset:
|
||||
schema:
|
||||
type: integer
|
||||
x-response-time:
|
||||
schema:
|
||||
type: integer
|
||||
x-tfe-preserve-body:
|
||||
schema:
|
||||
type: boolean
|
||||
x-transaction-id:
|
||||
schema:
|
||||
type: string
|
||||
x-twitter-response-tags:
|
||||
schema:
|
||||
type: string
|
||||
x-xss-protection:
|
||||
schema:
|
||||
type: integer
|
||||
tags:
|
||||
- bookmark
|
||||
- graphql
|
||||
120
dist/schemas/content.yaml
vendored
120
dist/schemas/content.yaml
vendored
|
|
@ -9,6 +9,7 @@ components:
|
|||
ContentItemType:
|
||||
enum:
|
||||
- TimelineTweet
|
||||
- TimelineTimelineCursor
|
||||
type: string
|
||||
ContentUnion:
|
||||
discriminator:
|
||||
|
|
@ -21,7 +22,72 @@ components:
|
|||
- $ref: '#/components/schemas/TimelineTimelineItem'
|
||||
- $ref: '#/components/schemas/TimelineTimelineCursor'
|
||||
- $ref: '#/components/schemas/TimelineTimelineModule'
|
||||
ItemContent:
|
||||
ItemContentUnion:
|
||||
discriminator:
|
||||
mapping":
|
||||
TimelineTimelineCursor: '#/components/schemas/TimelineTimelineCursor'
|
||||
TimelineTweet: '#/components/schemas/TimelineTweet'
|
||||
propertyName: itemType
|
||||
oneOf:
|
||||
- $ref: '#/components/schemas/TimelineTweet'
|
||||
- $ref: '#/components/schemas/TimelineTimelineCursor'
|
||||
ItemResult:
|
||||
properties:
|
||||
__typename:
|
||||
$ref: ./typename.yaml#/components/schemas/TypeName
|
||||
result:
|
||||
$ref: ./tweet.yaml#/components/schemas/TweetUnion
|
||||
required:
|
||||
- result
|
||||
TimelineTimelineCursor:
|
||||
properties:
|
||||
__typename:
|
||||
$ref: ./typename.yaml#/components/schemas/TypeName
|
||||
cursorType:
|
||||
enum:
|
||||
- Top
|
||||
- Bottom
|
||||
type: string
|
||||
entryType:
|
||||
$ref: '#/components/schemas/ContentEntryType'
|
||||
type: string
|
||||
itemType:
|
||||
$ref: '#/components/schemas/ContentEntryType'
|
||||
type: string
|
||||
value:
|
||||
type: string
|
||||
required:
|
||||
- __typename
|
||||
- cursorType
|
||||
- value
|
||||
TimelineTimelineItem:
|
||||
properties:
|
||||
__typename:
|
||||
$ref: ./typename.yaml#/components/schemas/TypeName
|
||||
clientEventInfo:
|
||||
type: object
|
||||
entryType:
|
||||
$ref: '#/components/schemas/ContentEntryType'
|
||||
type: string
|
||||
feedbackInfo:
|
||||
type: object
|
||||
itemContent:
|
||||
$ref: '#/components/schemas/ItemContentUnion'
|
||||
required:
|
||||
- __typename
|
||||
- entryType
|
||||
- itemContent
|
||||
TimelineTimelineModule:
|
||||
properties:
|
||||
__typename:
|
||||
$ref: ./typename.yaml#/components/schemas/TypeName
|
||||
entryType:
|
||||
$ref: '#/components/schemas/ContentEntryType'
|
||||
type: string
|
||||
required:
|
||||
- __typename
|
||||
- entryType
|
||||
TimelineTweet:
|
||||
properties:
|
||||
__typename:
|
||||
$ref: ./typename.yaml#/components/schemas/TypeName
|
||||
|
|
@ -46,58 +112,6 @@ components:
|
|||
- itemType
|
||||
- tweetDisplayType
|
||||
- tweet_results
|
||||
ItemResult:
|
||||
properties:
|
||||
result:
|
||||
$ref: ./tweet.yaml#/components/schemas/TweetUnion
|
||||
required:
|
||||
- result
|
||||
TimelineTimelineCursor:
|
||||
properties:
|
||||
__typename:
|
||||
$ref: ./typename.yaml#/components/schemas/TypeName
|
||||
cursorType:
|
||||
enum:
|
||||
- Top
|
||||
- Bottom
|
||||
type: string
|
||||
entryType:
|
||||
$ref: '#/components/schemas/ContentEntryType'
|
||||
type: string
|
||||
value:
|
||||
type: string
|
||||
required:
|
||||
- __typename
|
||||
- entryType
|
||||
- cursorType
|
||||
- value
|
||||
TimelineTimelineItem:
|
||||
properties:
|
||||
__typename:
|
||||
$ref: ./typename.yaml#/components/schemas/TypeName
|
||||
clientEventInfo:
|
||||
type: object
|
||||
entryType:
|
||||
$ref: '#/components/schemas/ContentEntryType'
|
||||
type: string
|
||||
feedbackInfo:
|
||||
type: object
|
||||
itemContent:
|
||||
$ref: '#/components/schemas/ItemContent'
|
||||
required:
|
||||
- __typename
|
||||
- entryType
|
||||
- itemContent
|
||||
TimelineTimelineModule:
|
||||
properties:
|
||||
__typename:
|
||||
$ref: ./typename.yaml#/components/schemas/TypeName
|
||||
entryType:
|
||||
$ref: '#/components/schemas/ContentEntryType'
|
||||
type: string
|
||||
required:
|
||||
- __typename
|
||||
- entryType
|
||||
info:
|
||||
title: Twitter OpenAPI
|
||||
version: 0.0.1
|
||||
|
|
|
|||
16
dist/schemas/instruction.yaml
vendored
16
dist/schemas/instruction.yaml
vendored
|
|
@ -5,6 +5,7 @@ components:
|
|||
- TimelineAddEntries
|
||||
- TimelineClearCache
|
||||
- TimelinePinEntry
|
||||
- TimelineTerminateTimeline
|
||||
type: string
|
||||
InstructionUnion:
|
||||
discriminator:
|
||||
|
|
@ -12,11 +13,13 @@ components:
|
|||
TimelineAddEntries: '#/components/schemas/TimelineAddEntries'
|
||||
TimelineClearCache: '#/components/schemas/TimelineClearCache'
|
||||
TimelinePinEntry: '#/components/schemas/TimelinePinEntry'
|
||||
TimelineTerminateTimeline: '#/components/schemas/TimelineTerminateTimeline'
|
||||
propertyName: type
|
||||
oneOf:
|
||||
- $ref: '#/components/schemas/TimelineAddEntries'
|
||||
- $ref: '#/components/schemas/TimelineClearCache'
|
||||
- $ref: '#/components/schemas/TimelinePinEntry'
|
||||
- $ref: '#/components/schemas/TimelineTerminateTimeline'
|
||||
TimelineAddEntries:
|
||||
properties:
|
||||
entries:
|
||||
|
|
@ -60,6 +63,19 @@ components:
|
|||
required:
|
||||
- type
|
||||
- entry
|
||||
TimelineTerminateTimeline:
|
||||
properties:
|
||||
direction:
|
||||
enum:
|
||||
- Top
|
||||
- Bottom
|
||||
type: string
|
||||
type:
|
||||
$ref: '#/components/schemas/InstructionType'
|
||||
type: string
|
||||
required:
|
||||
- type
|
||||
- direction
|
||||
info:
|
||||
title: Twitter OpenAPI
|
||||
version: 0.0.1
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue