Current time: 12-13-2017, 12:08 AM Hello There, Guest! (LoginRegister)

Post Reply 
 
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Pingback and Json
07-14-2012, 04:54 AM
Post: #1
Pingback and Json
Hey Patrick,
It looks like the jsonUrls reported through the API are not working - the page renders the same as the userURL html

Also, can the pingback parameter be used to report results to a private showslow instance?
Find all posts by this user
Quote this message in a reply
07-15-2012, 12:43 PM
Post: #2
RE: Pingback and Json
Showslow expects the beacons in a different format than the pingbacks. If you run a private WebPagetest instance then you can configure it to send beacons to showslow but the public instance can't send beacons to private showslow instances.

Can you send a sample result that has JSON urls that aren't working? The JSON support is spotty so it's possible it hasn't been implemented somewhere yet.
Visit this user's website Find all posts by this user
Quote this message in a reply
07-18-2012, 07:40 AM
Post: #3
RE: Pingback and Json
Hey Patrick, here is an example of the json url I get back
It renders tot eh page results

http://www.webpagetest.org/results.php?t...d7a&f=json

Also - question on the pingbacks, do they notify the specified ural as the test progresses or upon completion - I seem to be getting multiple notifications

Thx,
morgan
Find all posts by this user
Quote this message in a reply
07-19-2012, 06:36 AM
Post: #4
RE: Pingback and Json
I'm wondering where you got the ?f=json URL in the first place. I think runtest.php will return a path for an XML result but I didn't think it provided a JSON one (mostly because JSON isn't supported for the test results yet).
Visit this user's website Find all posts by this user
Quote this message in a reply
07-19-2012, 06:38 AM
Post: #5
RE: Pingback and Json
The pingbacks should only be on completion. I just verified the code and it's inside the code block that is only run when a test finishes so there shouldn't be a way for it to be calling multiple times.
Visit this user's website Find all posts by this user
Quote this message in a reply
08-16-2012, 11:28 AM
Post: #6
RE: Pingback and Json
Hey Pat,

I'm also getting ?f=json URL on my private instance through the API, e.g.:
Code:
$ curl "http://localhost/runtest.php?url=http%3A%2F%2Fexample.com&f=json"
{
    "statusCode": 200,
    "statusText": "Ok",
    "data": {
        "testId": "120815_7M_D",
        "ownerKey": "f732751fab15be88f777e6e0715b1ffe7963f723",
        "jsonUrl": "http://localhost/results.php?test=120815_7M_D&f=json",
        "xmlUrl": "http://localhost/xmlResult.php?test=120815_7M_D",
        "userUrl": "http://localhost/results.php?test=120815_7M_D",
        "summaryCSV": "http://localhost/csv.php?test=120815_7M_D",
        "detailCSV": "http://localhost/csv.php?test=120815_7M_D&requests=1"
    }
}
But http://localhost/results.php?test=120815_7M_D&f=json returns the same as http://localhost/results.php?test=120815_7M_D

Thanks,
Find all posts by this user
Quote this message in a reply
08-17-2012, 11:58 PM
Post: #7
RE: Pingback and Json
Yeah, that would be a bug where I optimistically expected to implement json support for the results but haven't gotten around to it yet - sorry. If it would help and XML is too painful I can see about cranking out the JSON support in the next week or so.
Visit this user's website Find all posts by this user
Quote this message in a reply
09-25-2012, 10:45 AM
Post: #8
RE: Pingback and Json
Hey all - Wondering if full(er) JSON support is still on the horizon or available?

from my quick testing, it looks like f=json works fine for: runtest.php and testStatus.php but not yet for results.php - is that correct or am derping something?

thanks!
-matt
Find all posts by this user
Quote this message in a reply
09-26-2012, 05:28 AM
Post: #9
RE: Pingback and Json
Correct. I will probably implement it in 2-3 weeks after I get back from Velocity Europe (yes, parsing XML is a pain, sorry).
Visit this user's website Find all posts by this user
Quote this message in a reply
01-24-2013, 09:34 PM
Post: #10
RE: Pingback and Json
Hi it would be great, if you can provide sort of rough date for full json support.

Many Thanks,
yallam

(09-26-2012 05:28 AM)pmeenan Wrote:  Correct. I will probably implement it in 2-3 weeks after I get back from Velocity Europe (yes, parsing XML is a pain, sorry).
Find all posts by this user
Quote this message in a reply
Post Reply 


Forum Jump:


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