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

zenvia-ruby

Package Overview
Dependencies
Maintainers
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

zenvia-ruby

  • 0.1.8
  • Rubygems
  • Socket score

Version published
Maintainers
2
Created
Source

Zenvia Ruby

Download and Install

gem install zenvia-ruby

or on your Gemfile:

gem "zenvia-ruby"

and

bundle install

create zenvia config initializer

rails g zenvia:install

after config file created, you should define config params:


require 'zenvia'

Zenvia.configure do |config|
  config.account  = 'your-zenvia-account'
  config.code     = 'your-zenvia-code'
  config.dispatch = 'zenvia dispatch method. default is (send)'
  config.from     = 'name of message sender. Eg. MY BUSINESS'
end

Usage


require 'zenvia'

# Sending a SMS

sms = Zenvia::Sms.new('you-id', 'test message!', 5521999999999)
sms.forward => #<Net::HTTPOK 200 OK readbody=true>

Contributing to zenvia-ruby

  1. Fork the project.
  2. Start a feature/bugfix branch.
  3. Commit and push until you are happy with your contribution.
  4. Make sure to add tests for it. This is important so I don't break it in a future version unintentionally.

Copyright (c) 2012 LEONEL MORAIS. See LICENSE.txt for further details.

FAQs

Package last updated on 08 Aug 2018

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