Content-Length: 292759 | pFad | http://github.com/seven-io/ruby-client

26 GitHub - seven-io/ruby-client: Official Ruby API Client for the seven.io SMS Gateway
Skip to content

seven-io/ruby-client

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

40 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Official Ruby Client for seven.io

This gem requires Ruby >= 3.1.0.

Installation

gem install seven_api

Usage

Retrieve balance

require 'seven_api/client'

api_key = ENV['SEVEN_API_KEY']
# retrieve balance
puts SevenApi::Resources::Balance.new(api_key).retrieve

# send SMS
puts SevenApi::Resources::Sms.new(api_key).retrieve

Testing

SEVEN_API_KEY=MySevenApiKey bundle exec rspec

Optional environment variables

Setting SEVEN_DEBUG=1 prints details to stdout.

Setting SEVEN_TEST_HTTP=1 enables live testing with actual API requests.

Support

Need help? Feel free to contact us.

MIT









ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: http://github.com/seven-io/ruby-client

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy