1
Fork 0
mirror of https://github.com/thegeneralist01/twitter-openapi synced 2026-01-11 23:50:26 +01:00
twitter-openapi/dist/test/paths/post.yaml
ふぁ 982181af54
build
Signed-off-by: ふぁ <yuki@yuki0311.com>
2023-05-10 11:49:37 +09:00

485 lines
15 KiB
YAML

components:
schemas:
CreateRetweet:
properties:
result:
$ref: '#/components/schemas/Retweet'
required:
- result
CreateRetweetResponse:
properties:
data:
$ref: '#/components/schemas/CreateRetweetResponseData'
required:
- data
CreateRetweetResponseData:
properties:
create_retweet:
$ref: '#/components/schemas/CreateRetweetResponseResult'
required:
- create_retweet
CreateRetweetResponseResult:
properties:
retweet_results:
$ref: '#/components/schemas/CreateRetweet'
required:
- retweet_results
CreateTweet:
properties:
result:
$ref: ./../schemas/tweet.yaml#/components/schemas/Tweet
required:
- result
CreateTweetResponse:
properties:
data:
$ref: '#/components/schemas/CreateTweetResponseData'
required:
- data
CreateTweetResponseData:
properties:
create_tweet:
$ref: '#/components/schemas/CreateTweetResponseResult'
required:
- create_tweet
CreateTweetResponseResult:
properties:
tweet_results:
$ref: '#/components/schemas/CreateTweet'
required:
- tweet_results
DeleteRetweet:
properties:
result:
items:
$ref: '#/components/schemas/Retweet'
type: object
required:
- result
DeleteRetweetResponse:
properties:
data:
$ref: '#/components/schemas/DeleteRetweetResponseData'
required:
- data
DeleteRetweetResponseData:
properties:
create_retweet:
$ref: '#/components/schemas/CreateRetweetResponseResult'
required:
- unretweet
DeleteRetweetResponseResult:
properties:
retweet_results:
$ref: '#/components/schemas/DeleteRetweet'
required:
- source_tweet_results
DeleteTweetResponse:
properties:
data:
$ref: '#/components/schemas/DeleteTweetResponseData'
required:
- data
DeleteTweetResponseData:
properties:
delete_retweet:
$ref: '#/components/schemas/DeleteTweetResponseResult'
required:
- delete_tweet
DeleteTweetResponseResult:
properties:
tweet_results:
type: object
required:
- tweet_results
FavoriteTweet:
properties:
favorite_tweet:
type: string
required:
- favorite_tweet
FavoriteTweetResponseData:
properties:
data:
$ref: '#/components/schemas/FavoriteTweet'
required:
- data
Retweet:
properties:
legacy:
properties:
full_text:
type: string
required:
- full_text
type: object
rest_id:
pattern: ^[0-9]+$
type: string
required:
- rest_id
- legacy
UnfavoriteTweet:
properties:
unfavorite_tweet:
type: string
required:
- unfavorite_tweet
UnfavoriteTweetResponseData:
properties:
data:
$ref: '#/components/schemas/UnfavoriteTweet'
required:
- data
info:
title: Twitter OpenAPI
version: 0.0.1
openapi: 3.0.3
paths:
/graphql/1RyAhNwby-gzGCRVsMxKbQ/CreateTweet:
post:
description: create Tweet
operationId: postCreateTweet
parameters:
- in: query
name: queryId
required: true
schema:
default: '"1RyAhNwby-gzGCRVsMxKbQ"'
example: '"1RyAhNwby-gzGCRVsMxKbQ"'
type: string
- in: query
name: variables
required: true
schema:
default: '{"tweet_text": "test", "media": {"media_entities": [], "possibly_sensitive":
false}, "semantic_annotation_ids": [], "dark_request": false}'
example: '{"tweet_text": "test", "media": {"media_entities": [], "possibly_sensitive":
false}, "semantic_annotation_ids": [], "dark_request": false}'
type: string
- in: query
name: features
required: true
schema:
default: '{"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}'
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
responses:
'200':
content:
application/json:
schema:
$ref: '#/components/schemas/CreateTweetResponse'
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
tags:
- post
/graphql/VaenaVgh5q5ih7kvyVjgtg/DeleteTweet:
post:
description: delete Retweet
operationId: postDeleteTweet
parameters:
- in: query
name: queryId
required: true
schema:
default: '"VaenaVgh5q5ih7kvyVjgtg"'
example: '"VaenaVgh5q5ih7kvyVjgtg"'
type: string
- in: query
name: variables
required: true
schema:
default: '{"tweet_id": "1349129669258448897", "dark_request": false}'
example: '{"tweet_id": "1349129669258448897", "dark_request": false}'
type: string
responses:
'200':
content:
application/json:
schema:
$ref: '#/components/schemas/DeleteTweetResponse'
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
tags:
- post
/graphql/ZYKSe-w7KEslx3JhSIk5LA/UnfavoriteTweet:
post:
description: unfavorite Tweet
operationId: postUnfavoriteTweet
parameters:
- in: query
name: queryId
required: true
schema:
default: '"ZYKSe-w7KEslx3JhSIk5LA"'
example: '"ZYKSe-w7KEslx3JhSIk5LA"'
type: string
- in: query
name: variables
required: true
schema:
default: '{"tweet_id": "1349129669258448897", "dark_request": false}'
example: '{"tweet_id": "1349129669258448897", "dark_request": false}'
type: string
responses:
'200':
content:
application/json:
schema:
$ref: '#/components/schemas/UnfavoriteTweetResponseData'
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
tags:
- post
/graphql/iQtK4dl5hBmXewYZuEOKVw/DeleteRetweet:
post:
description: delete Retweet
operationId: postDeleteRetweet
parameters:
- in: query
name: queryId
required: true
schema:
default: '"iQtK4dl5hBmXewYZuEOKVw"'
example: '"iQtK4dl5hBmXewYZuEOKVw"'
type: string
- in: query
name: variables
required: true
schema:
default: '{"source_tweet_id": "1349129669258448897", "dark_request": false}'
example: '{"source_tweet_id": "1349129669258448897", "dark_request": false}'
type: string
responses:
'200':
content:
application/json:
schema:
$ref: '#/components/schemas/DeleteRetweetResponse'
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
tags:
- post
/graphql/lI07N6Otwv1PhnEgXILM7A/FavoriteTweet:
post:
description: favorite Tweet
operationId: postFavoriteTweet
parameters:
- in: query
name: queryId
required: true
schema:
default: '"lI07N6Otwv1PhnEgXILM7A"'
example: '"lI07N6Otwv1PhnEgXILM7A"'
type: string
- in: query
name: variables
required: true
schema:
default: '{"tweet_id": "1349129669258448897", "dark_request": false}'
example: '{"tweet_id": "1349129669258448897", "dark_request": false}'
type: string
responses:
'200':
content:
application/json:
schema:
$ref: '#/components/schemas/FavoriteTweetResponseData'
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
tags:
- post
/graphql/ojPdsZsimiJrUGLR1sjUtA/CreateRetweet:
post:
description: create Retweet
operationId: postCreateRetweet
parameters:
- in: query
name: queryId
required: true
schema:
default: '"ojPdsZsimiJrUGLR1sjUtA"'
example: '"ojPdsZsimiJrUGLR1sjUtA"'
type: string
- in: query
name: variables
required: true
schema:
default: '{"tweet_id": "1349129669258448897", "dark_request": false}'
example: '{"tweet_id": "1349129669258448897", "dark_request": false}'
type: string
responses:
'200':
content:
application/json:
schema:
$ref: '#/components/schemas/CreateRetweetResponse'
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
tags:
- post