1
Fork 0
mirror of https://github.com/thegeneralist01/twitter-openapi synced 2026-01-11 07:30:37 +01:00

add Actions for Bookmarking #63

Signed-off-by: ふぁ <yuki@yuki0311.com>
This commit is contained in:
ふぁ 2024-06-06 13:17:12 +09:00
parent f0e37687a4
commit d9082fbeea
No known key found for this signature in database
GPG key ID: 83A8A5E74872A8AA
2 changed files with 72 additions and 0 deletions

View file

@ -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/"
},

View file

@ -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