Skip to content

Dao007forever/js-hoiio

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 

Repository files navigation

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.

About

Plain Javascript SDK for Hoiio OpenAPI

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published