@@ -1327,7 +1327,7 @@ var commands = {
13271327 } ,
13281328 testers : {
13291329 name : "getTesters" ,
1330- options : [ options . request ] ,
1330+ options : [ options . request , options . apikey ] ,
13311331 info : "list testers status and details" ,
13321332 } ,
13331333 test : {
@@ -1364,101 +1364,105 @@ var commands = {
13641364 har : {
13651365 name : "getHARData" ,
13661366 param : "id" ,
1367+ options : [ options . apikey ] ,
13671368 info : "get the HTTP Archive (HAR) from test" ,
13681369 } ,
13691370 pagespeed : {
13701371 name : "getPageSpeedData" ,
13711372 param : "id" ,
1372- options : [ options . run ] ,
1373+ options : [ options . run , options . apikey ] ,
13731374 info : "get the Google Page Speed results (if available) from test" ,
13741375 } ,
13751376 utilization : {
13761377 name : "getUtilizationData" ,
13771378 param : "id" ,
1378- options : [ options . run ] ,
1379+ options : [ options . run , options . apikey ] ,
13791380 info : "get the CPU, bandwidth and memory utilization data from test" ,
13801381 } ,
13811382 request : {
13821383 name : "getRequestData" ,
13831384 param : "id" ,
1384- options : [ options . run ] ,
1385+ options : [ options . run , options . apikey ] ,
13851386 info : "get the request data from test" ,
13861387 } ,
13871388 timeline : {
13881389 name : "getTimelineData" ,
13891390 param : "id" ,
1390- options : [ options . run ] ,
1391+ options : [ options . run , options . apikey ] ,
13911392 info : "get the Chrome Developer Tools Timeline data (if available) from test" ,
13921393 } ,
13931394 netlog : {
13941395 name : "getNetLogData" ,
13951396 param : "id" ,
1396- options : [ options . run ] ,
1397+ options : [ options . run , options . apikey ] ,
13971398 info : "get the Chrome Developer Tools Net log data (if available) from test" ,
13981399 } ,
13991400 chrometrace : {
14001401 name : "getChromeTraceData" ,
14011402 param : "id" ,
1402- options : [ options . run ] ,
1403+ options : [ options . run , options . apikey ] ,
14031404 info : "get the Chrome Trace data (if available) from test" ,
14041405 } ,
14051406 console : {
14061407 name : "getConsoleLogData" ,
14071408 param : "id" ,
1408- options : [ options . run ] ,
1409+ options : [ options . run , options . apikey ] ,
14091410 info : "get the browser console log data (if available) from test" ,
14101411 } ,
14111412 testinfo : {
14121413 name : "getTestInfo" ,
14131414 param : "id" ,
1415+ options : [ options . apikey ] ,
14141416 info : "get test request info/details" ,
14151417 } ,
14161418 history : {
14171419 name : "getHistory" ,
14181420 param : "days" ,
14191421 optional : true ,
1422+ options : [ options . apikey ] ,
14201423 info : "get history of previously run tests" ,
14211424 } ,
14221425 googlecsi : {
14231426 name : "getGoogleCsiData" ,
14241427 param : "id" ,
1425- options : [ options . run ] ,
1428+ options : [ options . run , options . apikey ] ,
14261429 info : "get Google CSI data (Client Side Instrumentation)" ,
14271430 } ,
14281431 response : {
14291432 name : "getResponseBody" ,
14301433 param : "id" ,
1431- options : [ options . run , options . response ] ,
1434+ options : [ options . run , options . response , options . apikey ] ,
14321435 info : "get response body for text resources" ,
14331436 } ,
14341437 waterfall : {
14351438 name : "getWaterfallImage" ,
14361439 param : "id" ,
1437- options : [ options . run , options . image , options . waterfall ] ,
1440+ options : [ options . run , options . image , options . waterfall , options . apikey ] ,
14381441 info : "get the waterfall PNG image" ,
14391442 } ,
14401443 screenshot : {
14411444 name : "getScreenshotImage" ,
14421445 param : "id" ,
1443- options : [ options . run , options . image , options . screenshot ] ,
1446+ options : [ options . run , options . image , options . screenshot , options . apikey ] ,
14441447 info : "get the fully loaded page screenshot in JPG format (PNG if in full resolution)" ,
14451448 } ,
14461449 video : {
14471450 name : "createVideo" ,
14481451 param : "tests" ,
1449- options : [ options . video ] ,
1452+ options : [ options . video , options . apikey ] ,
14501453 info : "create a video from <tests> (comma separated test ids)" ,
14511454 } ,
14521455 player : {
14531456 name : "getEmbedVideoPlayer" ,
14541457 param : "id" ,
1458+ options : [ options . apikey ] ,
14551459 info : "get a html5 player for a video <id>" ,
14561460 } ,
14571461 listen : {
14581462 name : "listen" ,
14591463 param : "hostname:port" ,
14601464 optional : true ,
1461- options : [ options . listen ] ,
1465+ options : [ options . listen , options . apikey ] ,
14621466 info : "start webpagetest-api proxy server on <hostname>:<port> [hostname:%s]" ,
14631467 } ,
14641468} ;
0 commit comments