sparkplug / momoapi-python

MTN MoMo API Client Library for Python
MIT License
47 stars 55 forks source link

Feature add retry and backoff #15

Closed mossplix closed 5 years ago

raybesiga commented 5 years ago

Hi @mossplix all checks pass for this. Great work. What is the context for the retry and back off? Care to explain in a bit more detail for the sake of documentation?

mossplix commented 5 years ago

So essentially, its to handle when there is no internet. So for example If the API returns 502, or 404 it retries 3 times and then throws an exception after

mossplix commented 5 years ago

It also handles scenarios when the internet is off