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

add UserByRestId and UsersByRestIds paths

This commit is contained in:
Erika 2023-07-09 18:06:43 +01:00
parent 24b04344f1
commit 48c2e11b11
2 changed files with 72 additions and 0 deletions

View file

@ -102,6 +102,34 @@
"responsive_web_graphql_timeline_navigation_enabled": true
}
},
"UserByRestId": {
"queryId": "Lxg1V9AiIzzXEiP2c8dRnw",
"variables": {
"userId": "44196397",
"withSafetyModeUserFields": true
},
"features": {
"hidden_profile_likes_enabled": false,
"responsive_web_graphql_exclude_directive_enabled": true,
"verified_phone_label_enabled": false,
"highlights_tweets_tab_ui_enabled": true,
"creator_subscriptions_tweet_preview_api_enabled": true,
"responsive_web_graphql_skip_user_profile_image_extensions_enabled": false,
"responsive_web_graphql_timeline_navigation_enabled":true
}
},
"UsersByRestIds": {
"queryId": "GD4q8bBE2i6cqWw2iT74Gg",
"variables": {
"userIds": ["44196397"]
},
"features": {
"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
}
},
"ProfileSpotlightsQuery": {
"queryId": "9zwVLJ48lmVUk8u_Gh9DmA",
"variables": {

View file

@ -18,6 +18,34 @@ paths:
tags:
- "user"
/graphql/{pathQueryId}/UserByRestId:
get:
operationId: getUserByRestId
description: "get user by rest id"
responses:
"200":
description: Successful operation
content:
application/json:
schema:
$ref: "#/components/schemas/UserResponse"
tags:
- "user"
/graphql/{pathQueryId}/UsersByRestIds:
get:
operationId: getUsersByRestIds
description: "get users by rest ids"
responses:
"200":
description: Successful operation
content:
application/json:
schema:
$ref: "#/components/schemas/UsersResponse"
tags:
- "user"
components:
schemas:
UserResponse:
@ -33,3 +61,19 @@ components:
properties:
user:
$ref: "./../schemas/user.yaml#/components/schemas/UserResults"
UsersResponse:
required:
- "data"
properties:
data:
$ref: "#/components/schemas/UsersResponseData"
UsersResponseData:
required:
- "users"
properties:
users:
type: array
items:
$ref: "./../schemas/user.yaml#/components/schemas/UserResults"