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

twilio_client

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

twilio_client

  • 0.0.1
  • Rubygems
  • Socket score

Version published
Maintainers
1
Created
Source

TwilioClient

Simple interface for initializing with your twilio account credentials and sending a text. You Can also access the Twilio client directly with TwilioClient.client

Initialize with account sid, account token and a from number

Installation

Add this line to your application's Gemfile:

gem 'twilio-client'

And then execute:

$ bundle

Or install it yourself as:

$ gem install twilio-client

Configuration

 TwilioClient.configure({
    sid: 'string',
    token: 'string',
    from:  '10 digit number'
 })

Public Class Methods

  • TwilioClient.send_text(to, body)
  • TwilioClient.client (to access the twilio client directly)

Test Mode

  • Stops the supported methods from making API requests (you can still access the raw twilio client directly, which will still make API requests)
  • Put the client into test mode:
    # put the client into test mode:
    TwilioClient.test_mode = true
    
    # take the client out of test mode:
    TwilioClient.test_mode = false
    

Contributing

  1. Fork it
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create new Pull Request

FAQs

Package last updated on 07 Jan 2014

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