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-05-02 21:59:32 +09:00
parent 3419b5c0ab
commit 3a16f63cc6
No known key found for this signature in database
GPG key ID: 83A8A5E74872A8AA
40 changed files with 2367 additions and 1376 deletions

View file

@ -23,18 +23,20 @@ info:
version: 0.0.1
openapi: 3.0.3
paths:
/tmd4ifV8RHltzn8ymGg1aw/Bookmarks:
/graphql/tmd4ifV8RHltzn8ymGg1aw/Bookmarks:
get:
description: get bookmarks
operationId: getBookmarks
parameters:
- in: query
- content:
application/json:
schema:
default: tmd4ifV8RHltzn8ymGg1aw
example: tmd4ifV8RHltzn8ymGg1aw
type: string
in: query
name: queryId
required: true
schema:
default: tmd4ifV8RHltzn8ymGg1aw
example: tmd4ifV8RHltzn8ymGg1aw
type: string
- content:
application/json:
schema:
@ -205,4 +207,4 @@ paths:
schema:
type: integer
tags:
- Tweet
- tweet

View file

@ -38,18 +38,20 @@ info:
version: 0.0.1
openapi: 3.0.3
paths:
/IWP6Zt14sARO29lJT35bBw/Following:
/graphql/IWP6Zt14sARO29lJT35bBw/Following:
get:
description: get user list of following
operationId: getFollowing
parameters:
- in: query
- content:
application/json:
schema:
default: IWP6Zt14sARO29lJT35bBw
example: IWP6Zt14sARO29lJT35bBw
type: string
in: query
name: queryId
required: true
schema:
default: IWP6Zt14sARO29lJT35bBw
example: IWP6Zt14sARO29lJT35bBw
type: string
- content:
application/json:
schema:
@ -220,19 +222,21 @@ paths:
schema:
type: integer
tags:
- UserList
/djdTXDIk2qhd4OStqlUFeQ/Followers:
- userList
/graphql/djdTXDIk2qhd4OStqlUFeQ/Followers:
get:
description: get user list of followers
operationId: getFollowers
parameters:
- in: query
- content:
application/json:
schema:
default: djdTXDIk2qhd4OStqlUFeQ
example: djdTXDIk2qhd4OStqlUFeQ
type: string
in: query
name: queryId
required: true
schema:
default: djdTXDIk2qhd4OStqlUFeQ
example: djdTXDIk2qhd4OStqlUFeQ
type: string
- content:
application/json:
schema:
@ -403,4 +407,4 @@ paths:
schema:
type: integer
tags:
- UserList
- userList

View file

@ -136,11 +136,18 @@ info:
version: 0.0.1
openapi: 3.0.3
paths:
/1RyAhNwby-gzGCRVsMxKbQ/CreateTweet:
/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
@ -322,12 +329,19 @@ paths:
schema:
type: integer
tags:
- Post
/VaenaVgh5q5ih7kvyVjgtg/DeleteTweet:
- 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
@ -340,6 +354,13 @@ paths:
required:
- tweet_id
type: object
- in: query
name: features
required: true
schema:
properties: {}
required: []
type: object
responses:
'200':
content:
@ -382,23 +403,40 @@ paths:
schema:
type: integer
tags:
- Post
/ZYKSe-w7KEslx3JhSIk5LA/UnfavoriteTweet:
- post
/graphql/ZYKSe-w7KEslx3JhSIk5LA/UnfavoriteTweet:
post:
description: unfavorite Tweet
operationId: postUnfavoriteTweet
parameters:
- in: query
name: variables
name: queryId
required: true
schema:
default: ZYKSe-w7KEslx3JhSIk5LA
example: ZYKSe-w7KEslx3JhSIk5LA
type: string
- in: query
name: Parameters
required: true
schema:
properties:
tweet_id:
default: '1349129669258448897'
example: '1349129669258448897'
type: string
features:
properties: {}
required: []
type: object
variables:
properties:
tweet_id:
default: '1349129669258448897'
example: '1349129669258448897'
type: string
required:
- tweet_id
type: object
required:
- tweet_id
- variables
- features
type: object
responses:
'200':
@ -442,23 +480,40 @@ paths:
schema:
type: integer
tags:
- Post
/iQtK4dl5hBmXewYZuEOKVw/DeleteRetweet:
- post
/graphql/iQtK4dl5hBmXewYZuEOKVw/DeleteRetweet:
post:
description: delete Retweet
operationId: postDeleteRetweet
parameters:
- in: query
name: variables
name: queryId
required: true
schema:
default: iQtK4dl5hBmXewYZuEOKVw
example: iQtK4dl5hBmXewYZuEOKVw
type: string
- in: query
name: Parameters
required: true
schema:
properties:
tweet_id:
default: '1349129669258448897'
example: '1349129669258448897'
type: string
features:
properties: {}
required: []
type: object
variables:
properties:
tweet_id:
default: '1349129669258448897'
example: '1349129669258448897'
type: string
required:
- tweet_id
type: object
required:
- tweet_id
- variables
- features
type: object
responses:
'200':
@ -502,23 +557,40 @@ paths:
schema:
type: integer
tags:
- Post
/lI07N6Otwv1PhnEgXILM7A/FavoriteTweet:
- post
/graphql/lI07N6Otwv1PhnEgXILM7A/FavoriteTweet:
post:
description: favorite Tweet
operationId: postFavoriteTweet
parameters:
- in: query
name: variables
name: queryId
required: true
schema:
default: lI07N6Otwv1PhnEgXILM7A
example: lI07N6Otwv1PhnEgXILM7A
type: string
- in: query
name: Parameters
required: true
schema:
properties:
tweet_id:
default: '1349129669258448897'
example: '1349129669258448897'
type: string
features:
properties: {}
required: []
type: object
variables:
properties:
tweet_id:
default: '1349129669258448897'
example: '1349129669258448897'
type: string
required:
- tweet_id
type: object
required:
- tweet_id
- variables
- features
type: object
responses:
'200':
@ -562,23 +634,40 @@ paths:
schema:
type: integer
tags:
- Post
/ojPdsZsimiJrUGLR1sjUtA/CreateRetweet:
- post
/graphql/ojPdsZsimiJrUGLR1sjUtA/CreateRetweet:
post:
description: create Retweet
operationId: postCreateRetweet
parameters:
- in: query
name: variables
name: queryId
required: true
schema:
default: ojPdsZsimiJrUGLR1sjUtA
example: ojPdsZsimiJrUGLR1sjUtA
type: string
- in: query
name: Parameters
required: true
schema:
properties:
tweet_id:
default: '1349129669258448897'
example: '1349129669258448897'
type: string
features:
properties: {}
required: []
type: object
variables:
properties:
tweet_id:
default: '1349129669258448897'
example: '1349129669258448897'
type: string
required:
- tweet_id
type: object
required:
- tweet_id
- variables
- features
type: object
responses:
'200':
@ -622,4 +711,4 @@ paths:
schema:
type: integer
tags:
- Post
- post

View file

@ -63,18 +63,20 @@ info:
version: 0.0.1
openapi: 3.0.3
paths:
/9zwVLJ48lmVUk8u_Gh9DmA/ProfileSpotlightsQuery:
/graphql/9zwVLJ48lmVUk8u_Gh9DmA/ProfileSpotlightsQuery:
get:
description: get user by screen name
operationId: getProfileSpotlightsQuery
parameters:
- in: query
- content:
application/json:
schema:
default: 9zwVLJ48lmVUk8u_Gh9DmA
example: 9zwVLJ48lmVUk8u_Gh9DmA
type: string
in: query
name: queryId
required: true
schema:
default: 9zwVLJ48lmVUk8u_Gh9DmA
example: 9zwVLJ48lmVUk8u_Gh9DmA
type: string
- content:
application/json:
schema:

View file

@ -47,18 +47,20 @@ info:
version: 0.0.1
openapi: 3.0.3
paths:
/2TemLyqrMpTeAmysdbnVqw/ListLatestTweetsTimeline:
/graphql/2TemLyqrMpTeAmysdbnVqw/ListLatestTweetsTimeline:
get:
description: get tweet list of timeline
operationId: getListLatestTweetsTimeline
parameters:
- in: query
- content:
application/json:
schema:
default: 2TemLyqrMpTeAmysdbnVqw
example: 2TemLyqrMpTeAmysdbnVqw
type: string
in: query
name: queryId
required: true
schema:
default: 2TemLyqrMpTeAmysdbnVqw
example: 2TemLyqrMpTeAmysdbnVqw
type: string
- content:
application/json:
schema:
@ -224,19 +226,21 @@ paths:
schema:
type: integer
tags:
- Tweet
/HCosKfLNW1AcOo3la3mMgg/HomeTimeline:
- tweet
/graphql/HCosKfLNW1AcOo3la3mMgg/HomeTimeline:
get:
description: get tweet list of timeline
operationId: getHomeTimeline
parameters:
- in: query
- content:
application/json:
schema:
default: HCosKfLNW1AcOo3la3mMgg
example: HCosKfLNW1AcOo3la3mMgg
type: string
in: query
name: queryId
required: true
schema:
default: HCosKfLNW1AcOo3la3mMgg
example: HCosKfLNW1AcOo3la3mMgg
type: string
- content:
application/json:
schema:
@ -417,19 +421,21 @@ paths:
schema:
type: integer
tags:
- Tweet
/zhX91JE87mWvfprhYE97xA/HomeLatestTimeline:
- tweet
/graphql/zhX91JE87mWvfprhYE97xA/HomeLatestTimeline:
get:
description: get tweet list of timeline
operationId: getHomeLatestTimeline
parameters:
- in: query
- content:
application/json:
schema:
default: zhX91JE87mWvfprhYE97xA
example: zhX91JE87mWvfprhYE97xA
type: string
in: query
name: queryId
required: true
schema:
default: zhX91JE87mWvfprhYE97xA
example: zhX91JE87mWvfprhYE97xA
type: string
- content:
application/json:
schema:
@ -605,4 +611,4 @@ paths:
schema:
type: integer
tags:
- Tweet
- tweet

View file

@ -17,18 +17,20 @@ info:
version: 0.0.1
openapi: 3.0.3
paths:
/wNNG8DBB8EaXw1lq4vFWGA/TweetDetail:
/graphql/wNNG8DBB8EaXw1lq4vFWGA/TweetDetail:
get:
description: get TweetDetail
operationId: getTweetDetail
parameters:
- in: query
- content:
application/json:
schema:
default: wNNG8DBB8EaXw1lq4vFWGA
example: wNNG8DBB8EaXw1lq4vFWGA
type: string
in: query
name: queryId
required: true
schema:
default: wNNG8DBB8EaXw1lq4vFWGA
example: wNNG8DBB8EaXw1lq4vFWGA
type: string
- content:
application/json:
schema:
@ -224,4 +226,4 @@ paths:
schema:
type: integer
tags:
- Tweet
- tweet

View file

@ -17,18 +17,20 @@ info:
version: 0.0.1
openapi: 3.0.3
paths:
/sLVLhk0bGj3MVFEKTdax1w/UserByScreenName:
/graphql/sLVLhk0bGj3MVFEKTdax1w/UserByScreenName:
get:
description: get user by screen name
operationId: getUserByScreenName
parameters:
- in: query
- content:
application/json:
schema:
default: sLVLhk0bGj3MVFEKTdax1w
example: sLVLhk0bGj3MVFEKTdax1w
type: string
in: query
name: queryId
required: true
schema:
default: sLVLhk0bGj3MVFEKTdax1w
example: sLVLhk0bGj3MVFEKTdax1w
type: string
- content:
application/json:
schema:
@ -124,4 +126,4 @@ paths:
schema:
type: integer
tags:
- User
- user

View file

@ -32,18 +32,20 @@ info:
version: 0.0.1
openapi: 3.0.3
paths:
/5fmEkRT-1AdHqEsbVgehMg/Likes:
/graphql/5fmEkRT-1AdHqEsbVgehMg/Likes:
get:
description: get user likes tweets
operationId: getLikes
parameters:
- in: query
- content:
application/json:
schema:
default: 5fmEkRT-1AdHqEsbVgehMg
example: 5fmEkRT-1AdHqEsbVgehMg
type: string
in: query
name: queryId
required: true
schema:
default: 5fmEkRT-1AdHqEsbVgehMg
example: 5fmEkRT-1AdHqEsbVgehMg
type: string
- content:
application/json:
schema:
@ -234,19 +236,21 @@ paths:
schema:
type: integer
tags:
- Tweet
/HuTx74BxAnezK1gWvYY7zg/UserTweets:
- tweet
/graphql/HuTx74BxAnezK1gWvYY7zg/UserTweets:
get:
description: get user tweets
operationId: getUserTweets
parameters:
- in: query
- content:
application/json:
schema:
default: HuTx74BxAnezK1gWvYY7zg
example: HuTx74BxAnezK1gWvYY7zg
type: string
in: query
name: queryId
required: true
schema:
default: HuTx74BxAnezK1gWvYY7zg
example: HuTx74BxAnezK1gWvYY7zg
type: string
- content:
application/json:
schema:
@ -432,19 +436,21 @@ paths:
schema:
type: integer
tags:
- Tweet
/RIWc55YCNyUJ-U3HHGYkdg/UserTweetsAndReplies:
- tweet
/graphql/RIWc55YCNyUJ-U3HHGYkdg/UserTweetsAndReplies:
get:
description: get user replies tweets
operationId: getUserTweetsAndReplies
parameters:
- in: query
- content:
application/json:
schema:
default: RIWc55YCNyUJ-U3HHGYkdg
example: RIWc55YCNyUJ-U3HHGYkdg
type: string
in: query
name: queryId
required: true
schema:
default: RIWc55YCNyUJ-U3HHGYkdg
example: RIWc55YCNyUJ-U3HHGYkdg
type: string
- content:
application/json:
schema:
@ -630,19 +636,21 @@ paths:
schema:
type: integer
tags:
- Tweet
/YqiE3JL1KNgf9nSljYdxaA/UserMedia:
- tweet
/graphql/YqiE3JL1KNgf9nSljYdxaA/UserMedia:
get:
description: get user media tweets
operationId: getUserMedia
parameters:
- in: query
- content:
application/json:
schema:
default: YqiE3JL1KNgf9nSljYdxaA
example: YqiE3JL1KNgf9nSljYdxaA
type: string
in: query
name: queryId
required: true
schema:
default: YqiE3JL1KNgf9nSljYdxaA
example: YqiE3JL1KNgf9nSljYdxaA
type: string
- content:
application/json:
schema:
@ -833,4 +841,4 @@ paths:
schema:
type: integer
tags:
- Tweet
- tweet

48
dist/docs/paths/v1.1.yaml vendored Normal file
View file

@ -0,0 +1,48 @@
info:
title: Twitter OpenAPI
version: 0.0.1
openapi: 3.0.3
paths:
/1.1/friendships/create.json:
post:
description: post create friendships
operationId: postCreateFriendships
responses:
'200':
description: Successful operation
headers:
x-connection-hash:
schema:
type: string
x-content-type-options:
schema:
type: string
x-frame-options:
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
x-xss-protection:
schema:
type: integer
tags:
- v1.1