Plain Javascript SDK for Hoiio OpenAPI
getBalance
getInfo
getCountries
getChoices
getRates
subscribe
updateForwarding
getActive
send
sendBulk
getHistory
getRate
getStatus
call
conference
hangUp
getHistory
getRate
getStatus
send
getHistory
getRate
getStatus
dial
play
gather
record
transfer
hangUp
var client = hoiio.client("YOUR APP_ID", "YOUR ACCESS TOKEN");
var sms = hoiio.sms(client);
sms.send({dest:"+6591861357", msg:"Test"},
function (req) {
document.writeln(req);
});
This currently doesn't return a response with a readyState > 2 due to same origin policy. We are working on enabling CORS soon.