Checking Account Balance
Description
When requesting WebTEXT account balance, calls to the API must be made via URL:
http://www.webtext.com/api/get_balance.html
or, to use SSL:
https://www.webtext.com/api/get_balance.html
Mandatory Parameters when requesting balance.
|
api_id |
This is your WebTEXT API id, unique to your WebTEXT account. Issued on request by WebTEXT (support@webtext.com). Note that this is NOT your WebTEXT user name. |
|
api_pwd |
API password, as issued to you by WebTEXT. |
Usage Example
This is a sample GET request, requesting the balance on a particular account
http://www.webtext.com/api/get_balance.html?api_id=myid&api_pwd=mypwd
A successful call to the API for an account balance, will return the number of credits on the account, prefixed by the characters 'BAL:'. For an account with 123 credits, the API will return:
BAL:123
