@@ -239,10 +239,10 @@ _The default WPT server can also be specified via environment variable `WEBPAGET
239
239
240
240
### Examples
241
241
242
- #### 1. Get all available locations
242
+ #### 1. Get API available locations
243
243
244
244
``` bash
245
- $ webpagetest locations
245
+ $ webpagetest locations -k YOURAPIKEY
246
246
```
247
247
248
248
``` javascript
@@ -270,41 +270,10 @@ $ webpagetest locations
270
270
}
271
271
```
272
272
273
- #### 2. Get API available locations
273
+ #### 2. Run test on https://docs.webpagetest.org/api/integrations/ from San Jose on IE9
274
274
275
275
``` bash
276
- webpagetest locations --key 1F2A3K4E5
277
- ```
278
-
279
- ``` javascript
280
- {
281
- " response" : {
282
- " statusCode" : 200 , " statusText" : " Ok" ,
283
- " data" : {
284
- " location" : [
285
- ...
286
- {
287
- " id" : " SanJose_IE9" ,
288
- " Label" : " San Jose, CA USA (IE 9,Chrome,Firefox)" ,
289
- " location" : " SanJose_IE9" ,
290
- " Browser" : " IE 9" ,
291
- " PendingTests" : {
292
- " p1" : 0 , " p2" : 0 , " p3" : 0 , " p4" : 0 , " p5" : 2 , " p6" : 2 , " p7" : 0 ,
293
- " p8" : 0 , " p9" : 0 , " Total" : 7 , " HighPriority" : 2 , " LowPriority" : 4 ,
294
- " Testing" : 1 , " Idle" : 0
295
- }
296
- },
297
- ...
298
- ]
299
- }
300
- }
301
- }
302
- ```
303
-
304
- #### 3. Run test on https://docs.webpagetest.org/api/integrations/ from San Jose on IE9
305
-
306
- ``` bash
307
- webpagetest test https://docs.webpagetest.org/api/integrations/ --key 1F2A3K4E5 --location SanJose_IE9
276
+ webpagetest test https://docs.webpagetest.org/api/integrations/ -k YOURAPIKEY --location SanJose_IE9
308
277
```
309
278
310
279
``` javascript
@@ -323,10 +292,10 @@ webpagetest test https://docs.webpagetest.org/api/integrations/ --key 1F2A3K4E5
323
292
}
324
293
```
325
294
326
- #### 4 . Check current test status
295
+ #### 3 . Check current test status
327
296
328
297
``` bash
329
- webpagetest status 121025_PT_N8K
298
+ webpagetest status 121025_PT_N8K -k YOURAPIKEY
330
299
```
331
300
332
301
``` javascript
@@ -344,10 +313,10 @@ webpagetest status 121025_PT_N8K
344
313
}
345
314
```
346
315
347
- #### 5 . Get test results
316
+ #### 4 . Get test results
348
317
349
318
``` bash
350
- webpagetest results 121025_PT_N8K
319
+ webpagetest results 121025_PT_N8K -k YOURAPIKEY
351
320
```
352
321
353
322
``` javascript
@@ -379,23 +348,12 @@ webpagetest results 121025_PT_N8K
379
348
}
380
349
```
381
350
382
- #### 6. Get test waterfall thumbnail from repeat view as data URI
383
-
384
- ``` bash
385
- webpagetest waterfall 121025_PT_N8K --thumbnail --cached --uri
386
- ```
387
351
388
- ``` javascript
389
- {
390
- " type" : " image/png" ,
391
- " data" : " iVBORw0KGgoAAAANSUhEUgA...RK5CYII="
392
- }
393
- ```
394
352
395
- #### 7 . Get remaining tests count for the account
353
+ #### 5 . Get remaining tests count for the account
396
354
397
355
``` bash
398
- webpagetest testBalance --key 1F2A3K4E5
356
+ webpagetest testBalance -k YOURAPIKEY
399
357
```
400
358
401
359
``` javascript
0 commit comments