News#

news_listing(self, *, limit=None, year=None, cursor_string=None)#

Get news posts.

Parameters:
  • limit (int | None) – Maximum number of news posts to return.

  • year (int | None) – Filter by year the news post was created.

  • cursor_string (str | None) – Cursor for pagination.

Return type:

NewsListing

Notes

Implements the Get News Listing endpoint.

news_post(self, news, *, key=NewsPostKey.SLUG)#

Get a news post by id or slug.

Parameters:
  • news (str) – The id or slug of the news post.

  • key (NewsPostKey | str | None) – Whether to query by id or slug.

Return type:

NewsPost

Notes

Implements the Get News Post endpoint.