@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 CHANGED
@@ -16,16 +16,21 @@ npm install @scout9/admin --save
16
16
  ```
17
17
 
18
18
  ```typescript
19
- import { Configuration, Scout9Api } from '@scout9/admin';
19
+ import Scout9Admin from '@scout9/admin';
20
20
 
21
- const configuration = new Configuration({
22
- apiKey: '', // Your API key
23
- });
21
+ const scout9 = Scout9Admin('s9_api_key');
22
+ ```
23
+ ## Example: Start a conversation
24
24
 
25
- const scout9 = new Scout9Api(configuration);
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
- ## Step 1: Register yourself as an agent
33
+ ## Example: Register and add audio
29
34
 
30
35
  ```typescript
31
36
  import fs from 'fs/promises';