Project

seven_api

0.0
The project is in a healthy, maintained state
Send SMS & text-to-speech messages via the seven SMS Gateway.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

~> 2.4
~> 13.1
~> 3.13

Runtime

~> 2.9
 Project Readme

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