Skip to content

Commit 1005bc8

Browse files
committed
f
1 parent edc97c1 commit 1005bc8

11 files changed

Lines changed: 883 additions & 906 deletions

File tree

.github/workflows/npm-prepublish.yml

Lines changed: 0 additions & 30 deletions
This file was deleted.

.github/workflows/npm-publish.yml

Lines changed: 0 additions & 30 deletions
This file was deleted.

Examples/CustomEndpoint.md

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -34,11 +34,14 @@ new ramapi.Utils().customAsync("/hello", "basic", { version: "v13", params: { la
3434

3535
//pro, normal, or extended are also available options instead of demo or basic below are examples NOTICE: extended only exists in v14 and above
3636

37-
//latest always
38-
new ramapi.Utils().customAsync("/hello", "normal", { params: { lang: lang }, headers: {"api-key": "api key here"} }).then(data => { console.log(data); }).catch(err => { });
3937

40-
//provide version ex v13
41-
new ramapi.Utils().customAsync("/hello", "normal", { version: "v13", params: { lang: lang }, headers: {"api-key": "api key here"} }).then(data => { console.log(data); }).catch(err => { });
38+
//v16 & up
39+
new ramapi.Utils().customAsync("/hello", "normal", { params: { lang: lang }, headers: {"token": "api key here"} }).then(data => { console.log(data); }).catch(err => { });
40+
//provide version ex v16 (v16 and up)
41+
new ramapi.Utils().customAsync("/hello", "normal", { version: "v16", params: { lang: lang }, headers: {"token": "api key here"} }).then(data => { console.log(data); }).catch(err => { });
42+
43+
//provide version ex v13 (v15 and under)
44+
new ramapi.Utils().customAsync("/hello", "normal", { version: "v15", params: { lang: lang }, headers: {"api-key": "api key here"} }).then(data => { console.log(data); }).catch(err => { });
4245

4346

4447
```

Examples/Extended.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,8 @@
1616

1717
[Back to readme](../README.md)
1818

19+
This is not supported past v15
20+
1921
> Extended Examples
2022
2123
```javascript

Examples/Pro.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,8 @@
1616

1717
[Back to readme](../README.md)
1818

19+
This is not supported past v15
20+
1921
> Pro Examples
2022
2123
```javascript

0 commit comments

Comments
 (0)