You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+14-14Lines changed: 14 additions & 14 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,15 +1,22 @@
1
1
# API Overview
2
-
The following denotes the HTTP-based API for [BrowserStack](http://www.browserstack.com). It provides browser-as-a-service for automated cross-browser testing. The goal is to provide a simple service which can easily be used by any browser testing framework.
2
+
The following denotes the HTTPS-based API for [BrowserStack](https://www.browserstack.com). It provides browser-as-a-service for automated cross-browser testing. The goal is to provide a simple service which can easily be used by any browser testing framework.
3
+
4
+
### Authentication
5
+
All methods need to authenticate who you are. Before spawning browser workers and deleting a worker for example. Authentication is done using your username and the BrowserStack access key within the HTTP request. For example:
> A `401 Unauthorized` response is given if an unauthorized request is made.
3
10
4
11
### Schema
5
-
All requests are made to `http://api.browserstack.com/VERSION/` and all returned data is done so in JSON-format. The version this documentation outlines is 3.
12
+
All requests are made to `https://api.browserstack.com/VERSION/` and all returned data is done so in JSON-format. The version this documentation outlines is 4.
@@ -38,13 +45,6 @@ All requests are pre-processed and validated. This section outlines how we handl
38
45
39
46
Possible error codes are `required` and `invalid`.
40
47
41
-
### Authentication
42
-
All methods need to authenticate who you are. Before spawning browser workers and deleting a worker for example. Authentication is done using your username and the BrowserStack access key within the HTTP request. For example:
> A `401 Unauthorized` response is given if an unauthorized request is made.
47
-
48
48
### HTTP Verbs
49
49
The API is kept concise and simple by making use of relevant HTTP verbs on each requests. The specifications for these are vague and their use within this API is specific but in general we follow the following rules:
50
50
@@ -253,7 +253,7 @@ A browser worker is simply a new browser instance. A user can start multiple bro
253
253
254
254
> This call requires authentication. A `401 Unauthorized` response is given if an unauthorized request is made.
255
255
256
-
Once a worker has been spawned you can then control this browser instance remotely. You can also look at the testing session status at the automate dashboard: <http://www.browserstack.com/automate>. This will provide you the general details about the session and a live preview of the remote machine.
256
+
Once a worker has been spawned you can then control this browser instance remotely. You can also look at the testing session status at the automate dashboard: <https://www.browserstack.com/automate>. This will provide you the general details about the session and a live preview of the remote machine.
257
257
258
258
### Parameters
259
259
A valid request must contain a `os`, `os_version`, and a `url`. `timeout` is optional but defaults to 300 seconds.
@@ -277,7 +277,7 @@ A valid browser version. List of supported browser versions are given using the
277
277
#### (timeout=30)
278
278
A number in seconds before the worker is terminated. The default value is 300 seconds. Timeout = 0 also defaults to 300 seconds.
279
279
280
-
> IMPORTANT! Irrespective of timeout parameter, a browser worker is alive for a maximum time of 3600 seconds.
280
+
> IMPORTANT! Irrespective of timeout parameter, a browser worker is alive for a maximum time of 1800 seconds.
281
281
282
282
#### (url)
283
283
A valid url to navigate the browser to.
@@ -297,7 +297,7 @@ The response will be returned when the worker has been setup and initialized. Th
0 commit comments