@@ -1332,7 +1332,7 @@ var commands = {
13321332 } ,
13331333 testers : {
13341334 name : "getTesters" ,
1335- options : [ options . request ] ,
1335+ options : [ options . request , options . apikey ] ,
13361336 info : "list testers status and details" ,
13371337 } ,
13381338 test : {
@@ -1369,101 +1369,105 @@ var commands = {
13691369 har : {
13701370 name : "getHARData" ,
13711371 param : "id" ,
1372+ options : [ options . apikey ] ,
13721373 info : "get the HTTP Archive (HAR) from test" ,
13731374 } ,
13741375 pagespeed : {
13751376 name : "getPageSpeedData" ,
13761377 param : "id" ,
1377- options : [ options . run ] ,
1378+ options : [ options . run , options . apikey ] ,
13781379 info : "get the Google Page Speed results (if available) from test" ,
13791380 } ,
13801381 utilization : {
13811382 name : "getUtilizationData" ,
13821383 param : "id" ,
1383- options : [ options . run ] ,
1384+ options : [ options . run , options . apikey ] ,
13841385 info : "get the CPU, bandwidth and memory utilization data from test" ,
13851386 } ,
13861387 request : {
13871388 name : "getRequestData" ,
13881389 param : "id" ,
1389- options : [ options . run ] ,
1390+ options : [ options . run , options . apikey ] ,
13901391 info : "get the request data from test" ,
13911392 } ,
13921393 timeline : {
13931394 name : "getTimelineData" ,
13941395 param : "id" ,
1395- options : [ options . run ] ,
1396+ options : [ options . run , options . apikey ] ,
13961397 info : "get the Chrome Developer Tools Timeline data (if available) from test" ,
13971398 } ,
13981399 netlog : {
13991400 name : "getNetLogData" ,
14001401 param : "id" ,
1401- options : [ options . run ] ,
1402+ options : [ options . run , options . apikey ] ,
14021403 info : "get the Chrome Developer Tools Net log data (if available) from test" ,
14031404 } ,
14041405 chrometrace : {
14051406 name : "getChromeTraceData" ,
14061407 param : "id" ,
1407- options : [ options . run ] ,
1408+ options : [ options . run , options . apikey ] ,
14081409 info : "get the Chrome Trace data (if available) from test" ,
14091410 } ,
14101411 console : {
14111412 name : "getConsoleLogData" ,
14121413 param : "id" ,
1413- options : [ options . run ] ,
1414+ options : [ options . run , options . apikey ] ,
14141415 info : "get the browser console log data (if available) from test" ,
14151416 } ,
14161417 testinfo : {
14171418 name : "getTestInfo" ,
14181419 param : "id" ,
1420+ options : [ options . apikey ] ,
14191421 info : "get test request info/details" ,
14201422 } ,
14211423 history : {
14221424 name : "getHistory" ,
14231425 param : "days" ,
14241426 optional : true ,
1427+ options : [ options . apikey ] ,
14251428 info : "get history of previously run tests" ,
14261429 } ,
14271430 googlecsi : {
14281431 name : "getGoogleCsiData" ,
14291432 param : "id" ,
1430- options : [ options . run ] ,
1433+ options : [ options . run , options . apikey ] ,
14311434 info : "get Google CSI data (Client Side Instrumentation)" ,
14321435 } ,
14331436 response : {
14341437 name : "getResponseBody" ,
14351438 param : "id" ,
1436- options : [ options . run , options . response ] ,
1439+ options : [ options . run , options . response , options . apikey ] ,
14371440 info : "get response body for text resources" ,
14381441 } ,
14391442 waterfall : {
14401443 name : "getWaterfallImage" ,
14411444 param : "id" ,
1442- options : [ options . run , options . image , options . waterfall ] ,
1445+ options : [ options . run , options . image , options . waterfall , options . apikey ] ,
14431446 info : "get the waterfall PNG image" ,
14441447 } ,
14451448 screenshot : {
14461449 name : "getScreenshotImage" ,
14471450 param : "id" ,
1448- options : [ options . run , options . image , options . screenshot ] ,
1451+ options : [ options . run , options . image , options . screenshot , options . apikey ] ,
14491452 info : "get the fully loaded page screenshot in JPG format (PNG if in full resolution)" ,
14501453 } ,
14511454 video : {
14521455 name : "createVideo" ,
14531456 param : "tests" ,
1454- options : [ options . video ] ,
1457+ options : [ options . video , options . apikey ] ,
14551458 info : "create a video from <tests> (comma separated test ids)" ,
14561459 } ,
14571460 player : {
14581461 name : "getEmbedVideoPlayer" ,
14591462 param : "id" ,
1463+ options : [ options . apikey ] ,
14601464 info : "get a html5 player for a video <id>" ,
14611465 } ,
14621466 listen : {
14631467 name : "listen" ,
14641468 param : "hostname:port" ,
14651469 optional : true ,
1466- options : [ options . listen ] ,
1470+ options : [ options . listen , options . apikey ] ,
14671471 info : "start webpagetest-api proxy server on <hostname>:<port> [hostname:%s]" ,
14681472 } ,
14691473} ;
0 commit comments