ComunicAPI/README.md

22 lines
870 B
Markdown
Raw Permalink Normal View History

2017-05-17 11:48:24 +00:00
# The Comunic API
2017-05-28 12:03:37 +00:00
This project is the main Comunic RestAPI. It assures data backend support.
2018-05-07 16:52:49 +00:00
(c) Pierre HUBERT since 2017
2019-01-26 07:22:15 +00:00
# Crons required for Comunic
2019-01-26 07:40:29 +00:00
## Calls cron
There is a cron to automatically cleanup old conversation. Ideally this cron should be executed every 30 seconds. The file to execute is `bin/clean_calls`
2018-05-07 16:52:49 +00:00
2019-01-26 07:22:15 +00:00
# Use calls in Comunic
To use calls in Comunic, you need a WebRTCSignalExchangerServer, a small signal exchanging server written using NodeJS. You also need to modify your configuration file located at `config/overwrite.php` by copying and pasting commented configuration located at `config/calls.php` and make it fit your needs.
2018-05-07 16:52:49 +00:00
2019-01-26 07:22:15 +00:00
# Add API clients
2018-05-07 16:52:49 +00:00
In order to easily add clients to the API, a script has been created.
bin/add_client [name] [token]
Note : The name of the client must be unique, and the token should the strongest
as possible