mirror of
https://github.com/thegeneralist01/twitter-openapi
synced 2026-01-11 15:40:26 +01:00
add bookmarks
Signed-off-by: ふぁ <yuki@yuki0311.com>
This commit is contained in:
parent
4864d6126a
commit
abbcbe8b86
5 changed files with 173 additions and 0 deletions
4
dist/openapi-3.0.yaml
vendored
4
dist/openapi-3.0.yaml
vendored
|
|
@ -58,6 +58,8 @@ paths:
|
|||
$ref: ./path/usertweets.yaml#/paths/~1YqiE3JL1KNgf9nSljYdxaA~1UserMedia
|
||||
/sLVLhk0bGj3MVFEKTdax1w/UserByScreenName:
|
||||
$ref: ./path/user.yaml#/paths/~1sLVLhk0bGj3MVFEKTdax1w~1UserByScreenName
|
||||
/tmd4ifV8RHltzn8ymGg1aw/Bookmarks:
|
||||
$ref: ./path/bookmarks.yaml#/paths/~1tmd4ifV8RHltzn8ymGg1aw~1Bookmarks
|
||||
/zhX91JE87mWvfprhYE97xA/HomeLatestTimeline:
|
||||
$ref: ./path/timeline.yaml#/paths/~1zhX91JE87mWvfprhYE97xA~1HomeLatestTimeline
|
||||
/{{FollowersQuery}}/Followers:
|
||||
|
|
@ -81,6 +83,8 @@ tags:
|
|||
name: tweet
|
||||
- description: user
|
||||
name: user
|
||||
- description: bookmark
|
||||
name: bookmark
|
||||
- description: follow
|
||||
name: follow
|
||||
- description: search
|
||||
|
|
|
|||
97
dist/path/bookmarks.yaml
vendored
Normal file
97
dist/path/bookmarks.yaml
vendored
Normal file
|
|
@ -0,0 +1,97 @@
|
|||
components:
|
||||
schemas:
|
||||
BookmarksResponse:
|
||||
properties:
|
||||
data:
|
||||
$ref: '#/components/schemas/BookmarksResponseData'
|
||||
required:
|
||||
- data
|
||||
BookmarksResponseData:
|
||||
properties:
|
||||
bookmark_timeline_v2:
|
||||
$ref: ./../schemas/timeline.yaml#/components/schemas/Timeline
|
||||
required:
|
||||
- bookmark_timeline_v2
|
||||
info:
|
||||
title: Twitter OpenAPI
|
||||
version: 0.0.1
|
||||
openapi: 3.0.3
|
||||
paths:
|
||||
/tmd4ifV8RHltzn8ymGg1aw/Bookmarks:
|
||||
get:
|
||||
description: get bookmarks
|
||||
operationId: getBookmarks
|
||||
parameters:
|
||||
- in: query
|
||||
name: variables
|
||||
required: true
|
||||
schema:
|
||||
example: '{"count": 20, "includePromotedContent": true}'
|
||||
type: string
|
||||
- in: query
|
||||
name: features
|
||||
required: true
|
||||
schema:
|
||||
example: '{"graphql_timeline_v2_bookmark_timeline": true, "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: tmd4ifV8RHltzn8ymGg1aw
|
||||
example: tmd4ifV8RHltzn8ymGg1aw
|
||||
type: string
|
||||
responses:
|
||||
'200':
|
||||
content:
|
||||
application/json:
|
||||
schema:
|
||||
$ref: '#/components/schemas/BookmarksResponse'
|
||||
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
|
||||
|
|
@ -231,5 +231,39 @@
|
|||
"longform_notetweets_rich_text_read_enabled": true,
|
||||
"responsive_web_enhance_cards_enabled": false
|
||||
}
|
||||
},
|
||||
"Bookmarks": {
|
||||
"Query": "tmd4ifV8RHltzn8ymGg1aw",
|
||||
"Variables": {
|
||||
"count": 20,
|
||||
"includePromotedContent": true
|
||||
},
|
||||
"Features": {
|
||||
"graphql_timeline_v2_bookmark_timeline": true,
|
||||
"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": {},
|
||||
"Features": {}
|
||||
}
|
||||
}
|
||||
|
|
@ -63,6 +63,8 @@ tags:
|
|||
description: tweet
|
||||
- name: user
|
||||
description: user
|
||||
- name: bookmark
|
||||
description: bookmark
|
||||
- name: follow
|
||||
description: follow
|
||||
- name: search
|
||||
|
|
|
|||
36
src/openapi/path/bookmarks.yaml
Normal file
36
src/openapi/path/bookmarks.yaml
Normal file
|
|
@ -0,0 +1,36 @@
|
|||
openapi: 3.0.3
|
||||
info:
|
||||
title: Twitter OpenAPI
|
||||
version: 0.0.1
|
||||
|
||||
paths:
|
||||
/{{BookmarksQuery}}/Bookmarks:
|
||||
get:
|
||||
operationId: getBookmarks
|
||||
description: get bookmarks
|
||||
responses:
|
||||
"200":
|
||||
description: Successful operation
|
||||
content:
|
||||
application/json:
|
||||
schema:
|
||||
$ref: "#/components/schemas/BookmarksResponse"
|
||||
tags:
|
||||
- "bookmark"
|
||||
- "graphql"
|
||||
|
||||
components:
|
||||
schemas:
|
||||
BookmarksResponse:
|
||||
required:
|
||||
- "data"
|
||||
properties:
|
||||
data:
|
||||
$ref: "#/components/schemas/BookmarksResponseData"
|
||||
|
||||
BookmarksResponseData:
|
||||
required:
|
||||
- "bookmark_timeline_v2"
|
||||
properties:
|
||||
bookmark_timeline_v2:
|
||||
$ref: "./../schemas/timeline.yaml#/components/schemas/Timeline"
|
||||
Loading…
Add table
Add a link
Reference in a new issue