New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

hoiio

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

hoiio

  • 1.1.0
  • Rubygems
  • Socket score

Version published
Maintainers
1
Created
Source

Hoiio

This is Ruby SDK for Hoiio API

Hoiio API is set of telephony API that integrate telephony services - phone calls, conference, IVR (Interactive Voice Responses), Fax and SMS - into your services and website easily.

Read the documentation at http://hoiio.readthedocs.org/

Installation

Add this line to your application's Gemfile:

gem 'hoiio'

And then execute:

$ bundle

Or install it yourself as:

$ gem install hoiio

Getting Started With Hoiio Ruby Gem

Setup

require 'hoiio'

# Hoiio Application Credentials
app_id = ''
access_token = ''

# set up a client to talk to the Twilio REST API
@client = Hoiio::Client.new app_id, access_token

Usage

After a @client object has been created, app_id and access_token are cached and used for subsequent API calls. Normally, app_id won't change, but you can modify the client's access_token by reassigning it to a new one.

All API's URI specified in Hoiio Developer's website are included in this SDK and can be accessed conveniently.

For example, @client.sms will make all SMS APIs with the same name available, i.e: @client.sms.send will call /sms/send, @client.sms.query_status will fire a request to /sms/query_status (as specified here).

Send an SMS

# send an SMS using Hoiio
@client.sms.send(
  :dest => '+6591234567',
  :msg => 'Hello Steve',
  :notify_url => 'http://dev.example.com/sms/notify'
)

Make a call

# call a destination number using Hoiio
@client.voice.call(
  :dest2 => '+6591234567',
  :caller_id => 'private'
)

API References

Visit our API site to learn more about our powerful communication API.

FAQs

Package last updated on 02 Aug 2013

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc