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

Add JSON APIs #40

Open
PiRSquared17 opened this issue Nov 8, 2014 · 4 comments
Open

Add JSON APIs #40

PiRSquared17 opened this issue Nov 8, 2014 · 4 comments

Comments

@PiRSquared17
Copy link
Contributor

It would be great if there were some way to query account eligibility in a machine-readable format. The output could be something like JSON, XML, or YAML. JSON would be my preference.

[This is a feature request/enhancement, not a bug.]

@PiRSquared17
Copy link
Contributor Author

HTML is machine readable too, but scraping is a pain compared to using JSON results.

@Pathoschild
Copy link
Owner

A JSON API is something I do want to add in the near term; I'm looking to transition the tools to node.js, which seems much better suited than PHP to building an API. I did a very early prototype yesterday; if all goes well I'll have an OAuth login (#30) on node.js, and I'll port the framework and move the tools over one by one (building an API for each as part of the migration).

@Pathoschild Pathoschild changed the title AccountEligibility: add basic (JSON?) API Add JSON APIs Nov 10, 2014
@legoktm
Copy link
Contributor

legoktm commented Aug 25, 2022

I too would like an API for AccountEligibility.

@legoktm
Copy link
Contributor

legoktm commented Jan 15, 2024

For reference, here's the code I have that's scraping AccountEligibility: https://gitlab.wikimedia.org/toolforge-repos/poty-stuff/-/blob/main/src/eligibility.rs?ref_type=heads#L9 - it's primarily looking for the data-is-eligible="1" string.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants