We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cbf7a0d commit fa1362dCopy full SHA for fa1362d
1 file changed
README.md
@@ -15,4 +15,37 @@
15
16
</p>
17
18
----
+---
19
+
20
+## Installation
21
22
+```shell
23
+npm install metro-sdk (coming soon)
24
+```
25
26
27
28
+## Initialize the SDK
29
30
+```js
31
+const MetroAPI = require(`metro-sdk`)
32
+const Metro = new MetroAPI.MetroClient('Your Secret Key')
33
34
35
36
37
+## Update List
38
39
40
+await Metro.updateList({
41
+ name: listInfo.name,
42
+ description: listInfo.description,
43
+ domain: listInfo.domain,
44
+ claim_bot_api: listInfo.claim_bot_api,
45
+ unclaim_bot_api: listInfo.unclaim_bot_api,
46
+ approve_bot_api: listInfo.approve_bot_api,
47
+ deny_bot_api: listInfo.deny_bot_api,
48
+ reset_secret_key: false,
49
+ icon: listInfo.icon
50
+})
51
0 commit comments