- Use
requests
library
- Fix 'ApiExceptionHandler' object has no attribute 'reponse'
- get response object in exceptions
- added few more api custom exceptions
- minor fixes
- fixed dependency not found issue
- Added get zesa wallet balance
- Added query zesa transaction
- Improved documentation
- NEW - can now opt to return a Munch object for easy access of attributes
- NEW - api now raises custom api exceptions
- fixed name error issue on
.rechargeZesa(..)
method
- BREAKING CHANGE - constructor now takes a config class arguement for credentials instead of dict of predefined keys
import hotrecharge
# create config class
config = hotrecharge.HRAuthConfig(
access_code='acc-email',
access_password='acc-pwd',
reference='random-ref'
)
# pass config object to api constructor
api = hotrecharge.HotRecharge(config)
- Added recharge EVD
electronic vouchers
- Added query evds to get all available EVDs
- Can now perform data bundle recharge
- Can now perform zesa recharge operations
api.zesaRecharge(..)
- Can check zesa customer details from meter number
api.checkZesaCustomer(..)
- removed
endUserBalance
method - removed
requests
library on requirements
-
you can now, finally, be able to include
brandID
and CustomerSMS (mesg
) when making.rechargePinless(...)
requests -
you can now, finally, be able to include
amount
and CustomerSMS (mesg
) when making.dataBundleRecharge(...)
requests -
NEW
You can now query a previous transaction by itsagentReference
for reconciliation using.queryTransactionReference(agentRefrence)
-
updated project description
-
improved api documentation
- code refactor
- updated examples and readme
- Update readme
- set
random_ref
toTrue
by default to automatically update request reference
- Initial release.