mirror of
https://github.com/thegeneralist01/twitter-openapi
synced 2026-01-11 23:50:26 +01:00
add
Signed-off-by: ふぁ <yuki@yuki0311.com>
This commit is contained in:
parent
ca1fbb7815
commit
cce687ba15
9 changed files with 268 additions and 95 deletions
|
|
@ -436,7 +436,10 @@
|
|||
},
|
||||
"features": {}
|
||||
},
|
||||
"create.json": {
|
||||
"=====v1.1====": {
|
||||
"url": "https://twitter.com/i/api/1.1/"
|
||||
},
|
||||
"friendships/create.json": {
|
||||
"include_profile_interstitial_type": 1,
|
||||
"include_blocking": 1,
|
||||
"include_blocked_by": 1,
|
||||
|
|
@ -450,11 +453,91 @@
|
|||
"include_ext_verified_type": 1,
|
||||
"include_ext_profile_image_shape": 1,
|
||||
"skip_status": 1,
|
||||
"user_id": 1180389371481976833
|
||||
"user_id": 44196397
|
||||
},
|
||||
"Template": {
|
||||
"queryId": "",
|
||||
"variables": {},
|
||||
"features": {}
|
||||
"friendships/destroy.json": {
|
||||
"include_profile_interstitial_type": 1,
|
||||
"include_blocking": 1,
|
||||
"include_blocked_by": 1,
|
||||
"include_followed_by": 1,
|
||||
"include_want_retweets": 1,
|
||||
"include_mute_edge": 1,
|
||||
"include_can_dm": 1,
|
||||
"include_can_media_tag": 1,
|
||||
"include_ext_has_nft_avatar": 1,
|
||||
"include_ext_is_blue_verified": 1,
|
||||
"include_ext_verified_type": 1,
|
||||
"include_ext_profile_image_shape": 1,
|
||||
"skip_status": 1,
|
||||
"user_id": 44196397
|
||||
},
|
||||
"friends/following/list.json": {
|
||||
"include_profile_interstitial_type": 1,
|
||||
"include_blocking": 1,
|
||||
"include_blocked_by": 1,
|
||||
"include_followed_by": 1,
|
||||
"include_want_retweets": 1,
|
||||
"include_mute_edge": 1,
|
||||
"include_can_dm": 1,
|
||||
"include_can_media_tag": 1,
|
||||
"include_ext_has_nft_avatar": 1,
|
||||
"include_ext_is_blue_verified": 1,
|
||||
"include_ext_verified_type": 1,
|
||||
"include_ext_profile_image_shape": 1,
|
||||
"skip_status": 1,
|
||||
"cursor": -1,
|
||||
"user_id": 17152334,
|
||||
"count": 3,
|
||||
"with_total_count": true
|
||||
},
|
||||
"search/typeahead.json": {
|
||||
"include_ext_is_blue_verified": 1,
|
||||
"include_ext_verified_type": 1,
|
||||
"include_ext_profile_image_shape": 1,
|
||||
"q": "aaa",
|
||||
"src": "search_box",
|
||||
"result_type": "events,users,topics"
|
||||
},
|
||||
"=====v2====": {
|
||||
"url": "https://twitter.com/i/api/2"
|
||||
},
|
||||
"search/adaptive.json": {
|
||||
"include_profile_interstitial_type": 1,
|
||||
"include_blocking": 1,
|
||||
"include_blocked_by": 1,
|
||||
"include_followed_by": 1,
|
||||
"include_want_retweets": 1,
|
||||
"include_mute_edge": 1,
|
||||
"include_can_dm": 1,
|
||||
"include_can_media_tag": 1,
|
||||
"include_ext_has_nft_avatar": 1,
|
||||
"include_ext_is_blue_verified": 1,
|
||||
"include_ext_verified_type": 1,
|
||||
"include_ext_profile_image_shape": 1,
|
||||
"skip_status": 1,
|
||||
"cards_platform": "Web-12",
|
||||
"include_cards": 1,
|
||||
"include_ext_alt_text": true,
|
||||
"include_ext_limited_action_results": false,
|
||||
"include_quote_count": true,
|
||||
"include_reply_count": 1,
|
||||
"tweet_mode": "extended",
|
||||
"include_ext_views": true,
|
||||
"include_entities": true,
|
||||
"include_user_entities": true,
|
||||
"include_ext_media_color": true,
|
||||
"include_ext_media_availability": true,
|
||||
"include_ext_sensitive_media_warning": true,
|
||||
"include_ext_trusted_friends_metadata": true,
|
||||
"send_error_codes": true,
|
||||
"simple_quoted_tweet": true,
|
||||
"q": "elon musk",
|
||||
"query_source": "trend_click",
|
||||
"count": 20,
|
||||
"requestContext": "launch",
|
||||
"pc": 1,
|
||||
"spelling_corrections": 1,
|
||||
"include_ext_edit_control": true,
|
||||
"ext": "mediaStats,highlightedLabel,hasNftAvatar,voiceInfo,birdwatchPivot,enrichments,superFollowMetadata,unmentionInfo,editControl,vibe"
|
||||
}
|
||||
}
|
||||
|
|
@ -53,11 +53,17 @@ security:
|
|||
tags:
|
||||
- name: user
|
||||
description: response User
|
||||
- name: userList
|
||||
- name: user-list
|
||||
description: response User list
|
||||
- name: tweet
|
||||
description: response tweet
|
||||
- name: post
|
||||
description: post
|
||||
- name: v1.1
|
||||
description: legacy APIs
|
||||
- name: v1.1-get
|
||||
description: legacy APIs get
|
||||
- name: v1.1-post
|
||||
description: legacy APIs post
|
||||
- name: v2-get
|
||||
description: legacy APIs get
|
||||
- name: v2-post
|
||||
description: legacy APIs post
|
||||
|
|
|
|||
|
|
@ -16,7 +16,7 @@ paths:
|
|||
schema:
|
||||
$ref: "#/components/schemas/FollowResponse"
|
||||
tags:
|
||||
- "userList"
|
||||
- "user-list"
|
||||
|
||||
/graphql/{{queryId}}/Followers:
|
||||
get:
|
||||
|
|
@ -30,7 +30,7 @@ paths:
|
|||
schema:
|
||||
$ref: "#/components/schemas/FollowResponse"
|
||||
tags:
|
||||
- "userList"
|
||||
- "user-list"
|
||||
|
||||
components:
|
||||
schemas:
|
||||
|
|
|
|||
25
src/openapi/paths/v1.1-get.yaml
Normal file
25
src/openapi/paths/v1.1-get.yaml
Normal file
|
|
@ -0,0 +1,25 @@
|
|||
openapi: 3.0.3
|
||||
info:
|
||||
title: Twitter OpenAPI
|
||||
version: 0.0.1
|
||||
|
||||
paths:
|
||||
/1.1/friends/following/list.json:
|
||||
get:
|
||||
operationId: getFriendsFollowingList
|
||||
description: get friends following list
|
||||
responses:
|
||||
"200":
|
||||
description: Successful operation
|
||||
tags:
|
||||
- "v1.1-get"
|
||||
|
||||
/1.1/search/typeahead.json:
|
||||
get:
|
||||
operationId: getSearchTypeahead
|
||||
description: get search typeahead
|
||||
responses:
|
||||
"200":
|
||||
description: Successful operation
|
||||
tags:
|
||||
- "v1.1-get"
|
||||
25
src/openapi/paths/v1.1-post.yaml
Normal file
25
src/openapi/paths/v1.1-post.yaml
Normal file
|
|
@ -0,0 +1,25 @@
|
|||
openapi: 3.0.3
|
||||
info:
|
||||
title: Twitter OpenAPI
|
||||
version: 0.0.1
|
||||
|
||||
paths:
|
||||
/1.1/friendships/create.json:
|
||||
post:
|
||||
operationId: postCreateFriendships
|
||||
description: post create friendships
|
||||
responses:
|
||||
"200":
|
||||
description: Successful operation
|
||||
tags:
|
||||
- "v1.1-post"
|
||||
|
||||
/1.1/friendships/destroy.json:
|
||||
post:
|
||||
operationId: postDestroyFriendships
|
||||
description: post destroy friendships
|
||||
responses:
|
||||
"200":
|
||||
description: Successful operation
|
||||
tags:
|
||||
- "v1.1-post"
|
||||
|
|
@ -4,12 +4,12 @@ info:
|
|||
version: 0.0.1
|
||||
|
||||
paths:
|
||||
/1.1/friendships/create.json:
|
||||
post:
|
||||
operationId: postCreateFriendships
|
||||
description: post create friendships
|
||||
/2/search/adaptive.json:
|
||||
get:
|
||||
operationId: getSearchAdaptive
|
||||
description: get search adaptive
|
||||
responses:
|
||||
"200":
|
||||
description: Successful operation
|
||||
tags:
|
||||
- "v1.1"
|
||||
- "v2.0-get"
|
||||
Loading…
Add table
Add a link
Reference in a new issue