GET api/v1/NPEBallotResults?ElectoralEventID={ElectoralEventID}&ProvinceID={ProvinceID}
Returns rolled up results for the National Election for specified Province
Request Information
Parameters
Name | Description | Additional information |
---|---|---|
ElectoralEventID | Valid Electoral Event IDs can be obtained by invoking the ElectoralEvent Controller's Get action and passing an ElectoralEventTypeID: api/v1/ElectoralEvent?ElectoralEventTypeID={ElectoralEventTypeID} |
Define this parameter in the request URI. |
ProvinceID | Valid Province IDs can be obtained by invoking the Delimitation Controller's Get Action and passing an ElectoralEventID: api/v1/Delimitation?ElectoralEventID={ElectoralEventID} |
Define this parameter in the request URI. |
Response Information
Response body formats
application/json, text/json
Sample:
{ "ElectoralEventID": 1, "ElectoralEvent": "sample string 2", "ProvinceID": 3, "Province": "sample string 4", "RegisteredVoters": 5, "SpoiltVotes": 6, "Section24AVotes": 7, "SpecialVotes": 8, "PercVoterTurnout": 9.1, "TotalVotesCast": 10, "TotalValidVotes": 11, "VDCount": 12, "VDWithResultsCaptured": 13, "bResultsComplete": true, "PartyBallotResults": [ { "ID": 1, "Name": "sample string 2", "ValidVotes": 3, "PercOfVotes": 4.1, "PartyAbbr": "sample string 5", "BallotTypeID": 6, "BallotType": "sample string 7", "bIsIndependent": true }, { "ID": 1, "Name": "sample string 2", "ValidVotes": 3, "PercOfVotes": 4.1, "PartyAbbr": "sample string 5", "BallotTypeID": 6, "BallotType": "sample string 7", "bIsIndependent": true }, { "ID": 1, "Name": "sample string 2", "ValidVotes": 3, "PercOfVotes": 4.1, "PartyAbbr": "sample string 5", "BallotTypeID": 6, "BallotType": "sample string 7", "bIsIndependent": true } ] }
application/xml, text/xml
Sample:
<NPEBallotProvinceResult xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/IECService.Models"> <ElectoralEvent>sample string 2</ElectoralEvent> <ElectoralEventID>1</ElectoralEventID> <PartyBallotResults> <NPEBallotPartyResult> <BallotType>sample string 7</BallotType> <BallotTypeID>6</BallotTypeID> <ID>1</ID> <Name>sample string 2</Name> <PartyAbbr>sample string 5</PartyAbbr> <PercOfVotes>4.1</PercOfVotes> <ValidVotes>3</ValidVotes> <bIsIndependent>true</bIsIndependent> </NPEBallotPartyResult> <NPEBallotPartyResult> <BallotType>sample string 7</BallotType> <BallotTypeID>6</BallotTypeID> <ID>1</ID> <Name>sample string 2</Name> <PartyAbbr>sample string 5</PartyAbbr> <PercOfVotes>4.1</PercOfVotes> <ValidVotes>3</ValidVotes> <bIsIndependent>true</bIsIndependent> </NPEBallotPartyResult> <NPEBallotPartyResult> <BallotType>sample string 7</BallotType> <BallotTypeID>6</BallotTypeID> <ID>1</ID> <Name>sample string 2</Name> <PartyAbbr>sample string 5</PartyAbbr> <PercOfVotes>4.1</PercOfVotes> <ValidVotes>3</ValidVotes> <bIsIndependent>true</bIsIndependent> </NPEBallotPartyResult> </PartyBallotResults> <PercVoterTurnout>9.1</PercVoterTurnout> <Province>sample string 4</Province> <ProvinceID>3</ProvinceID> <RegisteredVoters>5</RegisteredVoters> <Section24AVotes>7</Section24AVotes> <SpecialVotes>8</SpecialVotes> <SpoiltVotes>6</SpoiltVotes> <TotalValidVotes>11</TotalValidVotes> <TotalVotesCast>10</TotalVotesCast> <VDCount>12</VDCount> <VDWithResultsCaptured>13</VDWithResultsCaptured> <bResultsComplete>true</bResultsComplete> </NPEBallotProvinceResult>