Ruby SDK
Official Ruby client for the Instasent Transactional API. Install the instasent gem, instantiate Instasent::Client with your api_sms token, and call send_sms.
Minimal client over the Transactional HTTP endpoints. For anything outside the methods below, drop back to a plain HTTP call — the Reference documents every endpoint.
Installation
Via RubyGems
gem install instasentVia Bundler
Add the gem to your Gemfile:
gem "instasent"Then run bundle install.
Send an SMS
require "instasent"
client = Instasent::Client.new(ENV["INSTASENT_TOKEN"])
response = client.send_sms("My company", "+34666666666", "test message")
puts response["response_code"]
puts response["response_body"]Available methods
client.send_sms(sender, to, text)
client.get_sms(page, per_page)
client.get_sms_by_id(message_id)Getting help
For help installing or using the library, contact support@instasent.com. Bugs and feature requests belong on the GitHub repository.