-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtrending.ts
More file actions
96 lines (90 loc) · 2.44 KB
/
Copy pathtrending.ts
File metadata and controls
96 lines (90 loc) · 2.44 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
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
/*
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
*/
import { trendingByCountry } from "../funcs/trending-by-country.js";
import { trendingContents } from "../funcs/trending-contents.js";
import { trendingCountries } from "../funcs/trending-countries.js";
import { trendingTopics } from "../funcs/trending-topics.js";
import { trendingTweets } from "../funcs/trending-tweets.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 Trending extends ClientSDK {
/**
* List Global Trend Countries
*
* @remarks
* Get the supported country and global options that can be used to filter trending tweets.
*/
async countries(
options?: RequestOptions,
): Promise<models.StandardResponse> {
return unwrapAsync(trendingCountries(
this,
options,
));
}
/**
* List Global Trend Topics
*
* @remarks
* Get the topic categories available for filtering global trending tweets.
*/
async topics(
options?: RequestOptions,
): Promise<models.StandardResponse> {
return unwrapAsync(trendingTopics(
this,
options,
));
}
/**
* List Global Trend Content Tags
*
* @remarks
* Get content tags for a selected country and topic so tweets can be filtered more precisely.
*/
async contents(
request: operations.TrendingContentsRequest,
options?: RequestOptions,
): Promise<models.StandardResponse> {
return unwrapAsync(trendingContents(
this,
request,
options,
));
}
/**
* Get Global Trending Tweets
*
* @remarks
* Get trending tweets for a country, with optional topic and content tag filters.
*/
async tweets(
request: operations.TrendingTweetsRequest,
options?: RequestOptions,
): Promise<models.SearchResponse> {
return unwrapAsync(trendingTweets(
this,
request,
options,
));
}
/**
* Get Trending Topics
*
* @remarks
* Get X Explore trending topics for a given country. Use 'worldwide' for account-default trends or a country slug such as 'united-states'.
*/
async byCountry(
request: operations.TrendingByCountryRequest,
options?: RequestOptions,
): Promise<models.StandardResponse> {
return unwrapAsync(trendingByCountry(
this,
request,
options,
));
}
}