@scout9/admin 1.0.0-alpha.0.0.24 → 1.0.0-alpha.0.0.26
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +11 -6
- package/build/api.d.ts +515 -961
- package/build/api.js +423 -1245
- package/build/index.d.ts +120 -2
- package/build/index.js +145 -0
- package/package.json +1 -1
- package/src/api.ts +804 -1673
- package/src/index.ts +231 -2
- package/tsconfig.tsbuildinfo +1 -1
package/README.md
CHANGED
|
@@ -16,16 +16,21 @@ npm install @scout9/admin --save
|
|
|
16
16
|
```
|
|
17
17
|
|
|
18
18
|
```typescript
|
|
19
|
-
import
|
|
19
|
+
import Scout9Admin from '@scout9/admin';
|
|
20
20
|
|
|
21
|
-
const
|
|
22
|
-
|
|
23
|
-
|
|
21
|
+
const scout9 = Scout9Admin('s9_api_key');
|
|
22
|
+
```
|
|
23
|
+
## Example: Start a conversation
|
|
24
24
|
|
|
25
|
-
|
|
25
|
+
```typescript
|
|
26
|
+
await scout9.message.send({
|
|
27
|
+
to: '+12345678900',
|
|
28
|
+
from: '+14327650098',
|
|
29
|
+
message: 'Hey, bob, do you need that ladder?'
|
|
30
|
+
});
|
|
26
31
|
```
|
|
27
32
|
|
|
28
|
-
##
|
|
33
|
+
## Example: Register and add audio
|
|
29
34
|
|
|
30
35
|
```typescript
|
|
31
36
|
import fs from 'fs/promises';
|