Make a request with the following properties:
https://callmemaybe.qdqmedia.com/call/POSTContent-Type: application/x-www-form-urlencodedAuthorization: bearer mysecretkey, ask the web-team for a real secret key.user_phone=+34611111111&customer_phone=+34612345678:
customer_phone: One of the phone numbers to communicate. Mandatory.user_phone: The other number to dial. Mandatorycustomer_id: The customer_id to associate the call to. MandatoryThe phone parameters must include the country prefix. If they not, the default prefix will be applied (+34), but please do. Also, do not submit space formatted numbers like 91 234 54 34 because that's not a valid phone and you will get an error.
First, make sure tests are passing either in gitlab build or in your development environment running:
$ db_connection=postgres://testuser:testuser@localhost:5433/callmemaybe_test npm test
with the correct db_connection variable pointing to your local database. To run tests locally, you probably need to apply the migrations first with:
$ ./node_modules/.bin/knex migrate:latest --env testing
Just deploy using git. Both files, tsuru.yaml and Procfile will take care of everything. Check them in (the unlikely) case you need to perform a manual build.
To check the environment variables you need, visit the files:
config/defaults.json with the default configuration valuesbin/callmemaybe.sh with the tsuru env -> nconf mappingenvironment/ci/run.sh with the configuration for CIIf the call is triggered from user actions, please use a captcha to protect it.
In the deployment, there is other entry point that needs to be exposed at /outbound/.
The call service is not synchronous nor infallible, don't assume the call will be immediately done.