africastalking-python
africastalking-python copied to clipboard
Official Python SDK
```python import africastalking africastalking.initialize(username, api_key) sms = africastalking.SMS async def send_message(message, mobile_no): response = await (sms.send_async(message, [mobile_no])) return response ```
It would be really convenient to have all expected error codes documented.
fix this issue arising when running a test suite https://github.com/AfricasTalkingLtd/africastalking-python/issues/54#issue-2360913351
While running a test suite on a project that uses this library I get `DeprecationWarning: invalid escape sequence '\+'` for this https://github.com/AfricasTalkingLtd/africastalking-python/blob/12acb56ae97daa31d7d1bebc8e74d084d41cfcf6/africastalking/Service.py#L19
It is important to set timeout for requests.post and requests.get to avoid blocking other requests in case AT takes time to respond
- Add USSDService class with menu building, input parsing, and validation utilities - Implement USSD payment methods (checkout, bank checkout, bank transfer) - Add comprehensive test coverage with 21 test...
Problems Identified 1. Missing USSD Service Implementation - Problem: The USSD service is not implemented despite being mentioned in the README. - Evidence: In `africastalking/__init__.py`, line 16: `globals()['USSD'] = USSDService(username,...
## Overview The current SDK documents to support asynchronous service calls in the repo's [README](https://github.com/AfricasTalkingLtd/africastalking-python/blob/bfe806c18f6f236714d74f84b34671f258debd13/README.md?plain=1#L55). Yes, the advised approach is _non-blocking_, however, it's not truly asynchronous, especially at the network...
## Description This PR introduces a minor patch to enhance error message semantics. ```python # Current impl. def initialize(username, api_key): if username is None or api_key is None: raise RuntimeError("Invalid...