/* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ import { timelinesTweetsAndRepliesPage } from "../funcs/timelines-tweets-and-replies-page.js"; import { timelinesTweetsAndReplies } from "../funcs/timelines-tweets-and-replies.js"; import { timelinesUserPage } from "../funcs/timelines-user-page.js"; import { timelinesUser } from "../funcs/timelines-user.js"; import { ClientSDK, RequestOptions } from "../lib/sdks.js"; import * as models from "../models/index.js"; import * as operations from "../models/operations/index.js"; import { unwrapAsync } from "../types/fp.js"; export class Timelines extends ClientSDK { /** * Get All Tweets and Replies by User * * @remarks * Get all tweets and replies posted by a specific Twitter user. Returns a comprehensive list including both original tweets and reply tweets posted by the user. $0.10/1000 items. */ async tweetsAndReplies( request: operations.TimelinesTweetsAndRepliesRequest, options?: RequestOptions, ): Promise { return unwrapAsync(timelinesTweetsAndReplies( this, request, options, )); } /** * Get User Timeline by Page * * @remarks * Fetch a single page from a user's timeline using POST. Pass next_cursor in the body to continue. */ async userPage( request: operations.TimelinesUserPageRequest, options?: RequestOptions, ): Promise { return unwrapAsync(timelinesUserPage( this, request, options, )); } /** * Get User Timeline and Fill Count * * @remarks * Fetch a user's timeline across pages using POST and try to fill the requested count. */ async user( request: operations.TimelinesUserRequest, options?: RequestOptions, ): Promise { return unwrapAsync(timelinesUser( this, request, options, )); } /** * Get All Tweets and Replies by User by Page * * @remarks * Retrieve a paginated list of a user's tweets and replies using cursor-based pagination. Each page returns up to 20 items. Pass next_cursor from the previous response to continue. Pricing: $0.10 per 1,000 items. */ async tweetsAndRepliesPage( request: models.GetAllTweetsRepliesCursorQuery, options?: RequestOptions, ): Promise { return unwrapAsync(timelinesTweetsAndRepliesPage( this, request, options, )); } }