Files
2023-01-23 13:04:19 -08:00

29 lines
826 B
Markdown

# Switchvox DID Usage Report
Takes a list of DID's from a `csv` file and pulls usage report from `api.switchvoxuc.com`.
## CSV File.
The file should have the following headers
The file should have a single header `csv` or can be a document with one number per line with no headers.
## Usage
Set your authentication information as a shell variable.
```
SWVX_API_USERNAME=<YOUR API USERNAME>
SWVX_API_PASSWORD=<YOUR API PASSWORD>
```
`switchvox-did-usage-report --csv=<PATH TO CSV FILE>`
Alternatively you can store your credentials in a file and pass that file to the script.
>This should be kept only accessable by administrators. As the contents are not encrypted.
Store your username password as such:
`<USERNAME>:<PASSWORD>`
`switchvox-did-usage-report --csv=<PATH TO CSV FILE> --credentials=<CREDENTIALS FILE>`