everyaction.services.CanvassResponses¶
- class everyaction.services.CanvassResponses(ea: EAClient)¶
Represents the Canvass Responses service.
Methods
contact_types(**kwargs)find_contact_type(name)Finds the
ContactTypewith the given name, case insensitive.find_input_type(name)Finds the
InputTypewith the given name, case insensitive.find_result_code(name)Finds the
ResultCodewith the given name, case insensitive.Gives a mapping from names to the
ContactTypes .ContactTypeof the same name, case-insensitive.Gives a mapping from names to the
InputTypes .InputTypeof the same name, case-insensitive.Gives a mapping from names to the
ResultCodes .ResultCodeof the same name, case-insensitive.result_codes(**kwargs)- contact_types(**kwargs: EAValue) List[ContactType]¶
See GET /canvassResponses/contactTypes.
- Parameters
kwargs – The applicable query arguments and JSON data for the request.
- Returns
List of the resulting
ContactTypeobjects.- Keyword Arguments
inputTypeId (input_type_id, input_type)
- find_contact_type(name: str) ContactType¶
Finds the
ContactTypewith the given name, case insensitive.- Parameters
name – Name of contact type to find.
- Returns
The resulting
ContactTypeobject.- Raises
EAFindFailedException – If the contact type could not be found.
- find_input_type(name: str) InputType¶
Finds the
InputTypewith the given name, case insensitive.- Parameters
name – Name of input type to find.
- Returns
The resulting
InputTypeobject.- Raises
EAFindFailedException – If the input type could not be found.
- find_result_code(name: str) ResultCode¶
Finds the
ResultCodewith the given name, case insensitive.- Parameters
name – Name of result code to find.
- Returns
The resulting
ResultCodeobject.- Raises
EAFindFailedException – If the result code could not be found.
- input_types() List[InputType]¶
See GET /canvassResponses/inputTypes.
- Returns
List of the resulting
InputTypeobjects.
- name_to_contact_type() Dict[str, ContactType]¶
Gives a mapping from names to the
ContactTypes .ContactTypeof the same name, case-insensitive.- Returns
Name of Contact Type to the resulting
ContactTypeobjects.
- name_to_input_type() Dict[str, InputType]¶
Gives a mapping from names to the
InputTypes .InputTypeof the same name, case-insensitive.- Returns
Name of Input Type to the resulting
InputTypeobjects.
- name_to_result_code() Dict[str, ResultCode]¶
Gives a mapping from names to the
ResultCodes .ResultCodeof the same name, case-insensitive.- Returns
Name of Result Code to the resulting
ResultCodeobjects.
- result_codes(**kwargs: EAValue) List[ResultCode]¶
See GET /canvassResponses/resultCodes.
- Parameters
kwargs – The applicable query arguments and JSON data for the request.
- Returns
List of the resulting
ResultCodeobjects.- Keyword Arguments
contactTypeId (contact_type_id, contact_type)
inputTypeId (input_type_id, input_type)