-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsearch.ts
More file actions
63 lines (59 loc) · 1.98 KB
/
Copy pathsearch.ts
File metadata and controls
63 lines (59 loc) · 1.98 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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
/*
* 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<models.AdvancedSearchCursorResponse> {
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<models.SearchResponse> {
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<models.SearchResponse> {
return unwrapAsync(searchHashtags(
this,
request,
options,
));
}
}