Submodules
Module contents
This module provides access to the news endpoints of the X API and serves as the main entry point for all news-related functionality.class xdk.news.NewsClient
Client for news operations
Parameters
__init__
Parameters
get
Get news stories by ID
Retrieves news story by its ID.
Parameters
The ID of the news story.
A comma separated list of News fields to display.
Returns
GetResponse - Response data
search
Search News
Retrieves a list of News stories matching the specified search query.
Parameters
The search query.
The number of results to return.
The maximum age of the News story to search for.
A comma separated list of News fields to display.
Returns
SearchResponse - Response data