You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The below might actually be irrelevant. It may only be Twitter we need to query as I've found raw data on all of the below. (Turns out we need the raw data on MP votes anyway as the they work for you api doesn't contain this. Their data comes from public whip who don't have an api, but do have open source code).
Get constituency - https://www.theyworkforyou.com/api/getConstituency?postcode=${postcode}&key=${process.env.TWFY_APIKEY}&output=js
-- constituency - parsedBody.name
Get MP - https://www.theyworkforyou.com/api/getMP?postcode=${postcode}&key=${process.env.TWFY_APIKEY}&output=js - this is broken so may need to double check
-- name - parsedBody[0].full_name
-- party - parsedBody[0].party
-- since - parsedBody[0].from_date
-- image - parsedBody[0].image
The text was updated successfully, but these errors were encountered:
The below might actually be irrelevant. It may only be Twitter we need to query as I've found raw data on all of the below. (Turns out we need the raw data on MP votes anyway as the they work for you api doesn't contain this. Their data comes from public whip who don't have an api, but do have open source code).
https://www.theyworkforyou.com/api/getConstituency?postcode=${postcode}&key=${process.env.TWFY_APIKEY}&output=js
-- constituency -
parsedBody.name
https://www.theyworkforyou.com/api/getMP?postcode=${postcode}&key=${process.env.TWFY_APIKEY}&output=js
- this is broken so may need to double check-- name -
parsedBody[0].full_name
-- party -
parsedBody[0].party
-- since -
parsedBody[0].from_date
-- image -
parsedBody[0].image
The text was updated successfully, but these errors were encountered: