/* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ import { tweetsRepliesPage } from "../funcs/tweets-replies-page.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 Replies extends ClientSDK { /** * Get Replies by Page * * @remarks * **Recommended** for fetching tweet replies. Uses cursor-based pagination and avoids timeouts on large threads. The first request (omit next_cursor) returns root_tweet plus the first batch of replies. Pass next_cursor from the previous response to fetch the next page until has_next_page is false. Pricing: $0.10 per 1,000 replies. */ async page( request: operations.TweetsRepliesPageRequest, options?: RequestOptions, ): Promise { return unwrapAsync(tweetsRepliesPage( this, request, options, )); } }