mirror of
https://github.com/thegeneralist01/twitter-openapi
synced 2026-01-11 15:40:26 +01:00
parent
f0e37687a4
commit
d9082fbeea
2 changed files with 72 additions and 0 deletions
|
|
@ -756,6 +756,18 @@
|
|||
"dark_request": false
|
||||
}
|
||||
},
|
||||
"CreateBookmark": {
|
||||
"queryId": "aoDbu3RHznuiSkQ9aNM67Q",
|
||||
"variables": {
|
||||
"tweet_id": "1349129669258448897"
|
||||
}
|
||||
},
|
||||
"DeleteBookmark": {
|
||||
"queryId": "Wlmlj2-xzyS1GN3a6cj-mQ",
|
||||
"variables": {
|
||||
"tweet_id": "1349129669258448897"
|
||||
}
|
||||
},
|
||||
"#=====v1.1====": {
|
||||
"url": "https://twitter.com/i/api/1.1/"
|
||||
},
|
||||
|
|
|
|||
|
|
@ -100,6 +100,38 @@ paths:
|
|||
tags:
|
||||
- "post"
|
||||
|
||||
/graphql/{pathQueryId}/CreateBookmark:
|
||||
post:
|
||||
operationId: postCreateBookmark
|
||||
description: create Bookmark
|
||||
responses:
|
||||
"200":
|
||||
description: Successful operation
|
||||
content:
|
||||
application/json:
|
||||
schema:
|
||||
oneOf:
|
||||
- $ref: "#/components/schemas/CreateBookmarkResponse"
|
||||
- $ref: "./../schemas/error.yaml#/components/schemas/Errors"
|
||||
tags:
|
||||
- "post"
|
||||
|
||||
/graphql/{pathQueryId}/DeleteBookmark:
|
||||
post:
|
||||
operationId: postDeleteBookmark
|
||||
description: delete Bookmark
|
||||
responses:
|
||||
"200":
|
||||
description: Successful operation
|
||||
content:
|
||||
application/json:
|
||||
schema:
|
||||
oneOf:
|
||||
- $ref: "#/components/schemas/DeleteBookmarkResponse"
|
||||
- $ref: "./../schemas/error.yaml#/components/schemas/Errors"
|
||||
tags:
|
||||
- "post"
|
||||
|
||||
components:
|
||||
schemas:
|
||||
FavoriteTweetResponseData:
|
||||
|
|
@ -256,3 +288,31 @@ components:
|
|||
properties:
|
||||
tweet_results:
|
||||
type: object
|
||||
|
||||
CreateBookmarkResponse:
|
||||
required:
|
||||
- "data"
|
||||
properties:
|
||||
data:
|
||||
$ref: "#/components/schemas/CreateBookmarkResponseData"
|
||||
|
||||
CreateBookmarkResponseData:
|
||||
required:
|
||||
- "tweet_bookmark_put"
|
||||
properties:
|
||||
tweet_bookmark_put:
|
||||
type: string
|
||||
|
||||
DeleteBookmarkResponse:
|
||||
required:
|
||||
- "data"
|
||||
properties:
|
||||
data:
|
||||
$ref: "#/components/schemas/DeleteBookmarkResponseData"
|
||||
|
||||
DeleteBookmarkResponseData:
|
||||
required:
|
||||
- "tweet_bookmark_delete"
|
||||
properties:
|
||||
tweet_bookmark_delete:
|
||||
type: string
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue