Skip to content

Commit fa1362d

Browse files
committed
feat(update): README
1 parent cbf7a0d commit fa1362d

1 file changed

Lines changed: 34 additions & 1 deletion

File tree

README.md

Lines changed: 34 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,4 +15,37 @@
1515

1616
</p>
1717

18-
---
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+
```js
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

Comments
 (0)