1
Fork 0
mirror of https://github.com/thegeneralist01/twitter-openapi synced 2026-01-11 23:50:26 +01:00

update builder

Signed-off-by: ふぁ <yuki@yuki0311.com>
This commit is contained in:
ふぁ 2023-05-02 21:58:49 +09:00
parent c22926614e
commit 3419b5c0ab
No known key found for this signature in database
GPG key ID: 83A8A5E74872A8AA
19 changed files with 539 additions and 480 deletions

View file

@ -42,30 +42,6 @@ components:
name: x-twitter-auth-type
description: "OAuth2Session if you are logged in"
# {% if header == securitySchemes %}
UserAgent:
description: "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/112.0.0.0 Safari/537.36"
in: header
name: user-agent
type: apiKey
ActiveUser:
description: "yes"
in: header
name: x-twitter-active-user
type: apiKey
BearerAuth:
description: AAAAAAAAAAAAAAAAAAAAANRILgAAAAAAnNwIzUejRCOuH5E6I8xnZz4puTs%3D1Zv7ttfk8LF81IUq16cHjhLTvJu4FA33AGWWjCpTnA
scheme: bearer
type: http
ClientLanguage:
description: en
in: header
name: x-twitter-client-language
type: apiKey
# {% endif %}
security:
- bearerAuth: []
- CsrfToken: []

View file

@ -4,7 +4,7 @@ info:
version: 0.0.1
paths:
/{{BookmarksQuery}}/Bookmarks:
/graphql/{{queryId}}/Bookmarks:
get:
operationId: getBookmarks
description: get bookmarks
@ -16,7 +16,7 @@ paths:
schema:
$ref: "#/components/schemas/BookmarksResponse"
tags:
- "Tweet"
- "tweet"
components:
schemas:

View file

@ -4,7 +4,7 @@ info:
version: 0.0.1
paths:
/{{FollowingQuery}}/Following:
/graphql/{{queryId}}/Following:
get:
operationId: getFollowing
description: get user list of following
@ -16,9 +16,9 @@ paths:
schema:
$ref: "#/components/schemas/FollowResponse"
tags:
- "UserList"
- "userList"
/{{FollowersQuery}}/Followers:
/graphql/{{queryId}}/Followers:
get:
operationId: getFollowers
description: get user list of followers
@ -30,7 +30,7 @@ paths:
schema:
$ref: "#/components/schemas/FollowResponse"
tags:
- "UserList"
- "userList"
components:
schemas:

View file

@ -4,7 +4,7 @@ info:
version: 0.0.1
paths:
/{{FavoriteTweetQuery}}/FavoriteTweet:
/graphql/{{queryId}}/FavoriteTweet:
post:
operationId: postFavoriteTweet
description: favorite Tweet
@ -16,9 +16,9 @@ paths:
schema:
$ref: "#/components/schemas/FavoriteTweetResponseData"
tags:
- "Post"
- "post"
/{{UnfavoriteTweetQuery}}/UnfavoriteTweet:
/graphql/{{queryId}}/UnfavoriteTweet:
post:
operationId: postUnfavoriteTweet
description: unfavorite Tweet
@ -30,9 +30,9 @@ paths:
schema:
$ref: "#/components/schemas/UnfavoriteTweetResponseData"
tags:
- "Post"
- "post"
/{{CreateRetweetQuery}}/CreateRetweet:
/graphql/{{queryId}}/CreateRetweet:
post:
operationId: postCreateRetweet
description: create Retweet
@ -44,9 +44,9 @@ paths:
schema:
$ref: "#/components/schemas/CreateRetweetResponse"
tags:
- "Post"
- "post"
/{{DeleteRetweetQuery}}/DeleteRetweet:
/graphql/{{queryId}}/DeleteRetweet:
post:
operationId: postDeleteRetweet
description: delete Retweet
@ -58,9 +58,9 @@ paths:
schema:
$ref: "#/components/schemas/DeleteRetweetResponse"
tags:
- "Post"
- "post"
/{{CreateTweetQuery}}/CreateTweet:
/graphql/{{queryId}}/CreateTweet:
post:
operationId: postCreateTweet
description: create Tweet
@ -72,9 +72,9 @@ paths:
schema:
$ref: "#/components/schemas/CreateTweetResponse"
tags:
- "Post"
- "post"
/{{DeleteTweetQuery}}/DeleteTweet:
/graphql/{{queryId}}/DeleteTweet:
post:
operationId: postDeleteTweet
description: delete Retweet
@ -86,7 +86,7 @@ paths:
schema:
$ref: "#/components/schemas/DeleteTweetResponse"
tags:
- "Post"
- "post"
components:
schemas:

View file

@ -4,7 +4,7 @@ info:
version: 0.0.1
paths:
/{{ProfileSpotlightsQueryQuery}}/ProfileSpotlightsQuery:
/graphql/{{queryId}}/ProfileSpotlightsQuery:
get:
operationId: getProfileSpotlightsQuery
description: "get user by screen name"

View file

@ -4,7 +4,7 @@ info:
version: 0.0.1
paths:
/{{HomeTimelineQuery}}/HomeTimeline:
/graphql/{{queryId}}/HomeTimeline:
get:
operationId: getHomeTimeline
description: get tweet list of timeline
@ -16,9 +16,9 @@ paths:
schema:
$ref: "#/components/schemas/TimelineResponse"
tags:
- "Tweet"
- "tweet"
/{{HomeLatestTimelineQuery}}/HomeLatestTimeline:
/graphql/{{queryId}}/HomeLatestTimeline:
get:
operationId: getHomeLatestTimeline
description: get tweet list of timeline
@ -30,9 +30,9 @@ paths:
schema:
$ref: "#/components/schemas/TimelineResponse"
tags:
- "Tweet"
- "tweet"
/{{ListLatestTweetsTimelineQuery}}/ListLatestTweetsTimeline:
/graphql/{{queryId}}/ListLatestTweetsTimeline:
get:
operationId: getListLatestTweetsTimeline
description: get tweet list of timeline
@ -44,7 +44,7 @@ paths:
schema:
$ref: "#/components/schemas/ListTweetsTimelineResponse"
tags:
- "Tweet"
- "tweet"
components:
schemas:

View file

@ -4,7 +4,7 @@ info:
version: 0.0.1
paths:
/{{TweetDetailQuery}}/TweetDetail:
/graphql/{{queryId}}/TweetDetail:
get:
operationId: getTweetDetail
description: get TweetDetail
@ -16,7 +16,7 @@ paths:
schema:
$ref: "#/components/schemas/TweetDetailResponse"
tags:
- "Tweet"
- "tweet"
components:
schemas:

View file

@ -4,7 +4,7 @@ info:
version: 0.0.1
paths:
/{{UserByScreenNameQuery}}/UserByScreenName:
/graphql/{{queryId}}/UserByScreenName:
get:
operationId: getUserByScreenName
description: "get user by screen name"
@ -16,7 +16,7 @@ paths:
schema:
$ref: "#/components/schemas/UserResponse"
tags:
- "User"
- "user"
components:
schemas:

View file

@ -4,7 +4,7 @@ info:
version: 0.0.1
paths:
/{{UserTweetsQuery}}/UserTweets:
/graphql/{{queryId}}/UserTweets:
get:
operationId: getUserTweets
description: "get user tweets"
@ -16,9 +16,9 @@ paths:
schema:
$ref: "#/components/schemas/UserTweetsResponse"
tags:
- "Tweet"
- "tweet"
/{{UserTweetsAndRepliesQuery}}/UserTweetsAndReplies:
/graphql/{{queryId}}/UserTweetsAndReplies:
get:
operationId: getUserTweetsAndReplies
description: "get user replies tweets"
@ -30,9 +30,9 @@ paths:
schema:
$ref: "#/components/schemas/UserTweetsResponse"
tags:
- "Tweet"
- "tweet"
/{{UserMediaQuery}}/UserMedia:
/graphql/{{queryId}}/UserMedia:
get:
operationId: getUserMedia
description: "get user media tweets"
@ -44,9 +44,9 @@ paths:
schema:
$ref: "#/components/schemas/UserTweetsResponse"
tags:
- "Tweet"
- "tweet"
/{{LikesQuery}}/Likes:
/graphql/{{queryId}}/Likes:
get:
operationId: getLikes
description: "get user likes tweets"
@ -58,7 +58,7 @@ paths:
schema:
$ref: "#/components/schemas/UserTweetsResponse"
tags:
- "Tweet"
- "tweet"
components:
schemas:

View file

@ -0,0 +1,15 @@
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"