Skip to content
Merged

Dev #88

Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions .vscode/tasks.json
Original file line number Diff line number Diff line change
Expand Up @@ -39,20 +39,23 @@
"command": [
"python3.10 -m venv .venv;",
".venv/bin/python3 -m pip install -r requirements.txt;",
"pip install urllib3>=2.1.0;",
"curl https://repo1.maven.org/maven2/org/openapitools/openapi-generator-cli/7.12.0/openapi-generator-cli-7.12.0.jar -o openapi-generator-cli.jar;"
]
},
"linux": {
"command": [
"python3 -m venv .venv;",
".venv/bin/python3 -m pip install -r requirements.txt;",
"pip install urllib3>=2.1.0;",
"wget https://repo1.maven.org/maven2/org/openapitools/openapi-generator-cli/7.12.0/openapi-generator-cli-7.12.0.jar -O openapi-generator-cli.jar;"
]
},
"windows": {
"command": [
"python -m venv .venv;",
".venv/Scripts/python -m pip install -r requirements.txt;",
"pip install urllib3>=2.1.0;",
"Invoke-WebRequest https://repo1.maven.org/maven2/org/openapitools/openapi-generator-cli/7.12.0/openapi-generator-cli-7.12.0.jar -OutFile openapi-generator-cli.jar;"
]
}
Expand Down
99 changes: 99 additions & 0 deletions dist/compatible/openapi-3.0.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6211,6 +6211,105 @@ paths:
type: string
tags:
- tweet
/graphql/{pathQueryId}/TweetResultByRestId:
get:
description: get TweetResultByRestId
operationId: getTweetResultByRestId
parameters:
- in: path
name: pathQueryId
required: true
schema:
default: 7xflPyRiUxGVbJd4uWmbfg
example: 7xflPyRiUxGVbJd4uWmbfg
type: string
- in: query
name: variables
required: true
schema:
default: '{"tweetId": "1691730070669517096", "withCommunity": false, "includePromotedContent":
false, "withVoice": false}'
example: '{"tweetId": "1691730070669517096", "withCommunity": false, "includePromotedContent":
false, "withVoice": false}'
type: string
- in: query
name: features
required: true
schema:
default: '{"creator_subscriptions_tweet_preview_api_enabled": true, "communities_web_enable_tweet_community_results_fetch":
true, "c9s_tweet_anatomy_moderator_badge_enabled": true, "articles_preview_enabled":
true, "tweetypie_unmention_optimization_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, "responsive_web_twitter_article_tweet_consumption_enabled": true,
"tweet_awards_web_tipping_enabled": false, "creator_subscriptions_quote_tweet_preview_enabled":
false, "freedom_of_speech_not_reach_fetch_enabled": true, "standardized_nudges_misinfo":
true, "tweet_with_visibility_results_prefer_gql_limited_actions_policy_enabled":
true, "tweet_with_visibility_results_prefer_gql_media_interstitial_enabled":
true, "rweb_video_timestamps_enabled": true, "longform_notetweets_rich_text_read_enabled":
true, "longform_notetweets_inline_media_enabled": true, "rweb_tipjar_consumption_enabled":
true, "responsive_web_graphql_exclude_directive_enabled": true, "verified_phone_label_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}'
example: '{"creator_subscriptions_tweet_preview_api_enabled": true, "communities_web_enable_tweet_community_results_fetch":
true, "c9s_tweet_anatomy_moderator_badge_enabled": true, "articles_preview_enabled":
true, "tweetypie_unmention_optimization_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, "responsive_web_twitter_article_tweet_consumption_enabled": true,
"tweet_awards_web_tipping_enabled": false, "creator_subscriptions_quote_tweet_preview_enabled":
false, "freedom_of_speech_not_reach_fetch_enabled": true, "standardized_nudges_misinfo":
true, "tweet_with_visibility_results_prefer_gql_limited_actions_policy_enabled":
true, "tweet_with_visibility_results_prefer_gql_media_interstitial_enabled":
true, "rweb_video_timestamps_enabled": true, "longform_notetweets_rich_text_read_enabled":
true, "longform_notetweets_inline_media_enabled": true, "rweb_tipjar_consumption_enabled":
true, "responsive_web_graphql_exclude_directive_enabled": true, "verified_phone_label_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: fieldToggles
required: true
schema:
default: '{"withArticleRichContentState": true, "withArticlePlainText":
false}'
example: '{"withArticleRichContentState": true, "withArticlePlainText":
false}'
type: string
responses:
'200':
content:
application/json:
schema:
$ref: '#/components/schemas/TweetResultByRestIdResponse'
description: Successful operation
headers:
x-connection-hash:
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
/graphql/{pathQueryId}/UnfavoriteTweet:
post:
description: unfavorite Tweet
Expand Down
226 changes: 226 additions & 0 deletions dist/docs/openapi-3.0.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8001,6 +8001,232 @@ paths:
type: string
tags:
- tweet
/graphql/{pathQueryId}/TweetResultByRestId:
get:
description: get TweetResultByRestId
operationId: getTweetResultByRestId
parameters:
- in: path
name: pathQueryId
required: true
schema:
default: 7xflPyRiUxGVbJd4uWmbfg
example: 7xflPyRiUxGVbJd4uWmbfg
type: string
- content:
application/json:
schema:
properties:
includePromotedContent:
default: false
example: false
type: boolean
tweetId:
default: '1691730070669517096'
example: '1691730070669517096'
type: string
withCommunity:
default: false
example: false
type: boolean
withVoice:
default: false
example: false
type: boolean
required:
- tweetId
- withCommunity
- includePromotedContent
- withVoice
type: object
in: query
name: variables
required: true
- content:
application/json:
schema:
properties:
articles_preview_enabled:
default: true
example: true
type: boolean
c9s_tweet_anatomy_moderator_badge_enabled:
default: true
example: true
type: boolean
communities_web_enable_tweet_community_results_fetch:
default: true
example: true
type: boolean
creator_subscriptions_quote_tweet_preview_enabled:
default: false
example: false
type: boolean
creator_subscriptions_tweet_preview_api_enabled:
default: true
example: true
type: boolean
freedom_of_speech_not_reach_fetch_enabled:
default: true
example: true
type: boolean
graphql_is_translatable_rweb_tweet_is_translatable_enabled:
default: true
example: true
type: boolean
longform_notetweets_consumption_enabled:
default: true
example: true
type: boolean
longform_notetweets_inline_media_enabled:
default: true
example: true
type: boolean
longform_notetweets_rich_text_read_enabled:
default: true
example: true
type: boolean
responsive_web_edit_tweet_api_enabled:
default: true
example: true
type: boolean
responsive_web_enhance_cards_enabled:
default: false
example: false
type: boolean
responsive_web_graphql_exclude_directive_enabled:
default: true
example: true
type: boolean
responsive_web_graphql_skip_user_profile_image_extensions_enabled:
default: false
example: false
type: boolean
responsive_web_graphql_timeline_navigation_enabled:
default: true
example: true
type: boolean
responsive_web_twitter_article_tweet_consumption_enabled:
default: true
example: true
type: boolean
rweb_tipjar_consumption_enabled:
default: true
example: true
type: boolean
rweb_video_timestamps_enabled:
default: true
example: true
type: boolean
standardized_nudges_misinfo:
default: true
example: true
type: boolean
tweet_awards_web_tipping_enabled:
default: false
example: false
type: boolean
tweet_with_visibility_results_prefer_gql_limited_actions_policy_enabled:
default: true
example: true
type: boolean
tweet_with_visibility_results_prefer_gql_media_interstitial_enabled:
default: true
example: true
type: boolean
tweetypie_unmention_optimization_enabled:
default: true
example: true
type: boolean
verified_phone_label_enabled:
default: false
example: false
type: boolean
view_counts_everywhere_api_enabled:
default: true
example: true
type: boolean
required:
- creator_subscriptions_tweet_preview_api_enabled
- communities_web_enable_tweet_community_results_fetch
- c9s_tweet_anatomy_moderator_badge_enabled
- articles_preview_enabled
- tweetypie_unmention_optimization_enabled
- responsive_web_edit_tweet_api_enabled
- graphql_is_translatable_rweb_tweet_is_translatable_enabled
- view_counts_everywhere_api_enabled
- longform_notetweets_consumption_enabled
- responsive_web_twitter_article_tweet_consumption_enabled
- tweet_awards_web_tipping_enabled
- creator_subscriptions_quote_tweet_preview_enabled
- freedom_of_speech_not_reach_fetch_enabled
- standardized_nudges_misinfo
- tweet_with_visibility_results_prefer_gql_limited_actions_policy_enabled
- tweet_with_visibility_results_prefer_gql_media_interstitial_enabled
- rweb_video_timestamps_enabled
- longform_notetweets_rich_text_read_enabled
- longform_notetweets_inline_media_enabled
- rweb_tipjar_consumption_enabled
- responsive_web_graphql_exclude_directive_enabled
- verified_phone_label_enabled
- responsive_web_graphql_skip_user_profile_image_extensions_enabled
- responsive_web_graphql_timeline_navigation_enabled
- responsive_web_enhance_cards_enabled
type: object
in: query
name: features
required: true
- content:
application/json:
schema:
properties:
withArticlePlainText:
default: false
example: false
type: boolean
withArticleRichContentState:
default: true
example: true
type: boolean
required:
- withArticleRichContentState
- withArticlePlainText
type: object
in: query
name: fieldToggles
required: true
responses:
'200':
content:
application/json:
schema:
$ref: '#/components/schemas/TweetResultByRestIdResponse'
description: Successful operation
headers:
x-connection-hash:
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
/graphql/{pathQueryId}/UnfavoriteTweet:
post:
description: unfavorite Tweet
Expand Down
26 changes: 13 additions & 13 deletions src/openapi/paths/tweet.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,19 +18,19 @@ paths:
tags:
- "tweet"

# /graphql/{pathQueryId}/TweetResultByRestId:
# get:
# operationId: getTweetResultByRestId
# description: get TweetResultByRestId
# responses:
# "200":
# description: Successful operation
# content:
# application/json:
# schema:
# $ref: "#/components/schemas/TweetResultByRestIdResponse"
# # tags:
# # - "tweet"
/graphql/{pathQueryId}/TweetResultByRestId:
get:
operationId: getTweetResultByRestId
description: get TweetResultByRestId
responses:
"200":
description: Successful operation
content:
application/json:
schema:
$ref: "#/components/schemas/TweetResultByRestIdResponse"
# tags:
# - "tweet"

/graphql/{pathQueryId}/Favoriters:
get:
Expand Down