-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcommunities.ts
More file actions
136 lines (128 loc) · 3.42 KB
/
Copy pathcommunities.ts
File metadata and controls
136 lines (128 loc) · 3.42 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
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
/*
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
*/
import { communitiesGet } from "../funcs/communities-get.js";
import { communitiesMembersPage } from "../funcs/communities-members-page.js";
import { communitiesMembers } from "../funcs/communities-members.js";
import { communitiesSearchTweets } from "../funcs/communities-search-tweets.js";
import { communitiesSearch } from "../funcs/communities-search.js";
import { communitiesTweetsPage } from "../funcs/communities-tweets-page.js";
import { communitiesTweets } from "../funcs/communities-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 Communities extends ClientSDK {
/**
* Get Community Members
*
* @remarks
* Get community members
*/
async members(
request: operations.CommunitiesMembersRequest,
options?: RequestOptions,
): Promise<models.SearchUserResponse> {
return unwrapAsync(communitiesMembers(
this,
request,
options,
));
}
/**
* Get Community Members by Page
*
* @remarks
* Retrieve a paginated list of community members using cursor-based pagination. Each page returns up to 20 members. Pass next_cursor from the previous response to continue. Pricing: $0.10 per 1,000 members.
*/
async membersPage(
request: models.GetCommunityMembersCursorQuery,
options?: RequestOptions,
): Promise<models.GetCommunityMembersCursorResponse> {
return unwrapAsync(communitiesMembersPage(
this,
request,
options,
));
}
/**
* Get Community Tweets
*
* @remarks
* Get community tweets
*/
async tweets(
request: operations.CommunitiesTweetsRequest,
options?: RequestOptions,
): Promise<models.CommunityTweetsResponse> {
return unwrapAsync(communitiesTweets(
this,
request,
options,
));
}
/**
* Get Community Tweets by Page
*
* @remarks
* Retrieve a paginated list of community tweets using 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.
*/
async tweetsPage(
request: models.GetCommunityTweetsCursorQuery,
options?: RequestOptions,
): Promise<models.GetCommunityTweetsCursorResponse> {
return unwrapAsync(communitiesTweetsPage(
this,
request,
options,
));
}
/**
* Search Community
*
* @remarks
* Search community
*/
async search(
request: models.SearchCommunityQuery,
options?: RequestOptions,
): Promise<models.SearchCommunityResponse> {
return unwrapAsync(communitiesSearch(
this,
request,
options,
));
}
/**
* Get Community
*
* @remarks
* Get community
*/
async get(
request: operations.CommunitiesGetRequest,
options?: RequestOptions,
): Promise<models.GetCommunityResponse> {
return unwrapAsync(communitiesGet(
this,
request,
options,
));
}
/**
* Search Community Tweets
*
* @remarks
* Search community tweets
*/
async searchTweets(
request: models.SearchCommunityTweetsQuery,
options?: RequestOptions,
): Promise<models.CommunityTweetsResponse> {
return unwrapAsync(communitiesSearchTweets(
this,
request,
options,
));
}
}