Skip to content

Latest commit

 

History

History
60 lines (50 loc) · 956 Bytes

README.md

File metadata and controls

60 lines (50 loc) · 956 Bytes

js-hoiio

Plain Javascript SDK for Hoiio OpenAPI

Functionalities

Account:

  getBalance
  getInfo

Number:

  getCountries
  getChoices
  getRates
  subscribe
  updateForwarding
  getActive

Sms:

  send
  sendBulk
  getHistory
  getRate
  getStatus

Voice:

  call
  conference
  hangUp
  getHistory
  getRate
  getStatus

Fax:

  send
  getHistory
  getRate
  getStatus

Ivr:

  dial
  play
  gather
  record
  transfer
  hangUp

Examples

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);
        });

NOTICE

This currently doesn't return a response with a readyState > 2 due to same origin policy. We are working on enabling CORS soon.