The recommended way is to install the php-cron-scheduler is through Composer. Please refer to Getting Started on how to download and install Composer.
After you have downloaded/installed Composer, run in your project
composer require colanmycipl/tpvintegration
-
other installations
- after adding the package need to run laravel commands. -
php artisan vendor:publish
-
php artisan migrate
Add following line in config/app.php
ColanMYCIPL\TPVintegration\TPVintegrationServiceProvider::class,
Following credentials are need to be add in .env file of root path
AWS_ACCESS_KEY_ID= AWS_SECRET_ACCESS_KEY= AWS_DEFAULT_REGION= AWS_BUCKET= AWS_IAM_USER_KEY_ID= AWS_IAM_USER_SECRET_ACCESS_KEY=
TWILIO_ACCOUNT_SID= TWILIO_AUTH_TOKEN= TWILIO_API_KEY= TWILIO_API_SECRET= TWILIO_SYNC_SERVICE_SID= TWILIO_FROM_NUMBER=
There are api's you can use it for
Create Room
Join Room
Create Composition for indivdual participants and group room
Update composition status
Preview Recording
Download recording of room/participant in zip file
Moving recording to s3
Required parameters for Teacher(GET method)
/teacher/join/twilioroom/{id}/{username}/{classname}
1)Roomname
2)Username
3)Classname
Required parameters for student(GET method)
/teacher/join/twilioroom/{id}/{username}/{studentid}
1)Roomname
2)Username
3)Studentid
Sample file will be available in app/Jobs/twilioCompositionStatusUpdate Need to change as per your requirement. Separate api's available for updating and creation composition.