/* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ import { searchAdvanced } from "../funcs/search-advanced.js"; import { searchCashtags } from "../funcs/search-cashtags.js"; import { searchHashtags } from "../funcs/search-hashtags.js"; import { ClientSDK, RequestOptions } from "../lib/sdks.js"; import * as models from "../models/index.js"; import { unwrapAsync } from "../types/fp.js"; export class Search extends ClientSDK { /** * Advanced Twitter Search by Page * * @remarks * Perform advanced Twitter search with cursor-based pagination. Each page returns up to 20 tweets. Pass next_cursor from the previous response to continue. Pricing: $0.10 per 1,000 tweets. The maximum input quantity is limited by your plan's QPS. To pass larger input quantity limits, upgrade your plan to get higher QPS. */ async advanced( request: models.AdvancedSearchCursorQuery, options?: RequestOptions, ): Promise { return unwrapAsync(searchAdvanced( this, request, options, )); } /** * Search Cashtags * * @remarks * Search for tweets containing specific cashtags (stock symbols), $0.10/1000 tweets. The maximum input quantity is limited by your plan's QPS. To pass larger input quantity limits, upgrade your plan to get higher QPS. */ async cashtags( request: models.CashtagsQuery, options?: RequestOptions, ): Promise { return unwrapAsync(searchCashtags( this, request, options, )); } /** * Search Hashtags * * @remarks * Search for tweets containing specific hashtags. The maximum input quantity is limited by your plan's QPS. To pass larger input quantity limits, upgrade your plan to get higher QPS. */ async hashtags( request: models.HashtagsQuery, options?: RequestOptions, ): Promise { return unwrapAsync(searchHashtags( this, request, options, )); } }