Hi,
Thank you for reporting the issue!
Seems the API URL that is implemented in the plugin is api.uwaziimobile.com/api/v2
which is different, anyway, can you please send us the API document? seems the website is not open.
Thanks!
Thank you for sending the new API, the question is, Is “Account Balance” displayed well?
I’m asking because in the new API there is no related methods to get the User Balance.
Hi,
There is a /me section in REST API where you can access the account balance per the below screenshot or link:
https://ibb.co/ZdT12LG
https://documenter.getpostman.com/view/17662889/UVC2HV2R#f3e28c22-ef5a-48bd-85ab-4e5bfeaa9abd
I have added the changes and tested. It does not work.
For one, the gateway maker says that with the new API version, the plugin should not require an API anymore but just a Token.
“API Key” field is the same “Token”, I’ve just renamed it.
What was the response that you received? you can check it out on the Oubbox > Response
Hi, I’m no developer at all so I requested the gateway maker to look at the update on the development on the link you sent above and here’s the reply:
We looked at the code shared and noticed that it is missing the 2 step authorization process required for REST API.
Unlike in GET API, the REST API requires one to generate an authorization code in conjunction with the token to be able to access the services. In addition, balance checking can be done through https://restapi.uwaziimobile.com/v1/me.
Hope this helps.
The plugin supports generating the Access Token, but it is not completed yet due to the response API we are not sure what the response is since the document does not provide the response.
Please ask them to give us the example of the API responses or maybe they can send the pull request directly to the plugin’s repository
https://github.com/veronalabs/wp-sms/commit/4da24cf3840aa205e86f294bc8953b65959ab1a2
https://github.com/veronalabs/wp-sms/blob/development/includes/gateways/class-wpsms-gateway-uwaziimobile.php#L161-L170