<commit_before># ringcentral-demos-data-archival
A Sample PHP command line application to : Download Call Logs , Call Recordings, Messages etc

**Please Keep in mind that this is not a Production ready Application but just a sample demo**

![APP screenshots](docs/Recordings.png) 
 

# Requirements

- PHP 5.3.29+
- Composer
- CURL Extension

# Configuration Requirements

- What is the hourly interval/ range when they would like to pull down the recordings
- What is the approximate call-recordgins count per day
- The total number of accounts and the details

# Installation


## Clone the Repository **( Recommended )**

 1. Clone the Repository
```sh
$ git clone https://github.com/anilkumarbp/ringcentral-demos-data-archival.git
```
 2. cd into `ringcentral-demos-data-archival`. Run the Composer command to install the packages  
 Install composer (**If you do not have Composer installed yet**):
```sh
$ curl -sS https://getcomposer.org/installer | php
```
 3. Install the packages using composer  
```sh
$ composer install
```
 4. Create a `.env` file within the same folder and the contents as **shown below** and configure your RingCentral Account details:

For ex:  
        To run callRecording.php script make `RC_SkipDownload= False`  
        To skip callRecording.php script make `RC_SkipDownload= True` 

```php

RC_AppKey= 							
RC_AppSecret= 
RC_Server= 
RC_Username= 
RC_Extension= 
RC_Password= 
RC_fromPhoneNumber= 
RC_toPhoneNumber= 
RC_dateFrom= 
RC_dateTo= 
RC_callRecordingsCount= 
amazonAccessKey= 
amazonSecretKey= 
dropBoxkey= 
dropBoxsecret= 
RC_SkipCallLog=           
RC_SkipRingOut=         
RC_SkipDownload=     
RC_SkipDownloadS3= 
RC_SkipDownloadDropbox=  

```

5. Run the script:

```sh
$ php index.php
```
<commit_msg>Modifying README.md<commit_after># ringcentral-demos-data-archival
A Sample PHP command line application to : Download Call Logs , Call Recordings, Messages etc

**Please Keep in mind that this is not a Production ready Application but just a sample demo**

![APP screenshots](docs/Recordings.png) 
 

# Requirements

- PHP 5.3.29+
- Composer
- CURL Extension

# Configuration Requirements

- What is the hourly interval/ range when they would like to pull down the recordings
- What is the approximate call-recordgins count per day
- The total number of accounts and the details

# Installation


## Clone the Repository **( Recommended )**

 1. Clone the Repository
```sh
$ git clone https://github.com/anilkumarbp/ringcentral-demos-data-archival.git
```
 2. cd into `ringcentral-demos-data-archival`. Run the Composer command to install the packages  
 Install composer (**If you do not have Composer installed yet**):
```sh
$ curl -sS https://getcomposer.org/installer | php
```
 3. Install the packages using composer  
```sh
$ composer install
```
 4. Create a `.env` file within the same folder and the contents as **shown below** and configure your RingCentral Account details:

For ex:  
        To run callRecording.php script make `RC_SkipDownload= False`  
        To skip callRecording.php script make `RC_SkipDownload= True` 

```php

RC_AppKey= 							
RC_AppSecret= 
RC_Server= 
RC_Username= 
RC_Extension= 
RC_Password= 
RC_fromPhoneNumber= 
RC_toPhoneNumber= 
RC_dateFrom= 
RC_dateTo= 
RC_callRecordingsCount= 
amazonAccessKey= 
amazonSecretKey= 
dropBoxkey= 
dropBoxsecret= 
RC_SkipCallLog=           
RC_SkipRingOut=         
RC_SkipDownload=     
RC_SkipDownloadS3= 
RC_SkipDownloadDropbox=  

```
 5. Run the script:

```sh
$ php index.php
```
{'fraction_non_alphanumeric': 0.08595744680851064, 'fraction_numerical': 0.005673758865248227, 'mean_word_length': 3.980225988700565, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 4, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 12, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '546795', 'n_tokens_mistral': 1165, 'n_tokens_neox': 1077, 'n_words': 377}