mirror of
https://github.com/thegeneralist01/twitter-openapi
synced 2026-01-11 07:30:37 +01:00
parent
408fd99a69
commit
5a9695407e
2 changed files with 26 additions and 1 deletions
|
|
@ -543,7 +543,7 @@ components:
|
||||||
delete_action_result:
|
delete_action_result:
|
||||||
$ref: "#/components/schemas/CommunityDeleteActionResult"
|
$ref: "#/components/schemas/CommunityDeleteActionResult"
|
||||||
join_action_result:
|
join_action_result:
|
||||||
$ref: "#/components/schemas/CommunityJoinActionResult"
|
$ref: "#/components/schemas/CommunityJoinActionUnion"
|
||||||
leave_action_result:
|
leave_action_result:
|
||||||
$ref: "#/components/schemas/CommunityLeaveActionResult"
|
$ref: "#/components/schemas/CommunityLeaveActionResult"
|
||||||
pin_action_result:
|
pin_action_result:
|
||||||
|
|
@ -562,6 +562,16 @@ components:
|
||||||
type: string
|
type: string
|
||||||
enum: [Unavailable]
|
enum: [Unavailable]
|
||||||
|
|
||||||
|
CommunityJoinActionUnion:
|
||||||
|
oneOf:
|
||||||
|
- $ref: "#/components/schemas/CommunityJoinActionResult"
|
||||||
|
- $ref: "#/components/schemas/CommunityJoinActionUnavailable"
|
||||||
|
discriminator:
|
||||||
|
propertyName: __typename
|
||||||
|
mapping: # deprecated
|
||||||
|
CommunityJoinAction: "#/components/schemas/CommunityJoinActionResult"
|
||||||
|
CommunityJoinActionUnavailable: "#/components/schemas/CommunityJoinActionUnavailable"
|
||||||
|
|
||||||
CommunityJoinActionResult:
|
CommunityJoinActionResult:
|
||||||
required:
|
required:
|
||||||
- "__typename"
|
- "__typename"
|
||||||
|
|
@ -569,6 +579,20 @@ components:
|
||||||
__typename:
|
__typename:
|
||||||
$ref: "./typename.yaml#/components/schemas/TypeName" # CommunityJoinAction
|
$ref: "./typename.yaml#/components/schemas/TypeName" # CommunityJoinAction
|
||||||
|
|
||||||
|
CommunityJoinActionUnavailable:
|
||||||
|
required:
|
||||||
|
- "__typename"
|
||||||
|
- "reason"
|
||||||
|
- "message"
|
||||||
|
properties:
|
||||||
|
__typename:
|
||||||
|
$ref: "./typename.yaml#/components/schemas/TypeName" # CommunityJoinActionUnavailable
|
||||||
|
reason:
|
||||||
|
type: string
|
||||||
|
enum: [ViewerRequestRequired]
|
||||||
|
message:
|
||||||
|
type: string
|
||||||
|
|
||||||
CommunityLeaveActionResult:
|
CommunityLeaveActionResult:
|
||||||
required:
|
required:
|
||||||
- "__typename"
|
- "__typename"
|
||||||
|
|
|
||||||
|
|
@ -376,6 +376,7 @@ if __name__ == "__main__":
|
||||||
"1349129669258448897",
|
"1349129669258448897",
|
||||||
"1810188416812019999",
|
"1810188416812019999",
|
||||||
"1851981523207299417",
|
"1851981523207299417",
|
||||||
|
"1853879226987901408",
|
||||||
]
|
]
|
||||||
for id in ids:
|
for id in ids:
|
||||||
try:
|
try:
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue