Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

nuntium_api

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

nuntium_api

  • 0.21
  • Rubygems
  • Socket score

Version published
Maintainers
1
Created
Source

nuntium-api-ruby

Access the Nuntium API in Ruby.

Install

gem install nuntium_api

Gemfile

gem 'nuntium_api'

Example

require 'rubygems'
require 'nuntium'

api = Nuntium.new "service_url", "account_name", "application_name", "application_password"

message = {
  :from => "sms://1234",
  :to => "sms://5678",
  :body => "Hello Nuntium!",
}

# Send an Application Originated message.
response = api.send_ao message

# Can also send many messages at once
messages = [{:to => "sms://1", :body => 'One'}, {:to => "sms://2", :body => 'Two'}]
response = api.send_ao messages

# Simulate sending and get a list of candidate channels
api.get_candidate_channels_for_ao message

# Get all countries
countries = api.countries

# Get all carriers that belong to a specific country
carriers = api.carriers countries[0].iso2

# Get all channels
channels = api.channels

# Create a channel
api.create_channel {
  :name => "my_channel",
  :kind => "clickatell",
  :protocol => "sms",
  :direction =>"bidirectional",
  :enabled => true,
  :priority => 10,
  :configuration => {:password => "secret"}
}

FAQs

Package last updated on 13 Nov 2012

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