API service to interact with Edenred FTP Server for merchants synchronization
This project uses Symfony Docker
docker compose build --no-cache --pull
docker compose upThe uploaded files can be found in var/upload.
The files to download can be found in var/download.
docker compose exec php bin/console synchronizer:client:create "client_name"This command will give to you an api key that should be used on each call as a query param
api/merchants/{siretId}?api_key=<api_key>
docker compose exec php bin/console edenred:synchronizer:readSending
curl -k -v -X POST -H 'Content-Type: application/json' -d '{"merchants":[{"siret":"123456"}]}' 'https://localhost/api/merchants?api_key=<api_key>'Connecting to SQLite database
docker compose exec php sqlite3 var/db/data.db