Submodules
Module contents
This module provides access to the spaces endpoints of the X API and serves as the main entry point for all spaces-related functionality.class xdk.spaces.SpacesClient
Client for spaces operations
Parameters
__init__
Parameters
get_buyers
Get Space ticket buyers
Retrieves a list of Users who purchased tickets to a specific Space by its ID.
Parameters
The ID of the Space to be retrieved.
This parameter is used to get a specified ‘page’ of results.
The maximum number of results.
A comma separated list of User fields to display.
A comma separated list of fields to expand.
A comma separated list of Tweet fields to display.
Returns
GetBuyersResponse - Response data
get_by_creator_ids
Get Spaces by creator IDs
Retrieves details of Spaces created by specified User IDs.
Parameters
The IDs of Users to search through.
A comma separated list of Space fields to display.
A comma separated list of fields to expand.
A comma separated list of User fields to display.
A comma separated list of Topic fields to display.
Returns
GetByCreatorIdsResponse - Response data
get_by_id
Get space by ID
Retrieves details of a specific space by its ID.
Parameters
The ID of the Space to be retrieved.
A comma separated list of Space fields to display.
A comma separated list of fields to expand.
A comma separated list of User fields to display.
A comma separated list of Topic fields to display.
Returns
GetByIdResponse - Response data
get_by_ids
Get Spaces by IDs
Retrieves details of multiple Spaces by their IDs.
Parameters
The list of Space IDs to return.
A comma separated list of Space fields to display.
A comma separated list of fields to expand.
A comma separated list of User fields to display.
A comma separated list of Topic fields to display.
Returns
GetByIdsResponse - Response data
get_posts
Get Space Posts
Retrieves a list of Posts shared in a specific Space by its ID.
Parameters
The ID of the Space to be retrieved.
The number of Posts to fetch from the provided space. If not provided, the value will default to the maximum of 100.
A comma separated list of Tweet fields to display.
A comma separated list of fields to expand.
A comma separated list of Media fields to display.
A comma separated list of Poll fields to display.
A comma separated list of User fields to display.
A comma separated list of Place fields to display.
Returns
GetPostsResponse - Response data
search
Search Spaces
Retrieves a list of Spaces matching the specified search query.
Parameters
The search query.
The state of Spaces to search for.
The number of results to return.
A comma separated list of Space fields to display.
A comma separated list of fields to expand.
A comma separated list of User fields to display.
A comma separated list of Topic fields to display.
Returns
SearchResponse - Response data