1
Fork 0
mirror of https://github.com/thegeneralist01/twitter-openapi synced 2026-01-11 23:50:26 +01:00
Signed-off-by: ふぁ <yuki@yuki0311.com>
This commit is contained in:
ふぁ 2023-04-27 21:01:38 +09:00
parent 4d7c0c3ab5
commit 295edb55aa
No known key found for this signature in database
GPG key ID: 83A8A5E74872A8AA
54 changed files with 8026 additions and 578 deletions

View file

@ -1,5 +1,13 @@
components:
schemas:
CreateRetweet:
properties:
result:
items:
$ref: '#/components/schemas/Retweet'
type: object
required:
- result
CreateRetweetResponse:
properties:
data:
@ -15,9 +23,15 @@ components:
CreateRetweetResponseResult:
properties:
retweet_results:
$ref: ./../schemas/post.yaml#/components/schemas/CreateRetweet
$ref: '#/components/schemas/CreateRetweet'
required:
- retweet_results
CreateTweet:
properties:
result:
$ref: ./../schemas/tweet.yaml#/components/schemas/Tweet
required:
- result
CreateTweetResponse:
properties:
data:
@ -26,16 +40,24 @@ components:
- data
CreateTweetResponseData:
properties:
create_retweet:
create_tweet:
$ref: '#/components/schemas/CreateTweetResponseResult'
required:
- create_tweet
CreateTweetResponseResult:
properties:
tweet_results:
$ref: ./../schemas/post.yaml#/components/schemas/CreateTweet
$ref: '#/components/schemas/CreateTweet'
required:
- tweet_results
DeleteRetweet:
properties:
result:
items:
$ref: '#/components/schemas/Retweet'
type: object
required:
- result
DeleteRetweetResponse:
properties:
data:
@ -51,7 +73,7 @@ components:
DeleteRetweetResponseResult:
properties:
retweet_results:
$ref: ./../schemas/post.yaml#/components/schemas/DeleteRetweet
$ref: '#/components/schemas/DeleteRetweet'
required:
- source_tweet_results
DeleteTweetResponse:
@ -69,19 +91,44 @@ components:
DeleteTweetResponseResult:
properties:
tweet_results:
$ref: ./../schemas/post.yaml#/components/schemas/DeleteTweet
type: object
required:
- tweet_results
FavoriteTweet:
properties:
favorite_tweet:
type: string
required:
- favorite_tweet
FavoriteTweetResponseData:
properties:
data:
$ref: ./../schemas/post.yaml#/components/schemas/FavoriteTweet
$ref: '#/components/schemas/FavoriteTweet'
required:
- data
Retweet:
properties:
legacy:
items:
properties:
full_text:
type: string
type: object
rest_id:
type: string
required:
- rest_id
- legacy
UnfavoriteTweet:
properties:
unfavorite_tweet:
type: string
required:
- unfavorite_tweet
UnfavoriteTweetResponseData:
properties:
data:
$ref: ./../schemas/post.yaml#/components/schemas/UnfavoriteTweet
$ref: '#/components/schemas/UnfavoriteTweet'
required:
- data
info:
@ -92,38 +139,8 @@ paths:
/1RyAhNwby-gzGCRVsMxKbQ/CreateTweet:
post:
description: create Tweet
operationId: createTweet
operationId: postCreateTweet
parameters:
- in: query
name: variables
required: true
schema:
example: '{"tweet_text": "test", "media": {"media_entities": [], "possibly_sensitive":
false}, "semantic_annotation_ids": []}'
type: string
- in: query
name: features
required: true
schema:
example: '{"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, "interactive_text_enabled":
true, "responsive_web_text_conversations_enabled": false, "longform_notetweets_rich_text_read_enabled":
true, "blue_business_profile_image_shape_enabled": true, "responsive_web_graphql_exclude_directive_enabled":
true, "verified_phone_label_enabled": false, "freedom_of_speech_not_reach_fetch_enabled":
true, "standardized_nudges_misinfo": true, "tweet_with_visibility_results_prefer_gql_limited_actions_policy_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}'
type: string
- in: query
name: queryId
required: true
schema:
default: 1RyAhNwby-gzGCRVsMxKbQ
example: 1RyAhNwby-gzGCRVsMxKbQ
type: string
- in: header
name: authorization
required: true
@ -153,6 +170,38 @@ paths:
like Gecko) Chrome/112.0.0.0 Safari/537.36
description: UserAgent, some APIs may be rejected if changed.
type: string
requestBody:
content:
application/json:
schema:
properties:
features:
example: '{"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, "interactive_text_enabled":
true, "responsive_web_text_conversations_enabled": false, "longform_notetweets_rich_text_read_enabled":
true, "blue_business_profile_image_shape_enabled": true, "responsive_web_graphql_exclude_directive_enabled":
true, "verified_phone_label_enabled": false, "freedom_of_speech_not_reach_fetch_enabled":
true, "standardized_nudges_misinfo": true, "tweet_with_visibility_results_prefer_gql_limited_actions_policy_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}'
type: object
queryId:
default: 1RyAhNwby-gzGCRVsMxKbQ
example: 1RyAhNwby-gzGCRVsMxKbQ
type: string
variables:
example: '{"tweet_text": "test", "media": {"media_entities": [],
"possibly_sensitive": false}, "semantic_annotation_ids": [], "dark_request":
false}'
type: object
required:
- queryId
- variables
- features
required: true
responses:
'200':
content:
@ -199,27 +248,8 @@ paths:
/VaenaVgh5q5ih7kvyVjgtg/DeleteTweet:
post:
description: delete Retweet
operationId: deleteTweet
operationId: postDeleteTweet
parameters:
- in: query
name: variables
required: true
schema:
example: '{"tweet_id": "1349129669258448897"}'
type: string
- in: query
name: features
required: true
schema:
example: '{}'
type: string
- in: query
name: queryId
required: true
schema:
default: VaenaVgh5q5ih7kvyVjgtg
example: VaenaVgh5q5ih7kvyVjgtg
type: string
- in: header
name: authorization
required: true
@ -249,6 +279,26 @@ paths:
like Gecko) Chrome/112.0.0.0 Safari/537.36
description: UserAgent, some APIs may be rejected if changed.
type: string
requestBody:
content:
application/json:
schema:
properties:
features:
example: '{{Features}}'
type: object
queryId:
default: VaenaVgh5q5ih7kvyVjgtg
example: VaenaVgh5q5ih7kvyVjgtg
type: string
variables:
example: '{"tweet_id": "1349129669258448897"}'
type: object
required:
- queryId
- variables
- features
required: true
responses:
'200':
content:
@ -295,27 +345,8 @@ paths:
/ZYKSe-w7KEslx3JhSIk5LA/UnfavoriteTweet:
post:
description: unfavorite Tweet
operationId: unfavoriteTweet
operationId: postUnfavoriteTweet
parameters:
- in: query
name: variables
required: true
schema:
example: '{"tweet_id": "1349129669258448897"}'
type: string
- in: query
name: features
required: true
schema:
example: '{}'
type: string
- in: query
name: queryId
required: true
schema:
default: ZYKSe-w7KEslx3JhSIk5LA
example: ZYKSe-w7KEslx3JhSIk5LA
type: string
- in: header
name: authorization
required: true
@ -345,6 +376,26 @@ paths:
like Gecko) Chrome/112.0.0.0 Safari/537.36
description: UserAgent, some APIs may be rejected if changed.
type: string
requestBody:
content:
application/json:
schema:
properties:
features:
example: '{{Features}}'
type: object
queryId:
default: ZYKSe-w7KEslx3JhSIk5LA
example: ZYKSe-w7KEslx3JhSIk5LA
type: string
variables:
example: '{"tweet_id": "1349129669258448897"}'
type: object
required:
- queryId
- variables
- features
required: true
responses:
'200':
content:
@ -391,27 +442,8 @@ paths:
/iQtK4dl5hBmXewYZuEOKVw/DeleteRetweet:
post:
description: delete Retweet
operationId: deleteRetweet
operationId: postDeleteRetweet
parameters:
- in: query
name: variables
required: true
schema:
example: '{"tweet_id": "1349129669258448897"}'
type: string
- in: query
name: features
required: true
schema:
example: '{}'
type: string
- in: query
name: queryId
required: true
schema:
default: iQtK4dl5hBmXewYZuEOKVw
example: iQtK4dl5hBmXewYZuEOKVw
type: string
- in: header
name: authorization
required: true
@ -441,6 +473,26 @@ paths:
like Gecko) Chrome/112.0.0.0 Safari/537.36
description: UserAgent, some APIs may be rejected if changed.
type: string
requestBody:
content:
application/json:
schema:
properties:
features:
example: '{{Features}}'
type: object
queryId:
default: iQtK4dl5hBmXewYZuEOKVw
example: iQtK4dl5hBmXewYZuEOKVw
type: string
variables:
example: '{"tweet_id": "1349129669258448897"}'
type: object
required:
- queryId
- variables
- features
required: true
responses:
'200':
content:
@ -487,27 +539,8 @@ paths:
/lI07N6Otwv1PhnEgXILM7A/FavoriteTweet:
post:
description: favorite Tweet
operationId: favoriteTweet
operationId: postFavoriteTweet
parameters:
- in: query
name: variables
required: true
schema:
example: '{"tweet_id": "1349129669258448897"}'
type: string
- in: query
name: features
required: true
schema:
example: '{}'
type: string
- in: query
name: queryId
required: true
schema:
default: lI07N6Otwv1PhnEgXILM7A
example: lI07N6Otwv1PhnEgXILM7A
type: string
- in: header
name: authorization
required: true
@ -537,6 +570,26 @@ paths:
like Gecko) Chrome/112.0.0.0 Safari/537.36
description: UserAgent, some APIs may be rejected if changed.
type: string
requestBody:
content:
application/json:
schema:
properties:
features:
example: '{{Features}}'
type: object
queryId:
default: lI07N6Otwv1PhnEgXILM7A
example: lI07N6Otwv1PhnEgXILM7A
type: string
variables:
example: '{"tweet_id": "1349129669258448897"}'
type: object
required:
- queryId
- variables
- features
required: true
responses:
'200':
content:
@ -583,27 +636,8 @@ paths:
/ojPdsZsimiJrUGLR1sjUtA/CreateRetweet:
post:
description: create Retweet
operationId: createRetweet
operationId: postCreateRetweet
parameters:
- in: query
name: variables
required: true
schema:
example: '{"tweet_id": "1349129669258448897"}'
type: string
- in: query
name: features
required: true
schema:
example: '{}'
type: string
- in: query
name: queryId
required: true
schema:
default: ojPdsZsimiJrUGLR1sjUtA
example: ojPdsZsimiJrUGLR1sjUtA
type: string
- in: header
name: authorization
required: true
@ -633,6 +667,26 @@ paths:
like Gecko) Chrome/112.0.0.0 Safari/537.36
description: UserAgent, some APIs may be rejected if changed.
type: string
requestBody:
content:
application/json:
schema:
properties:
features:
example: '{{Features}}'
type: object
queryId:
default: ojPdsZsimiJrUGLR1sjUtA
example: ojPdsZsimiJrUGLR1sjUtA
type: string
variables:
example: '{"tweet_id": "1349129669258448897"}'
type: object
required:
- queryId
- variables
- features
required: true
responses:
'200':
content: