Class TweetRequests

Collection of requests related to tweets.

Constructors

Methods

  • Parameters

    • ids: string[]

      The IDs of the tweets whose details are to be fetched.

    Returns AxiosRequestConfig

  • Parameters

    • id: string

      The id of the tweet whose details are to be fetched.

    Returns AxiosRequestConfig

  • Parameters

    • id: string

      The id of the tweet to be liked.

    Returns AxiosRequestConfig

  • Parameters

    • id: string

      The id of the tweet whose likers are to be fetched.

    • Optionalcount: number

      The number of likers to fetch. Only works as a lower limit when used with a cursor.

    • Optionalcursor: string

      The cursor to the batch of likers to fetch.

    Returns AxiosRequestConfig

  • Parameters

    • id: string

      The id of the tweet which is to be retweeted.

    Returns AxiosRequestConfig

  • Parameters

    • id: string

      The id of the tweet whose retweeters are to be fetched.

    • Optionalcount: number

      The number of retweeters to fetch. Only works as a lower limit when used with a cursor.

    • Optionalcursor: string

      The cursor to the batch of retweeters to fetch.

    Returns AxiosRequestConfig

  • Parameters

    • args: INewTweet

      The configuration object for the tweet to be posted.

    Returns AxiosRequestConfig

    • Only text and media.id parameters are supported.
  • Parameters

    • filter: ITweetFilter

      The filter to use for searching tweets.

    • Optionalcount: number

      The number of tweets to fetch. Only works as a lower limit when used with a cursor.

    • Optionalcursor: string

      The cursor to the batch of tweets to fetch.

    Returns AxiosRequestConfig

  • Parameters

    • id: string

      The id of the tweet to be unliked.

    Returns AxiosRequestConfig

  • Parameters

    • id: string

      The id of the tweet to be unposted.

    Returns AxiosRequestConfig

  • Parameters

    • id: string

      The id of the source tweet (which was retweeted), to be unretweeted.

    Returns AxiosRequestConfig

  • Parameters

    • id: string

      The id of the scheduled tweet to be unscheduled.

    Returns AxiosRequestConfig