Skip to main content

サブモジュール

モジュールの内容

このモジュールは、X API の news エンドポイントへのアクセスを提供します news-related のすべての機能の主要なエントリポイントとして機能します。

class xdk.news.NewsClient

news 操作向けのクライアント

パラメーター

Client

__init__

パラメーター

Client

get

Get news stories by ID Retrieves news story by its ID.

パラメーター

Any
The ID of the news story.
List or None
default:"None"
A comma separated list of News fields to display.

戻り値

GetResponse - Response data Search News 次の一覧を取得します: News stories matching the specified search query.

パラメーター

str
The search query.
int or None
default:"None"
The number of results to return.
int or None
default:"None"
The maximum age of the News story to search for.
List or None
default:"None"
A comma separated list of News fields to display.

戻り値

SearchResponse - Response data