CallWithUs and Save! Low rate SIP, IAX and calling card calls
| Home | Sign Up | My Account | FAQ | Contact Us | About Us |
| Services | Configuration | A-Z Rates | Available DIDs | API | Wholesale Service |
|
We provide a web-based API to check your account balance, get calling rate(s) to a specified phone number, call
history, DID minutes information
and to initiate a web callback to the specified phone number (Click to call). Give your web site visitors a way to
contact you for free. All APIs use HTTPS POST method to submit request data. Do not use API usage
examples in the production environment because username and password parameters will be visible to
everybody in html code, use php/perl/ruby etc scripts instead to invoke the API. To try the examples
copy/paste the html code to a local file, set values for username and password and open the file in
web browser.
Username and password API parameters are your 9 digits user name and web UI password.
Get account balance Get calling rates Web callback Get call history Get DID usage Get account balance.URI: https://www.callwithus.com/api/account/Parameters:
<form method="post" action="https://www.callwithus.com/api/account/"> <input type="hidden" name="username" value="123456789"> <input type="hidden" name="password" value="123456"> <input type="submit"> </form>Return value: string credit=value in USD. Errors:
Get calling rates.URI: https://www.callwithus.com/api/getrate/Parameters:
<form method="post" action="https://www.callwithus.com/api/getrate/"> <input type="hidden" name="username" value="123456789"> <input type="hidden" name="password" value="123456"> <input type="text" name="number"> <input type="submit"> </form>Return value: string rate=value1 value2 value3 returns a space-separated list of rates in USD for each available route according to your service plan. Errors:
Web callback.URI: https://www.callwithus.com/api/callback/Parameters:
<form method="post" action="https://www.callwithus.com/api/callback/"> <input type="hidden" name="username" value="123456789"> <input type="hidden" name="password" value="123456"> <input type="text" name="called"> <!-- user enters his phone number here --> <input type="hidden" name="calling" value="your phone number"> <input type="hidden" name="timeout" value="20"> <input type="hidden" name="maxtime" value="300"> <input type="submit"> </form>Return value: phone number entered by user, API returns when the user answers incoming call. Errors:
Get call history.URI: https://www.callwithus.com/api/callhistory/Parameters:
Usage example: <form method="post" action="https://www.callwithus.com/api/callhistory/"> <input type="hidden" name="username" value="123456789"> <input type="hidden" name="password" value="123456"> <input type="text" name="start"> <input type="text" name="end"> <input type="submit"> </form>Return value: new line separated CDR records in format "call date/time","call lenght","call from", "call to", "destination name", "terminate cause", "rate", "price" Errors:
Get DID usage.URI: https://www.callwithus.com/api/getdidminutes/Parameters:
<form method="post" action="https://www.callwithus.com/api/getdidminutes/"> <input type="hidden" name="username" value="123456789"> <input type="hidden" name="password" value="123456"> <input type="text" name="did"> <input type="submit"> </form>Return value: line with the following values: "DID","free minutes","used minutes","minute price","monthly price","DID setup date" Errors:
|
Compare to others: |