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

Allow option to return only API-available locations when running getLocations #137

Closed
tkadlec opened this issue Feb 24, 2021 · 0 comments
Closed

Comments

@tkadlec
Copy link
Contributor

tkadlec commented Feb 24, 2021

Right now, running getLocations results in all locations being returned. Not all of those locations are actually available to interact with via the API, however.

Hitting the getLocations url directly, we have the ability to filter out non-API locations by adding a querystring. For example, this URL returns all locations, regardless of API availability:

https://webpagetest.org/getLocations.php

Whereas this URL returns only API available locations:

https://webpagetest.org/getLocations.php?k=A

Arguably, that should be the default for the node wrapper, but at the very least, we should provide an option for folks to filter out locations they can't run tests on.

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

1 participant