Full documentation about Zenvia API on http://docs.zenviasms.apiary.io
docker build -t rgarbin/zenvia-api-mock .
docker run -p 8080:8080 -e PORT=8080 rgarbin/zenvia-api-mock
- heroku login
- heroku container:login
- heroku create zenvia-apis-mock
- heroku container:push web --app zenvia-apis-mock
- heroku open --app zenvia-apis-mock
- Health Check: https://zenvia-apis-mock.herokuapp.com/
- Valid Credentials: user / pass
- Invalid Credentials: abc / 123
- When number phone 5551999999200 and all required fields sent then return HTTP Code Status OK(200) with a success payload.
curl -v --user "user:pass" \
-H "Accept: application/json" \
-H "Content-Type: application/json" \
-X POST -d '{"sendSmsRequest": { "from": "Remetente", "to": "5551999999200", "schedule": "2017-08-09T14:00:00", "msg": "SMS Message", "callbackOption": "NONE", "id": "msg-id", "aggregateId": "14828"}}' \
http://zenvia-apis-mock.herokuapp.com/api-rest/services/send-sms
curl -v --user "abc:123" \
-H "Accept: application/json" \
-H "Content-Type: application/json" \
-X POST -d '{"sendSmsRequest": { "from": "Remetente", "to": "5551999999200", "schedule": "2017-08-09T14:00:00", "msg": "SMS Message", "callbackOption": "NONE", "id": "msg-id", "aggregateId": "14828"}}' \
http://zenvia-apis-mock.herokuapp.com/api-rest/services/send-sms
curl -v --user "user:pass" \
-H "Accept: application/json" \
-H "Content-Type: application/json" \
-X POST -d '{ "sendSmsMultiRequest":{ "aggregateId": "14828", "sendSmsRequestList":[ { "from":"remetente", "to":"5551999999200", "msg": "SMS Message", "callbackOption":"NONE", "schedule": "2017-08-09T14:00:00", "id": "msg-id" }] }}' \
http://zenvia-apis-mock.herokuapp.com/api-rest/services/send-sms-multiple
curl -v --user "user:pass" \
-H "Accept: application/json" \
-H "Content-Type: application/json" \
-X GET \
http://zenvia-apis-mock.herokuapp.com/api-rest/services/get-sms-status/0
curl -v --user "user:pass" \
-H "Accept: application/json" \
-H "Content-Type: application/json" \
-X POST \
http://zenvia-apis-mock.herokuapp.com/api-rest/services/cancel-sms/0