example usage readme

This commit is contained in:
surajshivakumar
2024-06-19 15:17:29 -04:00
parent 058fd88594
commit 6cc011dc1c

24
example/readme.md Normal file
View File

@@ -0,0 +1,24 @@
## Usage
#### Requires node js 20+
Run the script with the following command-line arguments:
- callId: The ID of the call to download.
- date: The date of the call recording.
- format: The format of the recording file (e.g., mp3).
``` bash
node downloadAndRedact.js <callId> <date> <format>
#example
node example-jambones-api.js 8e9####b-f##8-4bdf-85a6-####### 2024/06/06 mp3
```
### Environment Variables Setup
```bash
export ACCOUNT_SID=your_account_sid
export JAMBONZ_API_TOKEN=your_jambonz_api_token
export DEEPGRAM_API_KEY=your_deepgram_api_key
export TEMP_FOLDER=optional_temp_folder_path
```