mirror of
https://github.com/thegeneralist01/twitter-openapi
synced 2026-01-11 23:50:26 +01:00
add Bookmarks
Signed-off-by: ふぁ <yuki@yuki0311.com>
This commit is contained in:
parent
1b154a8327
commit
bf730c5129
8 changed files with 206 additions and 22 deletions
8
dist/openapi-3.0.yaml
vendored
8
dist/openapi-3.0.yaml
vendored
|
|
@ -52,10 +52,14 @@ paths:
|
|||
$ref: ./path/timeline.yaml#/paths/~1HCosKfLNW1AcOo3la3mMgg~1HomeTimeline
|
||||
/HuTx74BxAnezK1gWvYY7zg/UserTweets:
|
||||
$ref: ./path/usertweets.yaml#/paths/~1HuTx74BxAnezK1gWvYY7zg~1UserTweets
|
||||
/JpFFCTBPxYVlDqMUr9twzQ/Followers:
|
||||
$ref: ./path/follow.yaml#/paths/~1JpFFCTBPxYVlDqMUr9twzQ~1Followers
|
||||
/RIWc55YCNyUJ-U3HHGYkdg/UserTweetsAndReplies:
|
||||
$ref: ./path/usertweets.yaml#/paths/~1RIWc55YCNyUJ-U3HHGYkdg~1UserTweetsAndReplies
|
||||
/YqiE3JL1KNgf9nSljYdxaA/UserMedia:
|
||||
$ref: ./path/usertweets.yaml#/paths/~1YqiE3JL1KNgf9nSljYdxaA~1UserMedia
|
||||
/b22I8WSfQ8H4Ev8486xAlQ/Following:
|
||||
$ref: ./path/follow.yaml#/paths/~1b22I8WSfQ8H4Ev8486xAlQ~1Following
|
||||
/sLVLhk0bGj3MVFEKTdax1w/UserByScreenName:
|
||||
$ref: ./path/user.yaml#/paths/~1sLVLhk0bGj3MVFEKTdax1w~1UserByScreenName
|
||||
/tmd4ifV8RHltzn8ymGg1aw/Bookmarks:
|
||||
|
|
@ -64,10 +68,6 @@ paths:
|
|||
$ref: ./path/tweet.yaml#/paths/~1wNNG8DBB8EaXw1lq4vFWGA~1TweetDetail
|
||||
/zhX91JE87mWvfprhYE97xA/HomeLatestTimeline:
|
||||
$ref: ./path/timeline.yaml#/paths/~1zhX91JE87mWvfprhYE97xA~1HomeLatestTimeline
|
||||
/{{FollowersQuery}}/Followers:
|
||||
$ref: ./path/follow.yaml#/paths/~1{{FollowersQuery}}~1Followers
|
||||
/{{FollowingQuery}}/Following:
|
||||
$ref: ./path/follow.yaml#/paths/~1{{FollowingQuery}}~1Following
|
||||
security:
|
||||
- bearerAuth: []
|
||||
- CsrfToken: []
|
||||
|
|
|
|||
14
dist/path/bookmarks.yaml
vendored
14
dist/path/bookmarks.yaml
vendored
|
|
@ -1,17 +1,23 @@
|
|||
components:
|
||||
schemas:
|
||||
BookmarksData:
|
||||
properties:
|
||||
bookmark_timeline_v2:
|
||||
$ref: '#/components/schemas/BookmarksTimeline'
|
||||
required:
|
||||
- bookmark_timeline_v2
|
||||
BookmarksResponse:
|
||||
properties:
|
||||
data:
|
||||
$ref: '#/components/schemas/BookmarksResponseData'
|
||||
$ref: '#/components/schemas/BookmarksData'
|
||||
required:
|
||||
- data
|
||||
BookmarksResponseData:
|
||||
BookmarksTimeline:
|
||||
properties:
|
||||
bookmark_timeline_v2:
|
||||
timeline:
|
||||
$ref: ./../schemas/timeline.yaml#/components/schemas/Timeline
|
||||
required:
|
||||
- bookmark_timeline_v2
|
||||
- timeline
|
||||
info:
|
||||
title: Twitter OpenAPI
|
||||
version: 0.0.1
|
||||
|
|
|
|||
85
dist/path/follow.yaml
vendored
85
dist/path/follow.yaml
vendored
|
|
@ -1,9 +1,44 @@
|
|||
components:
|
||||
schemas:
|
||||
FollowData:
|
||||
properties:
|
||||
user:
|
||||
$ref: '#/components/schemas/FollowUser'
|
||||
required:
|
||||
- user
|
||||
FollowResponse:
|
||||
properties:
|
||||
data:
|
||||
$ref: '#/components/schemas/FollowData'
|
||||
required:
|
||||
- data
|
||||
FollowResult:
|
||||
properties:
|
||||
__typename:
|
||||
$ref: ./../schemas/typename.yaml#/components/schemas/TypeName
|
||||
timeline:
|
||||
$ref: '#/components/schemas/FollowTimeline'
|
||||
required:
|
||||
- __typename
|
||||
- timeline
|
||||
FollowTimeline:
|
||||
properties:
|
||||
timeline:
|
||||
$ref: ./../schemas/timeline.yaml#/components/schemas/Timeline
|
||||
required:
|
||||
- timeline
|
||||
FollowUser:
|
||||
properties:
|
||||
result:
|
||||
$ref: '#/components/schemas/FollowResult'
|
||||
required:
|
||||
- result
|
||||
info:
|
||||
title: Twitter OpenAPI
|
||||
version: 0.0.1
|
||||
openapi: 3.0.3
|
||||
paths:
|
||||
/{{FollowersQuery}}/Followers:
|
||||
/JpFFCTBPxYVlDqMUr9twzQ/Followers:
|
||||
get:
|
||||
description: get user list of following
|
||||
operationId: getFollowing
|
||||
|
|
@ -12,23 +47,38 @@ paths:
|
|||
name: variables
|
||||
required: true
|
||||
schema:
|
||||
example: '{{Variables}}'
|
||||
example: '{"userId": "44196397", "count": 20, "includePromotedContent":
|
||||
false}'
|
||||
type: string
|
||||
- in: query
|
||||
name: features
|
||||
required: true
|
||||
schema:
|
||||
example: '{{Features}}'
|
||||
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: '{{Query}}'
|
||||
example: '{{Query}}'
|
||||
default: JpFFCTBPxYVlDqMUr9twzQ
|
||||
example: JpFFCTBPxYVlDqMUr9twzQ
|
||||
type: string
|
||||
responses:
|
||||
'200':
|
||||
content:
|
||||
application/json:
|
||||
schema:
|
||||
$ref: '#/components/schemas/FollowResponse'
|
||||
description: Successful operation
|
||||
headers:
|
||||
x-connection-hash:
|
||||
|
|
@ -67,7 +117,7 @@ paths:
|
|||
tags:
|
||||
- follow
|
||||
- graphql
|
||||
/{{FollowingQuery}}/Following:
|
||||
/b22I8WSfQ8H4Ev8486xAlQ/Following:
|
||||
get:
|
||||
description: get user list of followers
|
||||
operationId: getFollowers
|
||||
|
|
@ -76,23 +126,38 @@ paths:
|
|||
name: variables
|
||||
required: true
|
||||
schema:
|
||||
example: '{{Variables}}'
|
||||
example: '{"userId": "44196397", "count": 20, "includePromotedContent":
|
||||
false}'
|
||||
type: string
|
||||
- in: query
|
||||
name: features
|
||||
required: true
|
||||
schema:
|
||||
example: '{{Features}}'
|
||||
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: '{{Query}}'
|
||||
example: '{{Query}}'
|
||||
default: b22I8WSfQ8H4Ev8486xAlQ
|
||||
example: b22I8WSfQ8H4Ev8486xAlQ
|
||||
type: string
|
||||
responses:
|
||||
'200':
|
||||
content:
|
||||
application/json:
|
||||
schema:
|
||||
$ref: '#/components/schemas/FollowResponse'
|
||||
description: Successful operation
|
||||
headers:
|
||||
x-connection-hash:
|
||||
|
|
|
|||
2
dist/path/timeline.yaml
vendored
2
dist/path/timeline.yaml
vendored
|
|
@ -20,7 +20,7 @@ components:
|
|||
- timeline
|
||||
ListTweetsTimelineData:
|
||||
properties:
|
||||
home:
|
||||
list:
|
||||
$ref: '#/components/schemas/ListTweetsTimelineList'
|
||||
required:
|
||||
- list
|
||||
|
|
|
|||
|
|
@ -295,6 +295,64 @@
|
|||
"responsive_web_enhance_cards_enabled": false
|
||||
}
|
||||
},
|
||||
"Followers": {
|
||||
"Query": "JpFFCTBPxYVlDqMUr9twzQ",
|
||||
"Variables": {
|
||||
"userId": "44196397",
|
||||
"count": 20,
|
||||
"includePromotedContent": false
|
||||
},
|
||||
"Features": {
|
||||
"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
|
||||
}
|
||||
},
|
||||
"Following": {
|
||||
"Query": "b22I8WSfQ8H4Ev8486xAlQ",
|
||||
"Variables": {
|
||||
"userId": "44196397",
|
||||
"count": 20,
|
||||
"includePromotedContent": false
|
||||
},
|
||||
"Features": {
|
||||
"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
|
||||
}
|
||||
},
|
||||
"Template": {
|
||||
"Query": "",
|
||||
"Variables": {},
|
||||
|
|
|
|||
|
|
@ -26,11 +26,18 @@ components:
|
|||
- "data"
|
||||
properties:
|
||||
data:
|
||||
$ref: "#/components/schemas/BookmarksResponseData"
|
||||
$ref: "#/components/schemas/BookmarksData"
|
||||
|
||||
BookmarksResponseData:
|
||||
BookmarksData:
|
||||
required:
|
||||
- "bookmark_timeline_v2"
|
||||
properties:
|
||||
bookmark_timeline_v2:
|
||||
$ref: "#/components/schemas/BookmarksTimeline"
|
||||
|
||||
BookmarksTimeline:
|
||||
required:
|
||||
- "timeline"
|
||||
properties:
|
||||
timeline:
|
||||
$ref: "./../schemas/timeline.yaml#/components/schemas/Timeline"
|
||||
|
|
|
|||
|
|
@ -11,6 +11,10 @@ paths:
|
|||
responses:
|
||||
"200":
|
||||
description: Successful operation
|
||||
content:
|
||||
application/json:
|
||||
schema:
|
||||
$ref: "#/components/schemas/FollowResponse"
|
||||
tags:
|
||||
- "follow"
|
||||
- "graphql"
|
||||
|
|
@ -22,6 +26,50 @@ paths:
|
|||
responses:
|
||||
"200":
|
||||
description: Successful operation
|
||||
content:
|
||||
application/json:
|
||||
schema:
|
||||
$ref: "#/components/schemas/FollowResponse"
|
||||
tags:
|
||||
- "follow"
|
||||
- "graphql"
|
||||
|
||||
components:
|
||||
schemas:
|
||||
FollowResponse:
|
||||
required:
|
||||
- "data"
|
||||
properties:
|
||||
data:
|
||||
$ref: "#/components/schemas/FollowData"
|
||||
|
||||
FollowData:
|
||||
required:
|
||||
- "user"
|
||||
properties:
|
||||
user:
|
||||
$ref: "#/components/schemas/FollowUser"
|
||||
|
||||
FollowUser:
|
||||
required:
|
||||
- "result"
|
||||
properties:
|
||||
result:
|
||||
$ref: "#/components/schemas/FollowResult"
|
||||
|
||||
FollowResult:
|
||||
required:
|
||||
- "__typename"
|
||||
- "timeline"
|
||||
properties:
|
||||
__typename:
|
||||
$ref: "./../schemas/typename.yaml#/components/schemas/TypeName" # User
|
||||
timeline:
|
||||
$ref: "#/components/schemas/FollowTimeline"
|
||||
|
||||
FollowTimeline:
|
||||
required:
|
||||
- "timeline"
|
||||
properties:
|
||||
timeline:
|
||||
$ref: "./../schemas/timeline.yaml#/components/schemas/Timeline"
|
||||
|
|
|
|||
|
|
@ -86,7 +86,7 @@ components:
|
|||
required:
|
||||
- "list"
|
||||
properties:
|
||||
home:
|
||||
list:
|
||||
$ref: "#/components/schemas/ListTweetsTimelineList"
|
||||
|
||||
ListTweetsTimelineList:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue