Constructors
constructor
• new CommunitiesClient(client): CommunitiesClient
Creates a new communities client instance
Parameters
| Name | Type | Description | 
|---|---|---|
client | Client | The main X API client instance | 
Returns
CommunitiesClient
Defined in
communities/client.ts:68Methods
getById
▸ getById(id, options?): Promise<Get2CommunitiesIdResponse>
Get Community by ID
Retrieves details of a specific Community by its ID.
Parameters
| Name | Type | Description | 
|---|---|---|
id | string | The ID of the Community. | 
options | GetByIdOptions | - | 
Returns
Promise<Get2CommunitiesIdResponse>
Promise resolving to the API response
Defined in
communities/client.ts:85search
▸ search(query, options?): Promise<Get2CommunitiesSearchResponse>
Search Communities
Retrieves a list of Communities matching the specified search query.
Parameters
| Name | Type | Description | 
|---|---|---|
query | string | Query to search communities. | 
options | SearchOptions | - | 
Returns
Promise<Get2CommunitiesSearchResponse>
Promise resolving to the API response