API Change Log
20080627
Fixed bug in Candidates that duped results when candidates had older non-current elections
Added electionDistrictName and officeDistrictName to Candidates and Officials
Added electionDistrictName and officeDistrictName to Candidates and Officials
20080623
Fixed bug in Votes that was keeping all released bills from appearing.
20080611
Fixed documentation referencing actionId as actId
FIxed misspelling in xml key in Votes.getBillActionByOfficial (changed 'candidateHame' to 'candidateName')
Fixed bug in getBillsByOfficialYearOffice - duplicate results from bad query
FIxed misspelling in xml key in Votes.getBillActionByOfficial (changed 'candidateHame' to 'candidateName')
Fixed bug in getBillsByOfficialYearOffice - duplicate results from bad query
20080529
Added getCampaignWebAddress and getOfficeWebAddress to PHP and Python libraries.
Fixed bug in Address.getOfficeByOfficeState
Fixed bug in Address.getOfficeByOfficeState
20080219
Added districtName as an optional input param for District.getByOfficeState
Removed state.details.absenteeWho, state.details.absenteeHow, state.details.absenteeWhen from State.getState. Data included in state.details.voterReg.
Removed state.details.absenteeWho, state.details.absenteeHow, state.details.absenteeWhen from State.getState. Data included in state.details.voterReg.
20080110
bugfix in Votes.getBillActionVotes in backend
20071217
jsoncallback added for JSONP
added stageCandidates.candidate.candidateId and stageCandidates.candidate.nickName to getStageCandidates
added stageCandidates.candidate.candidateId and stageCandidates.candidate.nickName to getStageCandidates
20071120
Fixed a bug in Votes where some actions and bills were being shown without being released by PVS staff.
Fixed a bug in Python libraries were null was used instead of None
Fixed a bug in Python libraries were null was used instead of None
20071109
Documentation incorrectly stated element names for Officials class. Instead of officialsList and official, it should be candidateList and candidate.
In Candidates and Officials, electionDistrictId, electionStateId, electionYear, officeDistrictId, and officeStateId elements would not display if no data was there. This has been chanced so elements are always displayed, even when lacking data.
In Candidates and Officials, electionDistrictId, electionStateId, electionYear, officeDistrictId, and officeStateId elements would not display if no data was there. This has been chanced so elements are always displayed, even when lacking data.
20071106
Backend target NPAT.getNpat has been renamed Npat.getNpat to stick with naming scheme, libraries updated.
Archival NPAT/PCTs are no longer offered pending further internal discussion.
Archival NPAT/PCTs are no longer offered pending further internal discussion.
20071105
All input and output vars renamed to use the 'after-first-word first letter uppercase' rule. can_id would be candidateId, etc.
The following methods have been renamed to make it clearer what type of people are being returned. The word 'candidate' will continue to be used in the output format. Also, can_id(candidate_id) will continue to reference all people in our database.
The following methods have been renamed to make it clearer what type of people are being returned. The word 'candidate' will continue to be used in the output format. Also, can_id(candidate_id) will continue to reference all people in our database.
- Leadership.getCandidates is now Leadership.getOfficials
- Votes.getBillActionVoteByCandidate is now Votes.getBillActionVoteByOfficial
- Votes.getBillsByCandidateCategory is now Votes.getBillsByOfficialCategory
- Votes.getBillsByCandidateYear is now Votes.getBillsByOfficialYear
- Rating.getCandidateRating is staying the same as it could return either Candidate or Official
20071030
The following Candidates methods now accept election_year(YYYY) as a new form of input(Default: >= current_year). getByOfficeState, getByLastname, getByLevenstein, getByDistrict
Candidates output behavior changed. Candidates are now output without regard to election status. Withdrawn, removed, and Lost are now displaying with the rest.
Candidates output behavior changed. Candidates are now output without regard to election status. Withdrawn, removed, and Lost are now displaying with the rest.
20071016
New method - Local.getOfficials(local_id) - Gets officials according to a county/city/large town
Office title will now show office name if a title does not exist.
Office title will now show office name if a title does not exist.
20071016
New fields added to Candidates - electiondistrictid and electionstateid
New fields added to Officials - officedistrictid and officestateid
New fields added to Officials - officedistrictid and officestateid
20071015
New method added - Candidates.getByDistrict(district_id)
Candidates has been separated into two classes, Candidates and Officials. It has been changed to remove confusion.
Candidates has been separated into two classes, Candidates and Officials. It has been changed to remove confusion.
20070928
New method added, Address.getCampaignByElection(election_id) for batch data updates for campaign addresses for candidates in an election.
20070927
Added ability for client-side scripting to have limited access to our API with our auth system and special keys
.20070926
Added bio.candidate.photo to returned data for CandidateBio.getBio. It is a URL to our photo of the candidate in question. Hot-linking is allowed.
CategoryAPIDocs