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
|
$ref: ./path/timeline.yaml#/paths/~1HCosKfLNW1AcOo3la3mMgg~1HomeTimeline
|
||||||
/HuTx74BxAnezK1gWvYY7zg/UserTweets:
|
/HuTx74BxAnezK1gWvYY7zg/UserTweets:
|
||||||
$ref: ./path/usertweets.yaml#/paths/~1HuTx74BxAnezK1gWvYY7zg~1UserTweets
|
$ref: ./path/usertweets.yaml#/paths/~1HuTx74BxAnezK1gWvYY7zg~1UserTweets
|
||||||
|
/JpFFCTBPxYVlDqMUr9twzQ/Followers:
|
||||||
|
$ref: ./path/follow.yaml#/paths/~1JpFFCTBPxYVlDqMUr9twzQ~1Followers
|
||||||
/RIWc55YCNyUJ-U3HHGYkdg/UserTweetsAndReplies:
|
/RIWc55YCNyUJ-U3HHGYkdg/UserTweetsAndReplies:
|
||||||
$ref: ./path/usertweets.yaml#/paths/~1RIWc55YCNyUJ-U3HHGYkdg~1UserTweetsAndReplies
|
$ref: ./path/usertweets.yaml#/paths/~1RIWc55YCNyUJ-U3HHGYkdg~1UserTweetsAndReplies
|
||||||
/YqiE3JL1KNgf9nSljYdxaA/UserMedia:
|
/YqiE3JL1KNgf9nSljYdxaA/UserMedia:
|
||||||
$ref: ./path/usertweets.yaml#/paths/~1YqiE3JL1KNgf9nSljYdxaA~1UserMedia
|
$ref: ./path/usertweets.yaml#/paths/~1YqiE3JL1KNgf9nSljYdxaA~1UserMedia
|
||||||
|
/b22I8WSfQ8H4Ev8486xAlQ/Following:
|
||||||
|
$ref: ./path/follow.yaml#/paths/~1b22I8WSfQ8H4Ev8486xAlQ~1Following
|
||||||
/sLVLhk0bGj3MVFEKTdax1w/UserByScreenName:
|
/sLVLhk0bGj3MVFEKTdax1w/UserByScreenName:
|
||||||
$ref: ./path/user.yaml#/paths/~1sLVLhk0bGj3MVFEKTdax1w~1UserByScreenName
|
$ref: ./path/user.yaml#/paths/~1sLVLhk0bGj3MVFEKTdax1w~1UserByScreenName
|
||||||
/tmd4ifV8RHltzn8ymGg1aw/Bookmarks:
|
/tmd4ifV8RHltzn8ymGg1aw/Bookmarks:
|
||||||
|
|
@ -64,10 +68,6 @@ paths:
|
||||||
$ref: ./path/tweet.yaml#/paths/~1wNNG8DBB8EaXw1lq4vFWGA~1TweetDetail
|
$ref: ./path/tweet.yaml#/paths/~1wNNG8DBB8EaXw1lq4vFWGA~1TweetDetail
|
||||||
/zhX91JE87mWvfprhYE97xA/HomeLatestTimeline:
|
/zhX91JE87mWvfprhYE97xA/HomeLatestTimeline:
|
||||||
$ref: ./path/timeline.yaml#/paths/~1zhX91JE87mWvfprhYE97xA~1HomeLatestTimeline
|
$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:
|
security:
|
||||||
- bearerAuth: []
|
- bearerAuth: []
|
||||||
- CsrfToken: []
|
- CsrfToken: []
|
||||||
|
|
|
||||||
14
dist/path/bookmarks.yaml
vendored
14
dist/path/bookmarks.yaml
vendored
|
|
@ -1,17 +1,23 @@
|
||||||
components:
|
components:
|
||||||
schemas:
|
schemas:
|
||||||
|
BookmarksData:
|
||||||
|
properties:
|
||||||
|
bookmark_timeline_v2:
|
||||||
|
$ref: '#/components/schemas/BookmarksTimeline'
|
||||||
|
required:
|
||||||
|
- bookmark_timeline_v2
|
||||||
BookmarksResponse:
|
BookmarksResponse:
|
||||||
properties:
|
properties:
|
||||||
data:
|
data:
|
||||||
$ref: '#/components/schemas/BookmarksResponseData'
|
$ref: '#/components/schemas/BookmarksData'
|
||||||
required:
|
required:
|
||||||
- data
|
- data
|
||||||
BookmarksResponseData:
|
BookmarksTimeline:
|
||||||
properties:
|
properties:
|
||||||
bookmark_timeline_v2:
|
timeline:
|
||||||
$ref: ./../schemas/timeline.yaml#/components/schemas/Timeline
|
$ref: ./../schemas/timeline.yaml#/components/schemas/Timeline
|
||||||
required:
|
required:
|
||||||
- bookmark_timeline_v2
|
- timeline
|
||||||
info:
|
info:
|
||||||
title: Twitter OpenAPI
|
title: Twitter OpenAPI
|
||||||
version: 0.0.1
|
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:
|
info:
|
||||||
title: Twitter OpenAPI
|
title: Twitter OpenAPI
|
||||||
version: 0.0.1
|
version: 0.0.1
|
||||||
openapi: 3.0.3
|
openapi: 3.0.3
|
||||||
paths:
|
paths:
|
||||||
/{{FollowersQuery}}/Followers:
|
/JpFFCTBPxYVlDqMUr9twzQ/Followers:
|
||||||
get:
|
get:
|
||||||
description: get user list of following
|
description: get user list of following
|
||||||
operationId: getFollowing
|
operationId: getFollowing
|
||||||
|
|
@ -12,23 +47,38 @@ paths:
|
||||||
name: variables
|
name: variables
|
||||||
required: true
|
required: true
|
||||||
schema:
|
schema:
|
||||||
example: '{{Variables}}'
|
example: '{"userId": "44196397", "count": 20, "includePromotedContent":
|
||||||
|
false}'
|
||||||
type: string
|
type: string
|
||||||
- in: query
|
- in: query
|
||||||
name: features
|
name: features
|
||||||
required: true
|
required: true
|
||||||
schema:
|
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
|
type: string
|
||||||
- in: query
|
- in: query
|
||||||
name: queryId
|
name: queryId
|
||||||
required: true
|
required: true
|
||||||
schema:
|
schema:
|
||||||
default: '{{Query}}'
|
default: JpFFCTBPxYVlDqMUr9twzQ
|
||||||
example: '{{Query}}'
|
example: JpFFCTBPxYVlDqMUr9twzQ
|
||||||
type: string
|
type: string
|
||||||
responses:
|
responses:
|
||||||
'200':
|
'200':
|
||||||
|
content:
|
||||||
|
application/json:
|
||||||
|
schema:
|
||||||
|
$ref: '#/components/schemas/FollowResponse'
|
||||||
description: Successful operation
|
description: Successful operation
|
||||||
headers:
|
headers:
|
||||||
x-connection-hash:
|
x-connection-hash:
|
||||||
|
|
@ -67,7 +117,7 @@ paths:
|
||||||
tags:
|
tags:
|
||||||
- follow
|
- follow
|
||||||
- graphql
|
- graphql
|
||||||
/{{FollowingQuery}}/Following:
|
/b22I8WSfQ8H4Ev8486xAlQ/Following:
|
||||||
get:
|
get:
|
||||||
description: get user list of followers
|
description: get user list of followers
|
||||||
operationId: getFollowers
|
operationId: getFollowers
|
||||||
|
|
@ -76,23 +126,38 @@ paths:
|
||||||
name: variables
|
name: variables
|
||||||
required: true
|
required: true
|
||||||
schema:
|
schema:
|
||||||
example: '{{Variables}}'
|
example: '{"userId": "44196397", "count": 20, "includePromotedContent":
|
||||||
|
false}'
|
||||||
type: string
|
type: string
|
||||||
- in: query
|
- in: query
|
||||||
name: features
|
name: features
|
||||||
required: true
|
required: true
|
||||||
schema:
|
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
|
type: string
|
||||||
- in: query
|
- in: query
|
||||||
name: queryId
|
name: queryId
|
||||||
required: true
|
required: true
|
||||||
schema:
|
schema:
|
||||||
default: '{{Query}}'
|
default: b22I8WSfQ8H4Ev8486xAlQ
|
||||||
example: '{{Query}}'
|
example: b22I8WSfQ8H4Ev8486xAlQ
|
||||||
type: string
|
type: string
|
||||||
responses:
|
responses:
|
||||||
'200':
|
'200':
|
||||||
|
content:
|
||||||
|
application/json:
|
||||||
|
schema:
|
||||||
|
$ref: '#/components/schemas/FollowResponse'
|
||||||
description: Successful operation
|
description: Successful operation
|
||||||
headers:
|
headers:
|
||||||
x-connection-hash:
|
x-connection-hash:
|
||||||
|
|
|
||||||
2
dist/path/timeline.yaml
vendored
2
dist/path/timeline.yaml
vendored
|
|
@ -20,7 +20,7 @@ components:
|
||||||
- timeline
|
- timeline
|
||||||
ListTweetsTimelineData:
|
ListTweetsTimelineData:
|
||||||
properties:
|
properties:
|
||||||
home:
|
list:
|
||||||
$ref: '#/components/schemas/ListTweetsTimelineList'
|
$ref: '#/components/schemas/ListTweetsTimelineList'
|
||||||
required:
|
required:
|
||||||
- list
|
- list
|
||||||
|
|
|
||||||
|
|
@ -295,6 +295,64 @@
|
||||||
"responsive_web_enhance_cards_enabled": false
|
"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": {
|
"Template": {
|
||||||
"Query": "",
|
"Query": "",
|
||||||
"Variables": {},
|
"Variables": {},
|
||||||
|
|
|
||||||
|
|
@ -26,11 +26,18 @@ components:
|
||||||
- "data"
|
- "data"
|
||||||
properties:
|
properties:
|
||||||
data:
|
data:
|
||||||
$ref: "#/components/schemas/BookmarksResponseData"
|
$ref: "#/components/schemas/BookmarksData"
|
||||||
|
|
||||||
BookmarksResponseData:
|
BookmarksData:
|
||||||
required:
|
required:
|
||||||
- "bookmark_timeline_v2"
|
- "bookmark_timeline_v2"
|
||||||
properties:
|
properties:
|
||||||
bookmark_timeline_v2:
|
bookmark_timeline_v2:
|
||||||
|
$ref: "#/components/schemas/BookmarksTimeline"
|
||||||
|
|
||||||
|
BookmarksTimeline:
|
||||||
|
required:
|
||||||
|
- "timeline"
|
||||||
|
properties:
|
||||||
|
timeline:
|
||||||
$ref: "./../schemas/timeline.yaml#/components/schemas/Timeline"
|
$ref: "./../schemas/timeline.yaml#/components/schemas/Timeline"
|
||||||
|
|
|
||||||
|
|
@ -11,6 +11,10 @@ paths:
|
||||||
responses:
|
responses:
|
||||||
"200":
|
"200":
|
||||||
description: Successful operation
|
description: Successful operation
|
||||||
|
content:
|
||||||
|
application/json:
|
||||||
|
schema:
|
||||||
|
$ref: "#/components/schemas/FollowResponse"
|
||||||
tags:
|
tags:
|
||||||
- "follow"
|
- "follow"
|
||||||
- "graphql"
|
- "graphql"
|
||||||
|
|
@ -22,6 +26,50 @@ paths:
|
||||||
responses:
|
responses:
|
||||||
"200":
|
"200":
|
||||||
description: Successful operation
|
description: Successful operation
|
||||||
|
content:
|
||||||
|
application/json:
|
||||||
|
schema:
|
||||||
|
$ref: "#/components/schemas/FollowResponse"
|
||||||
tags:
|
tags:
|
||||||
- "follow"
|
- "follow"
|
||||||
- "graphql"
|
- "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:
|
required:
|
||||||
- "list"
|
- "list"
|
||||||
properties:
|
properties:
|
||||||
home:
|
list:
|
||||||
$ref: "#/components/schemas/ListTweetsTimelineList"
|
$ref: "#/components/schemas/ListTweetsTimelineList"
|
||||||
|
|
||||||
ListTweetsTimelineList:
|
ListTweetsTimelineList:
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue