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
+9-1Lines changed: 9 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -23,11 +23,19 @@ Each of these steps are described in the following sections.
23
23
npm install -g imp-central-api
24
24
```
25
25
26
+
#### Proxy Setup ####
27
+
28
+
If *imp-central-api* is going to connect to the impCentral API via a proxy, one of the following environment variables should be set to a value in URL format:
29
+
-`HTTPS_PROXY` (or `https_proxy`) — for the proxy which passes HTTPs requests.
30
+
-`HTTP_PROXY` (or `http_proxy`) — for the proxy which passes HTTP requests.
31
+
32
+
Note, the default impCentral API base endpoint is working over HTTPs.
33
+
26
34
### Instantiation ###
27
35
28
36
To instantiate this library, call the [ImpCentralApi class](./lib/ImpCentralApi.js) constructor.
29
37
30
-
By default, *imp-central-api* works with the following impCentral API base endpoint: *api.electricimp.com/v5*. You can optionally pass an alternative impCentral API base endpoint into the constructor. This can be used to connect to Private impCloud™ installations. The class method *apiEndpoint()* can be used to obtain the current impCentral API base endpoint.
38
+
By default, *imp-central-api* works with the following impCentral API base endpoint: `https://api.electricimp.com/v5`. You can optionally pass an alternative impCentral API base endpoint into the constructor. This can be used to connect to Private impCloud™ installations. The class method *apiEndpoint()* can be used to obtain the current impCentral API base endpoint.
31
39
32
40
After instantiation, use [ImpCentralApi class](./lib/ImpCentralApi.js) methods to obtain the subclasses which provide the methods you will use to access specific impCentral API resources. For example:
0 commit comments