/* * 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 { 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 { return unwrapAsync(communitiesMembersPage( this, request, options, )); } /** * Get Community Tweets * * @remarks * Get community tweets */ async tweets( request: operations.CommunitiesTweetsRequest, options?: RequestOptions, ): Promise { 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 { return unwrapAsync(communitiesTweetsPage( this, request, options, )); } /** * Search Community * * @remarks * Search community */ async search( request: models.SearchCommunityQuery, options?: RequestOptions, ): Promise { return unwrapAsync(communitiesSearch( this, request, options, )); } /** * Get Community * * @remarks * Get community */ async get( request: operations.CommunitiesGetRequest, options?: RequestOptions, ): Promise { return unwrapAsync(communitiesGet( this, request, options, )); } /** * Search Community Tweets * * @remarks * Search community tweets */ async searchTweets( request: models.SearchCommunityTweetsQuery, options?: RequestOptions, ): Promise { return unwrapAsync(communitiesSearchTweets( this, request, options, )); } }