Announcements

class Announcements(session_kwargs, client, return_type='raw')

Methods

list(*[, limit, page_num, order, order_dir, ...])

List announcements

Examples

>>> import civis
>>> client = civis.APIClient()
>>> client.announcements.list(...)
list(*, limit: int = None, page_num: int = None, order: str = None, order_dir: str = None, iterator: bool = None) list[Response] | PaginatedResponse

List announcements

Parameters:
limitint, optional

Number of results to return. Defaults to 10. Maximum allowed is 50.

page_numint, optional

Page number of the results to return. Defaults to the first page, 1.

orderstr, optional

The field on which to order the result set. Defaults to released_at. Must be one of: released_at.

order_dirstr, optional

Direction in which to sort, either asc (ascending) or desc (descending) defaulting to desc.

iteratorbool, optional

If True, return a generator (specifically, a civis.PaginatedResponse object) to iterate over all responses. Use it when more results than the maximum allowed by ‘limit’ are needed. When True, ‘page_num’ is ignored. If False, return a list of civis.Response objects, whose size is determined by ‘limit’. Defaults to False.

Returns:
civis.PaginatedResponse
  • idint

    The ID of this announcement

  • subjectstr

    The subject of this announcement.

  • bodystr

    The body of this announcement.

  • released_atstr (date-time)

    The date and time this announcement was released.

  • created_at : str (date-time)

  • updated_at : str (date-time)