EchoMobile provide a great communications platform, but not much in terms of programmatic access. There is an API but that needs a lot of raw requests to get to working (it's a pain to say the least), so I decided to build this!!
- An EchoMobile account, enterprise or otherwise
- Python 3.6 or higher
- See how to get the user credentials here
pip install pyforecho
from pyforecho import EchoMobile
if __name__ == "__main__":
echo = EchoMobile(acc_id = 12345, eid = 6789, e_passw = "pass")
echo.test_connection()
client = echo.clients.lookup(phone = "254718953619")
for a_client in echo.clients.get_all(since = 1604188800, group_name = "MYGROUP"):
print(a_client)
The more detailed documentation - https://pyforecho.readthedocs.io/en/latest/
- surveys.list_surveys() doesn't filter by project_name or project_id
- /api/cms/project creates a new project instead of listing existing ones
Added
inbox.list_messages()
surveys.list_surveys()
surveys.get_survey_responses()
Fixed
- api.clients.create() to include the client's name in the payload
Fixed
- Exception Handling. Instead of throwing exceptions, bools are returned instead
Added
- Survey triggering
- Utility to check if client is available for survey
- Updating client custom field
- Custom Exceptions
Added
- Sending bulk messages
Released
- Bare bones version with only the ability to create, lookup and get all contacts