-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy patharticles.ts
More file actions
46 lines (43 loc) · 1.54 KB
/
Copy patharticles.ts
File metadata and controls
46 lines (43 loc) · 1.54 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
/*
* 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<string>,
options?: RequestOptions,
): Promise<models.XArticleResponse> {
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<string> {
return unwrapAsync(articlesMarkdown(
this,
request,
options,
));
}
}