Interface TwitterV1NodeParameters

Source
interface TwitterV1NodeParameters {
    additionalFields?:
        | { attachment?: string }
        | {
            attachments?: string;
            displayCoordinates?: boolean;
            inReplyToStatusId?: string;
            locationFieldsUi?: {
                locationFieldsValues: {
                    latitude: string;
                    longitude: string;
                };
            };
            possiblySensitive?: boolean;
        }
        | {
            includeEntities?: boolean;
            lang?: string;
            locationFieldsUi?: {
                locationFieldsValues: {
                    distance: number;
                    latitude: string;
                    longitude: string;
                    radius: "km"
                    | "mi";
                };
            };
            resultType?: "mixed"
            | "recent"
            | "popular";
            tweetMode?: "compat" | "extended";
            until?: string;
        }
        | { includeEntities?: boolean }
        | { trimUser?: boolean };
    limit?: number;
    operation?:
        | "create"
        | "delete"
        | "search"
        | "like"
        | "retweet";
    resource?: "directMessage"
    | "tweet";
    returnAll?: boolean;
    searchText?: string;
    text?: string;
    tweetId?: string;
    userId?: string;
}

Properties§

Source§

readonly additionalFields?:
    | { attachment?: string }
    | {
        attachments?: string;
        displayCoordinates?: boolean;
        inReplyToStatusId?: string;
        locationFieldsUi?: {
            locationFieldsValues: {
                latitude: string;
                longitude: string;
            };
        };
        possiblySensitive?: boolean;
    }
    | {
        includeEntities?: boolean;
        lang?: string;
        locationFieldsUi?: {
            locationFieldsValues: {
                distance: number;
                latitude: string;
                longitude: string;
                radius: "km"
                | "mi";
            };
        };
        resultType?: "mixed"
        | "recent"
        | "popular";
        tweetMode?: "compat" | "extended";
        until?: string;
    }
    | { includeEntities?: boolean }
    | { trimUser?: boolean }

Default: {}

Source§

readonly limit?: number

Max number of results to return Default: 50 Type options: {"minValue":1}

Source§

readonly operation?: "create" | "delete" | "search" | "like" | "retweet"

Default: "create"

Source§

readonly resource?: "directMessage" | "tweet"

Default: "tweet"

Source§

readonly returnAll?: boolean

Whether to return all results or only up to a given limit

Source§

readonly searchText?: string

A UTF-8, URL-encoded search query of 500 characters maximum, including operators. Queries may additionally be limited by complexity. Check the searching examples here.

Source§

readonly text?: string

The text of your Direct Message. URL encode as necessary. Max length of 10,000 characters.

Source§

readonly tweetId?: string

The ID of the tweet to delete

Source§

readonly userId?: string

The ID of the user who should receive the direct message