| Name | Type |
|---|---|
attachmentUrl |
string |
conversationControl |
PostCreateTweetRequestVariablesConversationControl |
darkRequest |
boolean |
disallowedReplyOptions |
object |
media |
PostCreateTweetRequestVariablesMedia |
reply |
PostCreateTweetRequestVariablesReply |
semanticAnnotationIds |
Array<object> |
tweetText |
string |
import type { PostCreateTweetRequestVariables } from 'twitter-openapi-typescript-generated'
// TODO: Update the object below with actual values
const example = {
"attachmentUrl": https://x.com/elonmusk/status/1349129669258448897,
"conversationControl": null,
"darkRequest": false,
"disallowedReplyOptions": null,
"media": null,
"reply": null,
"semanticAnnotationIds": null,
"tweetText": test,
} satisfies PostCreateTweetRequestVariables
console.log(example)
// Convert the instance to a JSON string
const exampleJSON: string = JSON.stringify(example)
console.log(exampleJSON)
// Parse the JSON string back to an object
const exampleParsed = JSON.parse(exampleJSON) as PostCreateTweetRequestVariables
console.log(exampleParsed)[Back to top] [Back to API list] [Back to Model list] [Back to README]