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
+7-4Lines changed: 7 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -4,15 +4,18 @@ Node.js module for interacting with the ATLauncher API.
4
4
5
5
Examples
6
6
----
7
-
To get started simply require the package and optionally provide the arguments it needs.
7
+
To get started simply require the package and optionally provide an optional object with settings.
8
8
9
9
```
10
-
var api = require('atlauncher-api')(API_KEY, FORCE);
10
+
var api = require('atlauncher-api')({
11
+
api_key: 'my-api-key,
12
+
force_run: false
13
+
});
11
14
```
12
15
13
-
The API_KEY argument is your API-KEY used for admin or PSP api calls.
16
+
The api_key argument is your API-KEY used for admin or PSP api calls.
14
17
15
-
The FORCE argument is a boolean (true/false) if we should ignore breaking api calls. For instance when you're about to reach your request limit and get IP banned the force option will allow you to bypass the exception which gets thrown halting execution.
18
+
The force_run argument is a boolean (true/false) if we should ignore breaking api calls. For instance when you're about to reach your request limit and get IP banned the force option will allow you to bypass the exception which gets thrown halting execution.
16
19
17
20
For instance for running public api calls such as getting a list of all packs you can use the following:
0 commit comments