Current time: 10-21-2019, 12:15 PM Hello There, Guest! (LoginRegister)

Post Reply 
 
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
api questions
01-28-2016, 01:17 AM
Post: #1
api questions
Thanks for providing such a terrific product & service, it's much appreciated!

I was wondering if two API endpoints might be enhanced (or please let me know if they exist already). Failing this, we may just end up forking the code to make the changes ourselves, but wanted to reach out to see what kind of support there may be.

We have a private instance running, and these changes would help us to avoid hardcoding data in our scripts in one case, and can aid us in reporting in the other case.

Firstly: /getLocations.php?f=
Can this endpoint be enhanced to include the same value (highlighted in attached screenshot) that is provided in the "Connection" dropdown on the UI (which is called "location" behind the scenes):
[Image: 2Uuf5kKpCMpr]
We use this value when executing tests (passed as the "location" parameter to /runtest.php), and have the choices hardcoded in our scripts.

Secondly: Can an endpoint be provided (or an existing one enhanced) that can list out the test IDs for a given website domain or some other criteria?

Thanks,
Edward Bridges
Engineering Manager
Squarespace, Inc.
Find all posts by this user
Quote this message in a reply
01-29-2016, 04:52 AM
Post: #2
RE: api questions
I can't see the screenshot to understand exactly what you want but are you after the ability to see the connection speeds supported by each location in a format you can submit them to the API?

One way to support the second request would be to extend testlog.php to return a JSON response (I might have a look at this on the w/e)

Andy

Using WebPageTest - http://usingwpt.com/
Visit this user's website Find all posts by this user
Quote this message in a reply
01-29-2016, 08:36 AM
Post: #3
RE: api questions
Thanks for the reply!

To clarify, when selecting a value from the "Connection" dropdown via the web ui, it submits a value like Dulles:Chrome.Cable.

That's the value we send as the location parameter to /getLocations.php

I was hoping to obtain that list from an endpoint so we don't need to have it hardcoded somewhere.

(01-29-2016 04:52 AM)andydavies Wrote:  I can't see the screenshot to understand exactly what you want but are you after the ability to see the connection speeds supported by each location in a format you can submit them to the API?

One way to support the second request would be to extend testlog.php to return a JSON response (I might have a look at this on the w/e)
Find all posts by this user
Quote this message in a reply
Post Reply 


Forum Jump:


User(s) browsing this thread: 1 Guest(s)