Submodules
Module contents
This module provides access to the communities endpoints of the X API and serves as the main entry point for all communities-related functionality.class xdk.communities.CommunitiesClient
Client for communities operations
Parameters
__init__
Parameters
get_by_id
Get Community by ID
Retrieves details of a specific Community by its ID.
Parameters
The ID of the Community.
A comma separated list of Community fields to display.
Returns
GetByIdResponse - Response data
search
Search Communities
Retrieves a list of Communities matching the specified search query.
Parameters
Query to search communities.
The maximum number of search results to be returned by a request.
This parameter is used to get the next ‘page’ of results. The value used with the parameter is pulled directly from the response provided by the API, and should not be modified.
This parameter is used to get the next ‘page’ of results. The value used with the parameter is pulled directly from the response provided by the API, and should not be modified.
A comma separated list of Community fields to display.
Returns
SearchResponse - Response data