everyaction.services.Ballots¶
- class everyaction.services.Ballots(ea: EAClient)¶
Represents the Ballots service.
Methods
request_type(type_id, /)request_types(*[, limit])return_status(status_id, /)return_statuses(*[, limit])type(type_id, /)types(*[, limit])See GET /ballotTypes.
- request_type(type_id: str, /) BallotRequestType¶
See GET /ballotRequestTypes/{ballotRequestTypeId}.
- Returns
The resulting
BallotRequestTypeobject.
- request_types(*, limit: Optional[int] = None, **kwargs: EAValue) List[BallotRequestType]¶
-
- Parameters
limit – Maximum number of records to get for this request.
kwargs – The applicable query arguments and JSON data for the request.
- Returns
List of the resulting
BallotRequestTypeobjects.
- return_status(status_id: int, /) BallotReturnStatus¶
See GET /ballotReturnStatuses/{ballotRequestTypeId}.
- Parameters
status_id – The ballotReturnStatusId path parameter.
- Returns
The resulting
BallotReturnStatusobject.
- return_statuses(*, limit: Optional[int] = None, **kwargs: EAValue) List[BallotReturnStatus]¶
See GET /ballotReturnStatuses.
- Parameters
limit – Maximum number of records to get for this request.
kwargs – The applicable query arguments and JSON data for the request.
- Returns
List of the resulting
BallotReturnStatusobjects.
- type(type_id: int, /) BallotType¶
See GET /ballotTypes/{ballotTypeId}.
- Parameters
type_id – The ballotTypeId path parameter.
- Returns
The resulting
BallotTypeobject.
- types(*, limit: Optional[int] = None, **kwargs: EAValue) List[BallotType]¶
See GET /ballotTypes.
- Parameters
limit – Maximum number of records to get for this request.
kwargs – The applicable query arguments and JSON data for the request.
- Returns
List of the resulting
BallotTypeobjects.