/* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ import { articlesFetch } from "../funcs/articles-fetch.js"; import { articlesMarkdown } from "../funcs/articles-markdown.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 Articles extends ClientSDK { /** * Batch Fetch X Articles * * @remarks * Retrieves detailed article content for a specified list of X (Twitter) IDs. Use this endpoint to fetch full text, metadata, and media links for multiple posts in a single request. 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 fetch( request: Array, options?: RequestOptions, ): Promise { return unwrapAsync(articlesFetch( this, request, options, )); } /** * Fetch Article as Markdown * * @remarks * Retrieves the content of an X (Twitter) article formatted as **clean, valid Markdown**. The response body is delivered as a raw UTF-8 string, optimized for direct import into static site generators, Obsidian, Notion, or any standard Markdown editor. */ async markdown( request: operations.ArticlesMarkdownRequest, options?: RequestOptions, ): Promise { return unwrapAsync(articlesMarkdown( this, request, options, )); } }