Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

APIs we're querying #26

Open
2 tasks
pbywater opened this issue May 3, 2017 · 0 comments
Open
2 tasks

APIs we're querying #26

pbywater opened this issue May 3, 2017 · 0 comments
Milestone

Comments

@pbywater
Copy link
Collaborator

pbywater commented May 3, 2017

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
@pbywater pbywater added this to the Bot sprint milestone May 3, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant