opennorth / represent-canada

Point or postcode to electoral district service for Canada, its provinces and municipalities
http://represent.opennorth.ca/
MIT License
65 stars 9 forks source link

Missing Members Data Works #129

Closed elynch303 closed 9 months ago

elynch303 commented 9 months ago

I would like to be able to get members works so such as Bills, Motions and chamber votes

sample source https://www.ourcommons.ca/Members/en/omar-alghabra(89535)#work bills would be an object array

[
   {
      bill_number: "C-51"
      title: "Enhancing Transparency and Accountability in the Transportation System Act"
      source: "https://parl.ca/LegisInfo/BillDetails.aspx?Language=e&Mode=1&billId=12540212"
   }
]

motions would be an object array

[
   {
     motion_number: "M-87"
     subject: "Corporate tax rate increase and disclosure of CEO-to-median-worker pay ratio"    
     latest_activity: "Placed on Notice (June 19, 2023)"
     source: "https://www.ourcommons.ca/members/en/jagmeet-singh(71588)/motions/12544714"       
   }
]

chamber votes would be an object array

[
   {
      vote_number: "No. 417"
      subject: "2nd reading of Bill S-12, An Act to amend the Criminal Code, the Sex Offender Information Registration Act and the 
      International Transfer of Offenders Act"
      voted: "Yea"
      result: "Agreed To"
      date: "October 5, 2023"
      source: "https://www.ourcommons.ca/Members/en/votes/44/1/417"
   }
]
jpmckinney commented 9 months ago

You should use the OpenParliament API. Represent is people + boundaries only.

https://openparliament.ca/api/